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: 

Final Internal Table used in MIGO Transaction

former_member207873
Participant
0 Kudos

Hi Experts,

          I need to know the final internal table used in the MIGO transaction. Why I want to know this is, I need all the records which are there in the table control (GODYNPRO) of the MIGO transaction. I have used the BADI BADI MB_MIGO_BADI to read the values. But since it is a table control the values are getting changed when the user scrolls down the table control. How can I get all the values shown in this table control. Is there any global internal table in the SAPLMIGO program?

BR.

9 REPLIES 9

former_member209920
Active Participant
0 Kudos

IT_MSEG

IS_MKPF

Former Member
0 Kudos

Hello BR,

There is a class defined in the MIGO function group with name LCL_MIGO_KERNEL.

In this class there is a variable with name PT_GOITEM, this table holds the table entries on MIGO transaction.

There are several methods also available in the same class through which we can get the required line items.

Please let us know in case of any further issues on the same.

thanks,

Bhaskar

Former Member
0 Kudos

Hi ABAP,

Check the BADI MB_MIGO_BADI the example class CL_EXM_IM_MB_MIGO_BADI

In attributes tab variable GT_EXTDATA contains all migo positions.

Read the internal table to check items.

in this method the internal table is filled.

Therefore define your internal table in the class attributes.

I hope you help.

atul_mohanty
Active Contributor
0 Kudos

Hi

As an aternate solution, you can use field symbol

   DATA : v_fld_godynpro(18)     TYPE c VALUE '(SAPLMIGO)GODYNPRO'.

     FIELD-SYMBOLS :<fs_godynpro>  TYPE godynpro.

   ASSIGN (v_fld_godynpro) TO <fs_godynpro>.
    IF <fs_godynpro> IS ASSIGNED.
* Here you can the value in GODYNPRO    

   ENDIF.

0 Kudos

Hi Atul,

it wont return the whole table control values.

BR.

0 Kudos

Hi

I did not check its table control. However if its so.

   DATA : v_fld_godynpro(20)     TYPE c VALUE '(SAPLMIGO)GODYNPRO[]',

             t_godynpro type standard table of GODYNPRO.

     FIELD-SYMBOLS :<fs_godynpro>  TYPE TABLE.

 

ASSIGN (v_fld_godynpro) TO <fs_godynpro>.
    IF <fs_godynpro> IS ASSIGNED.
      t_godynpro[] = <fs_godynpro>

   ENDIF.

0 Kudos

This also wont work, since it will contain only the values which are displayed on the table control at present. There may be many more values once you scroll down the table control.

BR.

0 Kudos

Hi

Could you please attach the screen shot of MIGO transaction with the Table Control that you are refering .

Former Member
0 Kudos

HI,

you can use the below code. This structure will have the runtime value for all the line items when you are doing a goods reciept through MIGO or MIGO_GR.

CONSTANT: lc_item(19) TYPE c VALUE (SAPLMIGO)PT_GOITEM.

DATA: lt_item TYPE TABLE of goitem.

FIELD SYMBOLS: <lt_item> TYPE TABLE.

ASSIGN (lc_item) to <lt_item>.

IF     <lt_item> IS ASSIGNED.

     lt_item[] = <lt_item>.

ENDIF.

Hope this helps.

Regards,

Abhi