on 2005 May 09 3:07 PM
Hi,
I am moving business partner master data into CRM via the business connector, using BAPI_BUPA_CREATE_FROM_DATA. This BAPI requires a 2nd BAPI: BAPI_TRANSACTION_COMMIT as a closing step. However, the BuPa is not saved in the database.
The 1st BAPI returns without errors and a business partner number. The 2nd BAPI is called with WAIT = X.
I think the problem is that the second BAPI is called in another LUW or session. I also tried using a sequence, but still the error occurs.
Can someone help me?
Hi,
You can also try:
1. pub.sap.client:createTID and assign created tid to variable $tid
2. INVOKE sap.map:outbound for your BAPI and assign created tid in step 1 to parameter $tid
3. pub.sap.client:confirmTID and assign created tid in step 1 to parameter $tid
It should work.
Krzys
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Toine,
You should try adding service pub.sap.client:lockSession before you call the BAPI BAPI_BUPA_CREATE_FROM_DATA. Then you call the BAPI_TRANSACTION_COMMIT and the last step is to call pub.sap.client:releaseSession.
This worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
the simplest solution is to write a Z- RFC enabled Function moduls which call both: BAPI_BUPA_CREATE_FROM_DATA and BAPI_TRANSACTION_COMMIT. And has the interface of BAPI_BUPA_CREATE_FROM_DATA.
Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.