on 08-01-2007 12:54 PM
Hi,
Here is my problem:
I'm calling a BAPI specifying 'Commit' in Communication Channel. After this call, in BPM i call another RFC (or BAPI) that needs to modify or use objects created in the first call. The problem is that the work made by the first BAPI wasn't updated in the database yet, and i receive errors in next calls.
Is there anyway to wait for commit?
Jose Neves
Hay Jose,
I haven't encuontered such a problem but I think that you can wrap your first part with an abap program that will perform the action syncroniously.
another option is to just implement a wait between the 2 steps.
I'll be hppy to hear how you eventually solved it.
Uri Lifshitz.
Uri (at) Xact.co.il
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again,
Thanks for your attention...
Well i am using the 'WAIT' between Steps... But this is not how i would like to keep things... i can't assume how long i should wait and i don't want to have unneeded pauses during process (each process has about 18 calls to R3!).
The only solution i see everywhere is Wrap Wrap Wrap... unfortunately this implies changing every BAPI to Z...
I know that RFC Adapter uses JCO... I think in JCO you can start a transaction, using an identifier, passing this ID to every BAPI call, and call commit at the end, but i don't see anyway to do this in XI.
Another solution i have heard around, is about using ABAP Proxy... is that true that i can encapsulate many BAPI calls in a proxy, and execute all in the same session? We have some configuration problems, and we are not using ABAP Proxy so we can't try... But if this is the solution...
You need not change the Bapis to z, just create one new z-RFC which handles all BAPIs.
You call all BAPIs and do a commit afterwards. If any BAPI returns error, do ROLLBACK WORK.
If you have 18 BAPI calls for a single process, you definitely should create a wrapper, as 18 RFC calls migh cause severe performence issues.
Regards
Stefan
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.