Problem solve Get help with specific problems with your technologies, process and projects.

Exporting a list to memory

Here's how to get the output of a standard report into an internal table without Import/Export.

Here's how to get the output of a standard report into an internal table without Import/Export. I wrote the code in R/3 4.5, but I am pretty sure it will work back in 4.0 and up to 4.6.
DATA: LISTOBJECT LIKE ABAPLIST OCCURS 0 WITH HEADER LINE.
DATA: ASCII_TEMP  LIKE LISTZEILE OCCURS 1 WITH HEADER LINE.
SUBMIT <prog> EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    LISTOBJECT = LISTOBJECT
  EXCEPTIONS
    NOT_FOUND  = 1.
CALL FUNCTION 'LIST_TO_ASCI'
  TABLES
    LISTASCI           = ASCII_TEMP
    LISTOBJECT         = LISTOBJECT
  EXCEPTIONS
    EMPTY_LIST         = 1
    LIST_INDEX_INVALID = 2.
This was last published in June 2003

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close