‎2007 Apr 04 6:37 AM
during what scenarios do we use the command-commit work?. plz explain.
‎2007 Apr 04 9:49 AM
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.
‎2007 Apr 04 6:40 AM
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
‎2007 Apr 04 6:45 AM
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
‎2007 Apr 04 9:38 AM
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. .
‎2007 Apr 04 9:49 AM
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.