02-22-2017 9:01 AM
Hi All
I am SUBMITing a custom report (suppose its output comprises of X no of columns) in a function module and sending its output to the memory.
While retrieving it, I am only getting X - 5 columns and the last 5 columns are missing.
How can i get the remaining columns?
Below is the code snippet.
SUBMIT zlockbox AND RETURN EXPORTING LIST TO MEMORY USING SELECTION-SET 'TEST' LINE-SIZE 1023.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ELSE.
CALL FUNCTION 'LIST_TO_ASCI'
* EXPORTING
* WITH_LINE_BREAK = 'X'
TABLES
listasci = ascii_tab
listobject = list_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
Please help.
Harsh
02-22-2017 9:41 AM
as far as I know the list line is delimited to 1024 characters. Did you check this?
02-22-2017 9:55 AM
The X no of of columns put together have a width of much less than that but still this issue. 😞
02-22-2017 8:19 PM
Did you define the rows of the target internal table LISTASCI with enough characters? If they are not wide enough, you'll lose characters as you didn't pass WITH_LINE_BREAK (same as abap false)
02-22-2017 10:41 PM
as mentioned in the documentation (help) did you try write_list and display_list does those show you full list ?
02-22-2017 10:59 PM
When you intend to use LIST_FROM_MEMORY, it is always advisable to use FM LIST_FREE_MEMORY before SUBMITting a program. See if that resolves your problem. Hope you have done that?