Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SUBMIT Report with return values

Former Member
0 Likes
13,148

Hi,

I am using the SUBMITE REPORT STATEMENT as

SUBMIT RVV50R10C WITH st_ledat-LOW = s_vstel-LOW

WITH st_ledat-HIGH = s_vstel-HIGH

AND RETURN EXPORTING LIST TO MEMORY.

For the report RVV50R10C the o/p is an hierarchical display.

So when i am exporting list to memory. how exactly are the values populated and,

if i want two fields from the o/p of the report t be populated in another internal table, how can i get it.

initially i am calling FM LIST_FROM_MEMORY and getting values in to a itab of type abaplist.

how the values will be populated into this table.

1 ACCEPTED SOLUTION
Read only

keerthy_k
Product and Topic Expert
Product and Topic Expert
0 Likes
4,688

Hi,

Hope this wud help u...

Once the program report has been accessed, the list stored there in the ABAP Memory is read by means of function modules and inserted in the current list.

DATA list_tab TYPE TABLE OF abaplist.

SUBMIT report EXPORTING LIST TO MEMORY

AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = list_tab

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = list_tab.

ENDIF.

Keerthi.

4 REPLIES 4
Read only

keerthy_k
Product and Topic Expert
Product and Topic Expert
0 Likes
4,689

Hi,

Hope this wud help u...

Once the program report has been accessed, the list stored there in the ABAP Memory is read by means of function modules and inserted in the current list.

DATA list_tab TYPE TABLE OF abaplist.

SUBMIT report EXPORTING LIST TO MEMORY

AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = list_tab

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = list_tab.

ENDIF.

Keerthi.

Read only

Former Member
0 Likes
4,688

Hi,

The FM WRITE_LIST displays the fetched data on the screen,

instead i want to save the data into an internal table for further accessing.

can u pls help me out wid this.

Read only

Former Member
0 Likes
4,688

Hi Srikanth,

Kindly refer this link below:

Hope it helps

Regrds

Mansi

Read only

Former Member
0 Likes
4,688

used someother method that using the submit report statement.