Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in calling a RFC

meghomallar_das
Participant
0 Likes
2,182

Hello Experts,

I have a RFC which has a BDC for F-28. When this RFC is being called from a Non SAP system the first time, it is running without throwing any error, but once this RFC is called for the second time withing few minutes it returns an error in RFC call. Can anybody suggest a solution to this. Will the concept of Background Task or calling function module in separate task help me in any way ???

Regards,

Megh

Hello Experts,

I have a RFC which has a BDC for F-28. When this RFC is being called from a Non SAP system the first time, it is running without throwing any error, but once this RFC is called for the second time withing few minutes it returns an error in RFC call. Can anybody suggest a solution to this. Will the concept of Background Task or calling function module in separate task help me in any way ???

Regards,

Megh

6 REPLIES 6
Read only

roberto_vacca2
Active Contributor
0 Likes
1,607

Hi.

How do you call your RFC? Because probably they work together in the same session and they crash. You should serialize then and calling in separate task (async ) destination NONE.

Anyway try before using a "wait X seconds instruction", only to understand what kind of situation you're facing.

Hope to help.

Bye.

Read only

former_member1716
Active Contributor
0 Likes
1,607

Hi,

Try using commit statements after the RFC call, this should resolve the issue. If not try using wait for 2 seconds.

And yes you can use the concept of calling FM in separate Task.

Regards,

Satish

Read only

AnoopMayamkote
Participant
0 Likes
1,607

Hi,

Pls put wait for 3 to 4 seconds your issue will be resolve i hope.

Read only

ThangaPrakash
Active Contributor
0 Likes
1,607

Hi,

If you call the rfc for first time, did you close the connection after your process is done. If not close the rfc connection, use the function module "RFC_CONNECTION_CLOSE" to close the RFC connection.

Regards,

Tp

Read only

meghomallar_das
Participant
0 Likes
1,607

Hello Friends,

If I use a qRFC in this case, can anybody guide me how to call it inside a loop ?

Regards,

Megh

Read only

0 Likes
1,607

Hi,

To call a qRFC in the program, first you have to create a queue name and then runt he RFC function module in the background task. Remember to write a COMMIT WORK at the end.

Refer to SAP help below.

http://help.sap.com/saphelp_nw70ehp3/helpdata/en/48/bb8094b22337e3e10000000a42189d

/content.htm

http://help.sap.com/saphelp_nw70ehp3/helpdata/en/48/bb7b7fb22337e3e10000000a42189d/content.htm

Regards,

TP