Application Development 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: 

Commit Work problem

Former Member
0 Kudos

Hi experts,

A strange problem. I use a FM for DB updating of table EANL an EANLH, after the FM, data is updated to the table, but when the commit work is executed, the changes to table EANL is gone. Does any1 have any idea about this weird problem?

Points will be rewarded.

Thx in advance.

Vincent.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Vincent,

Use COMMIT WORK only if you're using the new updated values in the program immediately. Otherwise, the statement is not needed as the data will be automaticallly commited.

If you're using BAPI to update use FM BAPI_TRANSACTION_COMMIT to commit the work.

Reward helpful answers.

Regards,

Siddhesh Sanghvi.

5 REPLIES 5

raymond_giuseppi
Active Contributor
0 Kudos

Sounds like the COMMIT WORK starts updates (Update V1, V2) which erase those of the module function used.

Which FM do you use?

Regards

0 Kudos

ISU_DB_EANL_UPDATE

0 Kudos

Be sure there is no OSS note to apply in your system for this object (look at 946002)

Regards

0 Kudos

hi

there is no need of using the commit statement in your program.

Former Member
0 Kudos

Hi Vincent,

Use COMMIT WORK only if you're using the new updated values in the program immediately. Otherwise, the statement is not needed as the data will be automaticallly commited.

If you're using BAPI to update use FM BAPI_TRANSACTION_COMMIT to commit the work.

Reward helpful answers.

Regards,

Siddhesh Sanghvi.