One of my Client wanted "During MIGO (GR with reference to PO), the default Quantity should be Zero; Instead of Open PO Quantity".
So I searched SDN but I could not get an answer.
Hence thought of posting this document, so that it would be useful to someone with the same requirement.
For this we need to use BADI - MB_MIGO_BADI
Create a BADI as shown below
Image may be NSFW.
Clik here to view.
Double Click on the Class and in the Attributes, create as shown below.
Image may be NSFW.
Clik here to view.
ZMM_MIGO_BADI_T is a table type with the following structure.
Image may be NSFW.
Clik here to view.
Now write the following code in the BADI Methods.
Image may be NSFW.
Clik here to view.
Output Before Implementing BADI
Image may be NSFW.
Clik here to view.
Output After Implementing BADI