I'm using ABAP Query SQ01 and try to get the data using function LIST TO MEMORY and WRITE LIST resulting garbage value.
Try the suggestion give our fellow SCN members in this link http://scn.sap.com/thread/2122861 but still not resolved. Appreciate if there is any idea and input on this.
submit aqzzzmm_group_01zmm_q01======= exporting list to memory
and return.
call function 'LIST_FROM_MEMORY'
tables
listobject = listtab.
call function 'WRITE_LIST'
* EXPORTING
* WRITE_ONLY = ' '
tables
listobject = listtab
* EXCEPTIONS
* EMPTY_LIST = 1
* OTHERS = 2
.
.
call function 'LIST_FREE_MEMORY'
tables
listobject = listtab
.
call function 'GUI_DOWNLOAD'
exporting
filename = 'c:\test.csv'
header = '00'
tables
data_tab = listtab.