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

exporting standard SAP report to memory in ABAP

Hi guys,

please assist me i'm trying to save the the following report S_ALR_87013340 in memory its SAP CO report.

I used the following below but it still doesn't return anything.i used exporting memory to list it still fails.

SUBMIT GPEVO4MSY0AK62KAHGEC3PL2H33400

*VIA SELECTION-SCREEN

WITH SELECTION-TABLE lt_rspar AND RETURN.

TRY.

cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_pay_data ).

ASSIGN lr_pay_data->* TO <lt_pay_data>.

CATCH cx_salv_bs_sc_runtime_info.

MESSAGE `Unable to retrieve ALV data` TYPE 'E'.

ENDTRY.

*

cl_salv_bs_runtime_info=>clear_all( ).

* Read results

* CALL FUNCTION 'LIST_FROM_MEMORY'

* TABLES

* listobject = lt_list

* EXCEPTIONS

* not_found = 1

* OTHERS = 2.

* IF sy-subrc = 0.

* CALL FUNCTION 'LIST_TO_ASCI'

* EXPORTING

* list_index = -1

* with_line_break = ' '

* IMPORTING

* list_string_ascii = lt_list_string

* TABLES

* listobject = lt_list

* EXCEPTIONS

* empty_list = 1

* list_index_invalid = 2

* OTHERS = 3.

* ENDIF.

* CALL FUNCTION 'LIST_FROM_MEMORY'

* TABLES

* listobject = t_listobject

* EXCEPTIONS

* not_found = 1

* OTHERS = 2.

* CALL FUNCTION 'LIST_TO_ASCI'

** EXPORTING

** LIST_INDEX = -1

** WITH_LINE_BREAK = ' '

* TABLES

* listasci = t_ascilist

* listobject = t_listobject

* EXCEPTIONS

* empty_list = 1

* list_index_invalid = 2

* OTHERS = 3.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2016 at 10:28 AM

    resolved it thanks

    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.