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

commit work

Former Member
0 Likes
726

during what scenarios do we use the command-commit work?. plz explain.

1 ACCEPTED SOLUTION
Read only

former_member189631
Active Contributor
0 Likes
691

Hi Mamatha ,

Commit work can be used when you trigger a workflow event by using Function module (swe_event_create) in your program.

Regards,

Ramganesan K.

4 REPLIES 4
Read only

Former Member
0 Likes
691

Hi,

Commit work is generally called while updating something in the database.

e.g. U need to insert some data using INSERT Statement in the program. In that case u can use COMMIT WORK.

or say, u need to make some changes in the data or create a movement using BAPI_GOODSMVT_CREATE, then after calling BAPI, u can use COMMIT WORK.

Regards,

Himanshu

Read only

Former Member
0 Likes
691

Hi,

To apply the changes made to the runtime objects of persistent classes to the actual persistent objects in the database, execute the COMMIT WORK statement

Commit work is used when you code directly in ABAP and make changes in the database and want to commit the database.

Regards

Sudheer

Read only

Former Member
0 Likes
691

Hi Mamatha,

Commit work can be used in the scenario such a wsy that when ever u want to update the changes to DB up to perticular level then we can mention commit work statement.

Hope this helps you, reply for queries, Shall post you the updates.

Regards.

Kumar. .

Read only

former_member189631
Active Contributor
0 Likes
693

Hi Mamatha ,

Commit work can be used when you trigger a workflow event by using Function module (swe_event_create) in your program.

Regards,

Ramganesan K.