‎2007 Apr 18 8:07 AM
Hi,
i m using this *****************************************
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.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = i_ascii
listobject = list_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
in the current scenario i m getting data like
header
line item data(detail)
header
line item data(detail)
so on.... what i want is tha data shud come altogether like
header data item data
header data item data
is there any way ....
so dat i can get data dis way only
thnx points will be assigned
‎2007 Apr 18 12:24 PM
Hai Nishu Gupta,
You want Header data and Item data in a single line.
Check the program where you are writing the content to list,
There make sure that there are <b>no '\n' in write or SKIP statements.</b>
Hope you can get it by just <b>removing those( '\n' ,SKIP).</b> in your report
<b>Reward points if it helps you.</b>
Regds,
Rama.Pammi
‎2007 Apr 18 12:10 PM
Hi,
You can use two internal tables, one for the header and one for the item data.
Eg.
Types: begin of it_header_struct,
matnr like mara-matnr,
.....
end of it_header _struct.
Types: begin of it_line_item_struct,
.....
end of it_line_item _struct.
data:it_header type table of it_header_struct.
data:it_line_item type table of it_line_item.
data:wa_it_header like line of it_header struct.
data: wa_it_line_iitem like line of it_line_item_struct.
then ,you can fetch the data in these corresponding tables, and then display it using ALV.
Fot this, the fieldcatalog will be the same, only the fieldnames and the reference table names will change.
Thanks and regards,
Prerna
‎2007 Apr 18 12:24 PM
Hai Nishu Gupta,
You want Header data and Item data in a single line.
Check the program where you are writing the content to list,
There make sure that there are <b>no '\n' in write or SKIP statements.</b>
Hope you can get it by just <b>removing those( '\n' ,SKIP).</b> in your report
<b>Reward points if it helps you.</b>
Regds,
Rama.Pammi