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: 

User exits in MIGO

Former Member
0 Kudos

Dear SAP experts,

In standard SAP, users can change batch number when do GR against an outbound delivery. Now we want to prevent this but it seems that there’s no control in customizing.

The solution we’re thinking about is either making the filed as display only or let the system pop up an error message if the user tries to change the batch number.

The question is can these be done with user exit MB_CF01(updating of material document data upon posting)? Can anybody shed some light? Any input is highly appreciated. Thanks in advance.

Kind regards,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Victoria,

U can make use of the exit MB_CF01 in the clude ZXMBCU01

This exit will be triggered when u r daving the GR.

So I think u can popup an error message here.

Regards,

Vasanth

4 REPLIES 4

Former Member
0 Kudos

Hello Victoria,

U can make use of the exit MB_CF01 in the clude ZXMBCU01

This exit will be triggered when u r daving the GR.

So I think u can popup an error message here.

Regards,

Vasanth

0 Kudos

Hi Vasanth,

Thanks for the information. If exit MB_CF01 is used to pop up an error message, I have to get the batch number from delivery note and then compare it with the batch number in the goods receipt material document. Is this possible as the exit is called up in update task?

Many thanks.

former_member194669
Active Contributor
0 Kudos

Please check the program MV50AFZ1

aRs

Former Member
0 Kudos

When running MIGO, if you put a breakpoint on the FM PF_ASTAT_OPEN. This will show you the BADI/METHODS that are called.

Then BADI being MB_MIGO_BADI.