cancel
Showing results for 
Search instead for 
Did you mean: 

Manually add serial numbers in MIGO_GI

Former Member
0 Kudos

Hi.

I need to manually(from internal table) add serial numbes in transaction MIGO_GI but i fail to find any BADI or EXIT that meets my requirements.
I tried IQSM0008 and MB_MIGO_BADI, but I don't have access to the serial number table displayed in MIGO_GI.
So my question is if there is some BADI or EXIT status, from where I can modify the serial number table.

Accepted Solutions (0)

Answers (1)

Answers (1)

NTeunckens
Active Contributor
0 Kudos

Hello Lasha

I think you could do something like this in one of your (earlier) BAdI / UserExits, but Modifying this data is obviously

TYPES: BEGIN OF ty_s_goserial,         "Cfr. INCLUDE 'LMIGOKE1' for 'trx. MIGO
         selected TYPE xfeld,
         serialno TYPE gernr,
         uii      TYPE uii_char72,
         subrk    TYPE xfeld,
       END OF ty_s_goserial.

DATA:
  lt_goserial TYPE STANDARD TABLE OF ty_s_goserial WITH NON-UNIQUE DEFAULT KEY,
  ls_goserial LIKE LINE OF lt_goserial VALUE IS INITIAL.

FIELD-SYMBOLS: <fs_goserial> LIKE lt_goserial. "type goserial.

UNASSIGN <fs_goserial>.

"Get the SERIALNOs via trx.MIGO-itabs ('GOSERIAL')
ASSIGN ('(SAPLMIGO)OREF_DETAIL->T_GOSERIAL') TO <fs_goserial>.

"Checks or Modifying ...
LOOP AT <fs_goserial> INTO ls_goserial.
  "...
ENDLOOP.
Former Member
0 Kudos

Thanks for quick responce, I got the table after I removed
subrk TYPE xfeld
from the type definition.

I added the code to some of the exits( I'm appending a line to the table) but it's not showing in the screen.(it's getting changed back to the original before it's displayed to screen)
Can you tell me an example of User Exit or BADI where the modified table is saved?