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

Does Update function module gets executed after Commit Work?

Former Member
0 Likes
1,372

Hi Gurus,

I have a BAPI with a Commit work. Does update function module V1 , V2 - i need mainly about the sequence of V2, gets executed after Commit work or before Commit work.

Thanks

1 ACCEPTED SOLUTION
Read only

former_member196651
Contributor
0 Likes
1,167

Hai Venkat,

All the update FMs will be triggered only after an explicit COMMIT WORK.

Regards,

Abijith

4 REPLIES 4
Read only

former_member196651
Contributor
0 Likes
1,167

Hai Venkat,

All the update FMs will be triggered after the commit work.

Regards,

Abijith

Read only

Former Member
0 Likes
1,167

Do you have function modules called with the in update task addition? If not the V1-V2 distinction is irrelevant. It is only function modules called with this addition for which the V1 - V2 distinction is relevant. BAPIs are normally not defined as update function modules (although they are remote enabled). So the code of a BAPI will get executed before the commit work but the change it makes won't get saved to the database until a commit work  is called as BAPI don't contain a commit work.

Read only

former_member196651
Contributor
0 Likes
1,169

Hai Venkat,

All the update FMs will be triggered only after an explicit COMMIT WORK.

Regards,

Abijith

Read only

naveenvishal
Contributor
0 Likes
1,167

Pl refer to SAP help on the same as follows.

https://help.sap.com/saphelp_nw04/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm

Regards,

Naveen Vishal