10-13-2008 12:35 PM
10-13-2008 12:51 PM
10-13-2008 12:46 PM
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
10-13-2008 12:50 PM
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
10-13-2008 12:51 PM
10-13-2008 12:55 PM
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