2014 Jul 24 10:40 AM
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.
2014 Jul 24 11:07 AM
2014 Jul 24 11:21 AM
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
2014 Jul 24 11:30 AM
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.
2014 Jul 24 12:50 PM
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.
2014 Jul 24 1:27 PM
2014 Jul 24 1:43 PM
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.
2014 Jul 24 1:50 PM
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.
2014 Jul 27 11:17 AM
Hi
Could you please attach the screen shot of MIGO transaction with the Table Control that you are refering .
2014 Jul 24 8:49 PM
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