Application Development 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: 

How to modify items fields with MB_MIGO_BADI or enhancement point

Former Member
0 Kudos

Hi,

I need to modify some items values in MIGO.

I tried to use MB_MIGO_BADI with the method LINE_MODIFY but :

1) i can only modify the GOITEM fields appears on the screen. If i try to modify all the fields i need in GOITEM structure, i have an error message.

2) There's no way to add a serial number using GOSERIAL structure with this method.

So do you know how i can modify these data ?

I tried to use enhancement point in MIGO but i don't know where to place my code in the program.

Thanks for any help

2 REPLIES 2

shishupalreddy
Active Contributor
0 Kudos

Hello,

May i know which item field you are trying to modify and what error message you are getting while modifying the same.

Regards,

0 Kudos

I'm trying to modify this fields :

GOITEM-ZEILE

GOITEM-WERKS

GOITEM-LGORT

GOITEM-LIFNR

GOITEM-NAME1

GOITEM-LGOBE

GOITEM-MENGE

GOITEM-ERFMG

GOITEM-MEINS

GOITEM-VENDORNAME

GOSERIAL-SERIALNO

+custom fields added in a custom tab

The error message i have is :

BADI : You are not allowed to change the field content of GOITEM-MENGE.

Description :

-


Message no. MIGO049

Diagnosis

The contents of field GOITEM-MENGE have been changed in BAdI MB_MIGO_BADI (method LINE_MODIFY). The changes, however, are only valid for fields that are represented on a screen in transaction MIGO.

The other fields of structure LSGOITEM provide internal control. No changes are made to these fields.