Application Development 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: 

How to get the FIX-LENGTH non-unicode file in unicode system?

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.