‎2012 Jan 13 12:14 AM
I need to do an implicit enhancement in MB_CREATE_GOODS_MOVEMENT. The issue is that I need to do a commit work here for creating a batch classification value for a batch otherwise the goods movement fails.
My question is that since MB_CREATE_GOODS_MOVEMENT is called within BAPI_GOODSMVT_CREATE is it ok to issue a commit work within my implicit enhancement ? If it is not ok then how else can I commit the batch classification( can I use a FM or class method and commit within the FM/class method ) before the goods movement is done through MB_CREATE_GOODS_MOVEMENT.
‎2012 Jan 13 12:45 AM
Why cant you do batch classification before calling the bapi..?
Nabheet
‎2012 Jan 13 2:53 AM
Deepak, commit work is fine in an implicit enhancement, its like writing commit in normal processing logic..but keep in mind below things.
if there are update FMs queued in at this time, on this commit statement those will also run.. so check where you BAPI is called from and does that have any FM calls in update task