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

Code in Inbound Processing FM for IDOC

Former Member
0 Likes
852

Hi

I have a Scenario.

Loop at idoc records.

Step 1: Thru User Exit Before Posting I Called a BAPI but did not Commit.

Step 2.Idoc is proccessed.

If Idoc _status = successfull

Will My BAPI will commit Automatically ?

Endloop.

Let me know wether my BAPI will commit automatically without BAPI_TRANSACTION_COMMIT ?

Bala.M

4 REPLIES 4
Read only

Former Member
0 Likes
712

If your BAPI has commit work coded inside, then it will commit , else you will have to use the BAPI_TRANSACTION_COMMIT.

Regards

Mishra

Read only

anup_deshmukh4
Active Contributor
0 Likes
712

Hello Balu Malvatu ,

The inbound function module will have its own logical unit or work

you don't need to have a extra commit

OR

else you can do is if call the bapi within a ZEE function moduele ( Update ) within it you will call the bapi and commit

you will call this zee function module with addition STARTING A NEW TASK.

hope it helps,

Anup

Read only

Former Member
0 Likes
712

Hi,

Its better if write COMMIT WORK explicitly...

Read only

0 Likes
712

use COMMIT WORK statement if you are unsure