06-12-2009 9:06 AM
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
06-12-2009 9:14 AM
Hello,
May i know which item field you are trying to modify and what error message you are getting while modifying the same.
Regards,
06-12-2009 9:39 AM
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.