‎2007 Apr 17 12:57 PM
Hi,
i am having a report RFTBCF00 .
i have to create a function module in which i will call dis report to get the desired output.
i used
SUBMIT RFTBCF00 EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
but the data which i m getting is not formated hw can i format the data to get the desired output .
plz letme know hw we format data after this .
thnx
points will be assigned
‎2007 Apr 17 12:59 PM
Hi Nishu,
Why can't you just submit it ? YOu don't need to export it and then import it from the memory.
SUBMIT RFTBCF00 with p_var = <Variant name> and return.
Regards,
Ravi
‎2007 Apr 17 1:05 PM
but i have to finally assign the data table of report to the table in a function module
‎2007 Apr 17 1:12 PM
assign the table i_ascii to the FM , is there any problem with this??
Make sure that thay are compatible
‎2007 Apr 17 1:01 PM
after using 'LIST_FROM_MEMORY' use this
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = i_ascii
listobject = i_listobject
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
The table i_ascii will contain the output of the list.
loop at i_ascii into wa_ascii..
write wa_ascii.
endloop.
‎2007 Apr 17 1:12 PM
‎2007 Apr 17 1:15 PM
declare listascii like this
data : i_ascii type standard table of listzeile.
‎2007 Apr 17 1:18 PM
‎2007 Apr 17 2:19 PM
can anyone let me know y this table is coming blank... o shud i do something else to get the data