11-21-2007 10:49 AM
I tried to use the GUI_UPLOAD
but it seems it cannot get the correct data by the length i defined if the record contains 2-byte words.
11-21-2007 10:50 AM
03-31-2008 9:25 AM
Solved.Get all content to a string then use the following method
TRY.
CALL METHOD CL_ABAP_LIST_UTILITIES=>READ_FROM_DISPLAY_LAYOUT
EXPORTING
DISPLAY_DATA = IO_OUTPUT
DISPLAY_OFFSET = I_OFFSET
DISPLAY_LENGTH = I_LENTH
IMPORTING
FIELD = I_STRING.
CATCH CX_PARAMETER_INVALID_RANGE .
ENDTRY.