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

BAPI_TRANSACTION_COMMIT

Former Member
0 Likes
754

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

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
666

You need to analyse this bapi using transaction code ST05 (trace).

Best of luck

a®

Read only

0 Likes
666

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

Read only

0 Likes
665

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®

Read only

Former Member
0 Likes
665

Answer found myself

Read only

0 Likes
665

hi.

im in the same situation, may i know what solved this problem? thanks!