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

Write_list

Former Member
0 Likes
546

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
503

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.

2 REPLIES 2
Read only

Former Member
0 Likes
504

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.

Read only

0 Likes
503

That is perfect. Thank you.

Anu