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