‎2009 Sep 30 4:50 AM
Hi All,
We found that while doing PGI , it takes some time to COMMIT the table VBUK. Due to which we are getting old values of VBUK-KOSTK field while executing select query at later point of time in the flow.
My question --
Can I use COMMIT WORK statement in user exit MV50AFZ1 --> FORM USEREXIT_SAVE_DOCUMENT so that all the related tables
get committed immediately.
Thanks
Saurabh
‎2009 Sep 30 7:43 AM
SAP does not permit you to use COMMIT work in User exit.
Regards, Sri
‎2009 Sep 30 5:14 AM
Hi,
Try using COMMIT WORK AND WAIT syntax
Edited by: Navitha Anwer on Sep 30, 2009 6:15 AM
‎2009 Sep 30 5:21 AM
Hi Saurabh ,
Normally , you shoud not specify COMMIT stmt in any user exit , badi etc..
SAP has its own COMMIT statement while execuiting the standard transactions .
Addition of a COMMIT might lead to problems elsewhere .
Thanks
Supriya
‎2009 Sep 30 7:43 AM
SAP does not permit you to use COMMIT work in User exit.
Regards, Sri
‎2009 Sep 30 8:52 AM
Syntactitically, this is allowed. But its not advisable, cause you can never know, which reports are affected by this unexprected commit, cause it commits all outstanding modifications and you do not know if a programmer needs to store something in addidtion to end a logical unit of work.
‎2009 Sep 30 1:37 PM