2014 Dec 02 5:01 PM
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
2014 Dec 02 5:07 PM
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.
2014 Dec 03 4:19 AM
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
2014 Dec 03 4:23 AM
Hi,
Pls put wait for 3 to 4 seconds your issue will be resolve i hope.
2014 Dec 03 7:04 AM
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
2014 Dec 06 10:48 AM
Hello Friends,
If I use a qRFC in this case, can anybody guide me how to call it inside a loop ?
Regards,
Megh
2014 Dec 06 1:51 PM
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
http://help.sap.com/saphelp_nw70ehp3/helpdata/en/48/bb7b7fb22337e3e10000000a42189d/content.htm
Regards,
TP
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |