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: 

BADI or EXIT for MIGO

Former Member
0 Kudos
1,052

Hi,

I need a BADI or EXIT that is executed AFTER TO POST

Goods Receipt from Purchase Order

(101 Goods receipt for purchase order into warehouse/stores)

for transaction MIGO

I try with MB_MIGO_BADI, MB_DOCUMENT_BADI AND EXITS but are

executed before the post.

Thank's.

Mariano.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
166

Hi,

Check the user exit EXIT_SAPLMBMB_001 and the BADI MB_DOCUMENT_BADI..Both called are in the same function module MB_POST_DOCUMENT..

<b>Note:</b>

If you put a break point in the function module MB_POST_DOCUMENT..It will not stop..As this is called in update task..

Switch on the update debugging..Then you will see this fm getting executed..

Thanks,

Naren

7 REPLIES 7

ferry_lianto
Active Contributor
0 Kudos
166

Hi Mariano,

Please try user exits EXIT_SAPLMBMB_001 for enhancement MB_CF001 (SMOD).

Hope this will help.

Regards,

Ferry Lianto

0 Kudos
166

Hi Ferry

I have tried but it is not executed

Thank's

Mariano

Former Member
0 Kudos
166

Following are the exits available for MIGO.

MBCF0002 Customer function exit: Segment text in material doc. item

MBCF0005 Material document item for goods receipt/issue slip

MBCF0006 Customer function for WBS element

MBCF0007 Customer function exit: Updating a reservation

MBCF0009 Filling the storage location field

MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1

MBCF0011 Read From RESB and RKPF For Print List in MB26

MBCFC003 Maintenance of batch master data for goods movements

MBCFC004 Maintenance of batch specifications for goods movements

Thanks,

Santosh

Former Member
0 Kudos
167

Hi,

Check the user exit EXIT_SAPLMBMB_001 and the BADI MB_DOCUMENT_BADI..Both called are in the same function module MB_POST_DOCUMENT..

<b>Note:</b>

If you put a break point in the function module MB_POST_DOCUMENT..It will not stop..As this is called in update task..

Switch on the update debugging..Then you will see this fm getting executed..

Thanks,

Naren

0 Kudos
166

Hi Naren

I don´t know the Update Debugging

I used the exit and stop

Thank's

Mariano

0 Kudos
166

To turn on update debugging, you will have to go to debug mode (/h or break point in the program). Then go to settings and set the checkbox for update debugging.

raymond_giuseppi
Active Contributor
0 Kudos
166

If you really want to execute after all data changes are commited (no longuer in SM13, update task ended) you need to call a specific update FM

Create : SE37 - property - update module and Start delayed on.

You call your FM with the IN UPDATE TASK from any exit or BADI u want.

regards.