Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI mb_migo_badi error message

stefan_kolev4
Participant
0 Kudos
2,135

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

5 REPLIES 5
Read only

former_member262988
Active Contributor
0 Kudos
815

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.

Read only

0 Kudos
815

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

Read only

0 Kudos
815

Please advice me how can I have my custom field next to the goitem-maktx on the grid.

Stefan

Read only

stefan_kolev4
Participant
0 Kudos
815

solved

Read only

0 Kudos
461

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