Skip to Content
author's profile photo Former Member
Former Member

How to use the internal table of the submitted program

Hi,

In the main program i have submitted a program and that program is running successfully and data is populated in to it_final, now i want to use this data populated internal table it_final in my main program.

Thanks,

Sudhakar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 30, 2007 at 05:41 PM

    Use can use Export / Import technique to achive this.

    but make sure that memory ID is dynamic with username.

    OR check this option when you are submitting report

    EXPORTING LIST TO MEMORY

    Thanks

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

    • Kiran K Matthew Billingham

      Hi,Mathew,

      &----


      *& Report ZMB51 *

      *& *

      &----


      *& *

      *& *

      &----


      REPORT ZMB51 .

      DATA LIST_TAB TYPE TABLE OF ABAPLIST.

      DATA: BEGIN OF olist OCCURS 0,

      filler1(1500) TYPE c,

      END OF olist.

      submit <b>RM07DOCS</b> EXPORTING LIST TO MEMORY

      AND RETURN.

      CALL FUNCTION 'LIST_FROM_MEMORY'

      TABLES

      LISTOBJECT = LIST_TAB

      EXCEPTIONS

      NOT_FOUND = 1

      OTHERS = 2.

      IF SY-SUBRC = 0.

      CALL FUNCTION 'LIST_TO_ASCI'

      EXPORTING

      LIST_INDEX = -1

      TABLES

      LISTASCI = oLIST

      LISTOBJECT = LIST_TAB

      EXCEPTIONS

      EMPTY_LIST = 1

      LIST_INDEX_INVALID = 2

      OTHERS = 3.

      *

      • BREAK-POINT.

      write:/ sy-subrc.

      ENDIF.

      OLIST will contain the report output that you have executed but you need to tweak this internal table so that it can be used for further processing.The current example will get you MB51 output into OLIST,so change the program name to your program name at the SUBMIT statement and then try.

      K.Kiran.

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.