on 2025 Apr 04 6:23 AM
Hi,
I have implemented the badi BADI MB_MIGO_BADI and I've added my custom field in the structure GOITEM called ZFIELD.
My requirement is to add this field in the item detail screen in MIGO.
In the method LINE_MODIFY in the implementation class, I tried to populate the field which I have added. It was throwing the error message - "BADI: You are not allowed to change the field content of GOITEM-ZFIELD".
I've read through a lot of blogs across the internet and got nothing on the enhancement in the screen 200 (Item detail screen) of the MIGO. You can see there's already the custom tab has been implemented also.
Is it possible to do this?
If yes, what am I doing wrong?
Else, what are the alternatives I have.
Any blogs or instructions from you would be of great help.
Best Regards,
Sabeer
Request clarification before answering.
Hello @Sabeer_Sakkariya
MB_MIGO_BADI is meant to implement additional fields in custom tabs either on header or item level. It's not meant to add fields to item overview screen (item list screen). See the BAdI documentation:
Consider the note 3536998 - Warning MIGO049 - BADI: You are not allowed to change the field content of & about the rationale of the message you get.
Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dominik,
Thank you so much for your reply.
I'm kind of confused at this point. The note 3536998 says,
"Message MIGO049 is issued inside an Enhancement Section in include LMIGOKL3, so you could use this to implement an exception from the logic for your custom fields.".
What do you suggest? Shall I change the screen 200 and use this enhancement to skip the error message ?
I didn't see any screen enhancements for screen 200, except somebody posted in the community saying he has changed the screen.
Which would be the best practice to follow?
Hello @Sabeer_Sakkariya
I'd suggest to use the BAdI as it is meant to be used, i.e. to enhance MIGO with custom fields displayed in dedicated custom tabs. I don't think modifying screen 200 is a good idea.
Best regards
Dominik Tylczynski
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.