Skip to Content
avatar image
Former Member

access internal table or variable from another program

hi experts,

i am doing a submit program to RM06EANL. is there a way i can access one of the internal tables or variables that is populated inside the program RM06EANL and use it in my program? how can i do this?

please help me on this.

thanks..:-)

-march-

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 07, 2007 at 01:33 PM

    Hi

    It can read a variable of other program in this way:

    (<PROGRAM NAME>)<VARIABLE>

    It can use the field-symbols, so in your case:

    FIELD-SYMBOLS: <ITAB> TYPE TABLE.

    ASSIGN '(RM06EANL)ITAB[]' TO <ITAB>.

    But I don't believe you can use this trick because after ending the submit statament the system should clear all memory used by called program.

    Max

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi max,

      how will i use these in my codes?

      i have tried but an error message appears "...type-incompatible"

      please advise me on this.

      thanks..:-)

  • avatar image
    Former Member
    Dec 07, 2007 at 01:54 PM

    Hi ,

    Did you try Submit and Return or Submit exporting List to memory.

    May be this is of help!

    Regards,

    Lalit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi lalit,

      yes i have tried that but i can't still access the internal table from the submit program..

  • Dec 07, 2007 at 02:32 PM

    I don't think you can directly achieve it.

    You can copy RM06EANL to ZRM06EANL.

    Change program ZRM06EANL and put one export statement which can export your internal table to some memory id.

    EXPORT ITAB TO MEMORY ID 'ZTEST123'.

    In your main program:

    - You need to Submit the ZRM06EANL program.

    - Just after the SUMBIT ZRM06EANL AND RETURN statment, IMPORT the exported data.

    SUBMIT ZRM06EANL AND RETURN.
    IMPORT ITAB FROM MEMORY ID 'ZTEST123'.

    Regards,

    Naimesh Patel

    Add comment
    10|10000 characters needed characters exceeded