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

Problem with commit work when using call transaction

Former Member
0 Likes
2,653

Hi,

I have a problem while using commit work when usin call transaction.

Following is my code snippet.

Program 1


--------
-------
Begin of PAI module 
------
-----
call transaction 'ZTCODE' using bdcdata.
------
end of PAI 
------

Program of ZTCODE


-----
-----
call function 'MPLAN_CREATE'
BAPI_TRANSACTION_COMMIT
----
call function 'MPLAN_START'
----
----

Here problem is that when I am calling my Program1 the transaction ZTCODE is called and once the control finishes the

BAPI_TRANSACTION_COMMIT statement, it is not executing the remaining statements. It is directly going back to the PAI module where the call transaction statement in the PAI module of Program1 without executing the remaining statements after the commit statement.

Please let me know your suggestions

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
1,378

You have to use RACOMMIT = X in call transaction parameters.( ctuparams ).


wa_ctuparams-racommit = 'X'.  "<--
wa_ctuparams-dismode = 'A'.
wa_ctuparams-updmode = 'S'.
CALL TRANSACTION 'ABCD' USING bdcdata
                          OPTIONS FROM wa_ctuparams.

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
1,379

You have to use RACOMMIT = X in call transaction parameters.( ctuparams ).


wa_ctuparams-racommit = 'X'.  "<--
wa_ctuparams-dismode = 'A'.
wa_ctuparams-updmode = 'S'.
CALL TRANSACTION 'ABCD' USING bdcdata
                          OPTIONS FROM wa_ctuparams.

Read only

0 Likes
1,378

Hi Keshav,

Thanks a lot for your reply. My problem got resolved

Regards,

Deepti