SAP for Mill Products Discussions
Explore conversations about production optimization, resource utilization, and quality control using SAP in the mill products industry. Join in or start your own!
cancel
Showing results for 
Search instead for 
Did you mean: 

MIGO - BADI/EXIT to update the stock type during GR

ramiwal_dsilva
Participant

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?

1 REPLY 1

0 Kudos

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