Skip to Content
P D

Final Internal Table used in MIGO Transaction

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jul 24, 2014 at 10:07 AM

    IT_MSEG

    IS_MKPF

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2014 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2014 at 10: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.


    migo.png (70.3 kB)
    migo2.png (49.8 kB)
    migo3.png (50.0 kB)
    migo4.png (51.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2014 at 11:50 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2014 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.