cancel
Showing results for 
Search instead for 
Did you mean: 

MIGO to get serial number at run time

Former Member
0 Kudos

Hi Experrts:-

I need to change the status of serial number (equipment number ) during Migo (good receipt,Transfer posting).

I have checked all the user exits and number of badis but i am not getting serial number at run time if i get serial numbar

in exit od badi i will change the status

I have used following badi:-

MB_DOCUMENT_BADI

MB_MIGO_ITEM_BAdI

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

NTeunckens
Active Contributor
0 Kudos

Depending on your needs, you need to put below code in a different UserExit or BAdI :


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.
data: 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>.

loop at <fs_goserial> into ls_goserial.
"do your checks or whatever ...
endloop.

Check the possible 'enhancement points' via break-point in the "CL_EXITHANDLER"-class, method 'GET_INSTANCE' code-line 28 (SY-SUBRC) when running trx. "MIGO". As you can clearly see, this is only applicable when running trx.'MIGO'.

Former Member
0 Kudos

Use user exits EXIT_SAPLIE01_005 and EXIT_SAPLIE01_007 in customer exit IQSM0005.

Regards,

Lakshman