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

Fetch output from Sumbittted Report Painter Program

Former Member
0 Likes
1,500

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
731

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 ,

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.

2 REPLIES 2
Read only

Former Member
0 Likes
732

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.

Read only

Former Member
0 Likes
731

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