09-20-2016 3:08 PM
Hello Team,
I need to update the stock type MSEG-INSMK dynamically at runtime based on few conditions.
This will happen upon save on Tcode MIGO during GR creation on mnt type 101.
I am trying to implement the logic using MB_MIGO_BADI.
The Method LINE_MODIFY allows me to make changes to the line item. However I discovered that the field CS_GOITEM-INSMK is not modifiable.
Is there any other suitable technique by which we can achieve this?
09-21-2016 9:16 PM
Hi Ramiwal,
MIGO is calling MB_CREATE_GOODSMOVEMENT if I remember correctly. Maybe you can use a BadI or CFC within this module?
Although I have to say, it seems awkward (w/o knowing the context) to exchange the stocktype upon save - maybe confusing for the user if he intentionally selected a stocktype before).
Regards,
Stefan