2010 Aug 09 10:36 AM
Hi All,
My requirement is as below,
I have to fetch the data from transaction --> KE30( AE00-0000000) -( Program GP3U541QI0A8T1INIRH8IJPKU2T ) and use the same for further calculation in my custom report.
Hence in my custom report i have written SUBMIT GP3U541QI0A8T1INIRH8IJPKU2T
EXPORTING LIST TO MEMORY
WITH the required selection screen parameters
AND RETURN
After that, I have used the function modules 'LIST_FROM_MEMORY' and 'LIST_TO_ASCI' as well, in order to fetch the data.
However I am not getting the data into the LIST_FROM_MEMORY function module.
Please suggest me the approach or please correct me in the above approach.
Thanks a lot in advance for your replies.
Regards
Anuja.
2010 Aug 09 11:06 AM
Hi ,
Did u try using :
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = t_list
EXCEPTIONS
empty_list = 1
OTHERS = 2.
to find whether data is there in the listobject..?
Best Regards,
Navin Fernandes.
Hi All,
My requirement is as below,
I have to fetch the data from transaction --> KE30( AE00-0000000) -( Program GP3U541QI0A8T1INIRH8IJPKU2T ) and use the same for further calculation in my custom report.
Hence in my custom report i have written SUBMIT GP3U541QI0A8T1INIRH8IJPKU2T
EXPORTING LIST TO MEMORY
WITH the required selection screen parameters
AND RETURN
After that, I have used the function modules 'LIST_FROM_MEMORY' and 'LIST_TO_ASCI' as well, in order to fetch the data.
However I am not getting the data into the LIST_FROM_MEMORY function module.
Please suggest me the approach or please correct me in the above approach.
Thanks a lot in advance for your replies.
Regards
Anuja.
2010 Aug 09 11:06 AM
Hi ,
Did u try using :
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = t_list
EXCEPTIONS
empty_list = 1
OTHERS = 2.
to find whether data is there in the listobject..?
Best Regards,
Navin Fernandes.
2010 Aug 09 11:17 AM
Hi Anuju ,
try this way
TYPE-POOLS : abap.
DATA:lt_listobject TYPE TABLE OF abaplist,
l_tab_lines TYPE i.
DATA: txtlines(3000) TYPE c OCCURS 0 WITH HEADER LINE.
* Submit you r progam......
SUBMIT <report>
------
EXPORTING LIST TO MEMORY AND RETURN.
* read list from memory into table
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = lt_listobject.
*Spool content in Ascii format
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listobject = lt_listobject
listasci = txtlines.
* write Spool data as an output
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = lt_listobject..
* clear memeory
CALL FUNCTION 'LIST_FREE_MEMORY'
TABLES
listobject = lt_listobject.
Prabhudas
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |