‎2006 Dec 05 4:41 PM
In a report program, I have some write statements, and then I am calling another report using submit...export list to memory and return, then calling FM write_list.
Why is the page number set to 1 for the list from memory even though I expect to see the list in the current page just as a continuation of my write statements in the report. Is there any way to write the list as the continuation instead of stating at a new page?
Thanks
Anu
‎2006 Dec 05 4:56 PM
Hi
After you get back the list from memory using the FM
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = i_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
then use FM
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.
Just check if you give
loop at i_ascii into wa_ascii..
write wa_ascii.
endloop.
maybe this can solve your problem.
‎2006 Dec 05 4:56 PM
Hi
After you get back the list from memory using the FM
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = i_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
then use FM
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.
Just check if you give
loop at i_ascii into wa_ascii..
write wa_ascii.
endloop.
maybe this can solve your problem.
‎2006 Dec 05 5:15 PM