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
1,014

hii experts..plaease tell me what is the use of BAPI_TRANSACTION_COMMIT and COMMIT WORK...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
956

Hi Sugumar

there are some FM that we use for creating trasaction . for example FM : that use for creating production order . if you execut the FM , the system will not create any data in the system so you need to excute the FM : BAPI_TRANSACTION_COMMIT to commit that creating the production order .

in case of commit work, that is a syntax in abap program . if you use this syntax after you insert ,update or delete table in the sap ,system will do it immediately otherwise the system will do it after execution is complete.

Regards

Wiboon

5 REPLIES 5
Read only

uwe_schieferstein
Active Contributor
0 Likes
956

Hello Sugumar

If you call the BAPI locally it is the same as COMMIT WORK. However, if you want to commit on a <b>remote </b>system you have to use the BAPI.

Regards

Uwe

Read only

0 Likes
956

hiii...if you dont mind pl explain the function of COMMIT WORK...

Read only

0 Likes
956

Hi,

Please try to help yourself - from the ABAP editor, put yuor cursor on the command COMMIT and press the F1 key. Yuo will be taken to the help for that command explaining how to use it and what it does.

The function module BAPI_TRANSACTION_COMMIT simply performs this command - it is used for remotely commiting data when performing RFC calls.

Gareth.

Read only

Former Member
0 Likes
956

<b>BAPI_TRANSACTION_COMMIT</b>

Execute external Commit when using BAPIs

This method executes a COMMIT WORK command. It is required for

transactions developed externally to the R/3 System that change data in

the R/3 System via BAPI calls.

When you call BAPIs in your program that change data in the R/3 System,

afterwards you must call this method to write the changes to the

database.

<b>COMMIT WORK</b>

The statement COMMIT WORK completes the current SAP LUW and opens a new one, storing all change requests for the currenta SAP LUW in the process

Read only

Former Member
0 Likes
957

Hi Sugumar

there are some FM that we use for creating trasaction . for example FM : that use for creating production order . if you execut the FM , the system will not create any data in the system so you need to excute the FM : BAPI_TRANSACTION_COMMIT to commit that creating the production order .

in case of commit work, that is a syntax in abap program . if you use this syntax after you insert ,update or delete table in the sap ,system will do it immediately otherwise the system will do it after execution is complete.

Regards

Wiboon