Application Development 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: 

Report

Former Member
0 Kudos

How to fetch a value from the report generated.

1 ACCEPTED SOLUTION

bpawanchand
Active Contributor
0 Kudos

Hi

You can get the generated report values into other program by using

SUBMIT report EXPORTING LIST TO MEMORY.

Further Information

[Chekc this|;

So in the report for which you are submitting call the FUcniton module LIST_FROM_MEMORY

Regards

Pavan

4 REPLIES 4

Former Member
0 Kudos

Hi,

What values do you want to fetch from the report?

Once you complete execution of your reports all your declared variables will be freed and nothing will have data. So if you have to see the data from the report you need to put it to a Database table and access it later.

Regards,

Pramod

0 Kudos

Actually in my pgm i have used submit stmt in this part a report is getting generated.I have stored the values in the memory and by using only one value from the report generated i have to write further coding so now how to fetch that specific value.Please help

bpawanchand
Active Contributor
0 Kudos

Hi

You can get the generated report values into other program by using

SUBMIT report EXPORTING LIST TO MEMORY.

Further Information

[Chekc this|;

So in the report for which you are submitting call the FUcniton module LIST_FROM_MEMORY

Regards

Pavan

0 Kudos

Hi have used the same.The code is

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = it_list

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = it_list

  • EXCEPTIONS

  • EMPTY_LIST = 1

  • OTHERS = 2

.

ENDIF.

CALL FUNCTION 'LIST_TO_ASCI'

EXPORTING

LIST_INDEX = -1

WITH_LINE_BREAK = ' '

TABLES

listasci = it_asc

LISTOBJECT = it_list

EXCEPTIONS

EMPTY_LIST = 1

LIST_INDEX_INVALID = 2

OTHERS = 3

Now dont know how to fetch the belnr value from the table it_list.Please help