Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: Import table from a program into own report

$
0
0

Hi,

 

Try the below

 

SUBMIT report_nameWITH selectoption1eq variable

     exporting list to memory AND RETURN.


*get listfrom memory

CALL FUNCTION 'LIST_FROM_MEMORY'

   TABLES

     LISTOBJECT       =  IT_TAB.

 

* convert into asci format

   CALL FUNCTION 'LIST_TO_ASCI'

        TABLES

             listasci           = text_TAB

             listobject         = it_TAB

        EXCEPTIONS

             empty_list         = 1

             list_index_invalid = 2

             OTHERS             = 3.

 

loop at text_tab.

*copy the contents of the output here into your variable / internal table.  

endloop.


*then free memory

call function 'LIST_FREE_MEMORY'.


Viewing all articles
Browse latest Browse all 3316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>