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

Problem in report

former_member189410
Participant
0 Likes
863

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

8 REPLIES 8
Read only

Former Member
0 Likes
829

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

Read only

0 Likes
829

but i have to finally assign the data table of report to the table in a function module

Read only

0 Likes
829

assign the table i_ascii to the FM , is there any problem with this??

Make sure that thay are compatible

Read only

Former Member
0 Likes
829
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.
Read only

0 Likes
829

Thnx ,

but wt will be the type of i_ascii . cud u let me know

Read only

0 Likes
829

declare listascii like this

data : i_ascii  type standard table of listzeile.

Read only

0 Likes
829

thnx its showing be blank table i_ascii .

so no data found .

Read only

0 Likes
829

can anyone let me know y this table is coming blank... o shud i do something else to get the data