2009 Mar 24 12:13 PM
Hi,
I've added my custom field in the structure GOITEM called ZZGROES.In the method Line/Item change in my implementation of BADI MB_MIGO_BADI my field takes value from MARA for current material number. I've added the field on the screen '0200' in SAPLMIGO also. When I start transaction MIGO I choose material number and the system returns me an error message: BADI: You are not allowed to change the field content of field GOITEM-ZZGROES.
How can I do that ? I would like to display the size of material together with material description.
Best regards,
Stefan
2009 Mar 24 12:42 PM
Hi ,
You can create a custom field in MIGO as a subscreen ...which will be displayed as tabstrip......
Do in this way....
use the badi MB_MIGO_BADI
Create a program with the screen type sub-screen in SE80 and design the layout for the custom fields.
Declare the custom fields in a Z**TOP include.
--> Under the PBO method declare the program name and screen number
--> Under PAI method declare the field to u2018Xu2019.
--> Define E_force_change = 'X'. in pai
--> Under the line modify method declare a flag and set to u2018Xu2019 checking for material document number by which we can set the fields to be in display mode when we open MIGO for display of material document created after doing goods receipt.
--> Under the POST_DOCUMENT method write the code for the values of the line item. For these values to be available here in this method use the memory concept u201CExport to memory idu201D in the method LINE_MODIFY.
--> Under the POST_DOCUMENT method write the code for appending the value to Z table along with the values of the line item (In this case production order number, material, u2026u2026.). For these values to be available here in this method use the memory concept u201CExport to memory idu201D in the method LINE_MODIFY.
--> In order to make the fields to be in display mode during the display of material document, create a module under PBO and import the flag value and the production order number details in the method LINE_MODIFY and if that flag = u2018Xu2019, use
loop at screen.
endloop......concept
Thanks,
Shailaja Ainala.
2009 Mar 27 6:36 AM
Hi,
Using your way it will be displayed on different tab. I would like to have the field next to the field 'material short text' GOITEM-MAKTX. in the grid.
Thanks
Stefan
2009 Mar 27 8:21 AM
Please advice me how can I have my custom field next to the goitem-maktx on the grid.
Stefan
2009 Apr 05 5:56 AM
2025 Apr 03 3:13 PM
Hi all, I'm also facing the same issue. How can I add a custom field in the line item grid?
I've tried changing the value through LINE_MODIFY and got the error -
BADI: You are not allowed to change the field content of GOITEM-ZZFIELD