2010 May 15 6:20 AM
Hi Experts,
I am creating sales order using function module
BAPI_SALESORDER_CREATEFROMDAT2.
I am using BAPI_TRANSACTION_COMMIT after the above FM with wait set to flag 'X'.
Now this FM is taking long time to give result. I am also using wait up to 6 seconds after BAPI_TRANSACTION_COMMIT.
Can any one suggest how to rectify this error.Till yesterday it was working fine and was giving result quickly. Today its taking a lot of time and ultimately i have to stop forcefully.
Regards,
Sany
2010 May 15 7:19 AM
You need to analyse this bapi using transaction code ST05 (trace).
Best of luck
a®
2010 May 15 7:29 AM
Actually its consuming time on COMMIT WORK AND WAIT statement in BAPI_TRANSACTION_COMMIT.
I found in transaction SM12 where some 12 to 15 lock entries have been genereated to table VBAK.
I guess commit work is not allowing since database is being used by these LOCK entries..
Can you comment on this.
Sany
2010 May 15 7:40 AM
Okay, In that case check whether new use exit has been written in after save .. ( Some will call some fm for sending interface to other system something like ) i think system wait to complete the process to unlock VBAK entries
a®
2010 Nov 22 4:41 AM
2013 Feb 05 12:33 AM
hi.
im in the same situation, may i know what solved this problem? thanks!