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

How do I get LIST data after doing a SUBMIT EXPORTING LIST TO MEMORY??

Hi Guys,

Im getting a list's data through the following code... My question is: if I have this list now in the internal char table of 'LIST_TO_ASCI', how do I get the "data" contents back to work with?? I mean, I have all the data there, but how do I retrieve it back to work with?? Is it a complicated story of offsets, or is there a Funciton Module you know of that can "devide" the list into Column Headings and data again, for example?

How else can I extract the data from this list??

SUBMIT ragitt_ALV01

EXPORTING LIST TO MEMORY

USING SELECTION-SET 'NICOLE'

WITH SELECTION-TABLE par_itab

AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = list_tab

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

ENDIF.

CALL FUNCTION 'LIST_TO_ASCI'

EXPORTING

list_index = -1

IMPORTING

LIST_STRING_ASCII = TLIST_STRING_ASCII

LIST_DYN_ASCII = TLIST_DYN_ASCII

TABLES

listasci = tablalinea

listobject = list_tab

EXCEPTIONS

empty_list = 1

list_index_invalid = 2

OTHERS = 3.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:34 AM

    Hi chistian

    The data of your report is in TLIST_STRING_ASCII

    You can read it with a loop, for example

    loop at TLIST_STRING_ASCII.

    end loop

    best regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:41 AM

    And try with ofsets or may be some function of function group

    SLST

    cheers

    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.