Skip to Content

report list 2 internal table

how to copy report list to internal table

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 12:30 PM

    Hi ,

    Can u explain more about ur problem .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 12:30 PM

    There is an addition for the ABAP statement SUBMIT, with which you can "store" the list output generated in SAP Memory

    SUBMIT...
      EXPORTING LIST TO MEMORY
    

    Afterwards you can retrieve the list output, which was EXPORTed TO MEMORY, back using FM LIST_FROM_MEMORY.

    Reward points, if reply is applicable

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 31, 2008 at 12:32 PM

    Submit <report> exporting list to memory....

    use the function module: LIST_FROM_MEMORY to get the report output in the itab.

    OOPs...late by 2 min...

    Regards,

    Ravi

    Edited by: Ravi Kanth Talagana on Jan 31, 2008 1:32 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 03:27 PM

    Hi Durga, chk this,

    pls check the below code for example:

    codeDATA LIST_TAB TYPE TABLE OF ABAPLIST.

    DATA: BEGIN OF olist OCCURS 0,

    filler1(1500) TYPE c,

    END OF olist.

    SUBMIT YTEST04 WITH MATNR EQ 't000001'

    EXPORTING LIST TO MEMORY

    AND RETURN.

    BREAK-POINT.

    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.

    ENDIF.[/code]

    cheers,

    Hema.

    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.