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 problem

Former Member
0 Likes
758

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
Read only

Former Member
0 Likes
721

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
721

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

Which FM do you use?

Regards

Read only

0 Likes
721

ISU_DB_EANL_UPDATE

Read only

0 Likes
721

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

Regards

Read only

0 Likes
721

hi

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

Read only

Former Member
0 Likes
722

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.