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: 

Does Update function module gets executed after Commit Work?

Former Member
0 Kudos

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

former_member196651
Contributor
0 Kudos

Hai Venkat,

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

Regards,

Abijith

4 REPLIES 4

former_member196651
Contributor
0 Kudos

Hai Venkat,

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

Regards,

Abijith

Former Member
0 Kudos

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.

former_member196651
Contributor
0 Kudos

Hai Venkat,

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

Regards,

Abijith

naveenvishal
Contributor
0 Kudos

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