Skip to Content
0

Manually add serial numbers in MIGO_GI

Apr 19, 2017 at 07:11 AM

206

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Nic Teunckens Apr 19, 2017 at 07:28 AM
0

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.
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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?

0