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 in an Implicit Enhancement

deepak_appu2
Explorer
0 Likes
1,078

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.

2 REPLIES 2
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
729

Why cant you do batch classification before calling the bapi..?

Nabheet

Read only

Former Member
0 Likes
729

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