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

gui_upload 256

Former Member
0 Likes
585

Hi,

how is it possible to upload the txt table from PC with <b>cl_gui_frontend_services=>gui_upload</b>, which lines are longer than <b>256 characters</b>?

Thanks and regards

Hi,

how is it possible to upload the txt table from PC with <b>cl_gui_frontend_services=>gui_upload</b>, which lines are longer than <b>256 characters</b>?

Thanks and regards

2 REPLIES 2
Read only

Peter_Inotai
Active Contributor
0 Likes
543

This should be possible. None of the parameter is restricted to 255 or 256 char.

Peter

Read only

Former Member
0 Likes
543

Hi,

i have an file with a record of 400 char. it works OK.

Try this code:

DATA: DATEI_PC TYPE STRING VALUE 'C:TEST.TXT'.

*

TYPES: BEGIN OF ITAB_S,

TXT(1000),

END OF ITAB_S.

*

DATA: ITAB TYPE TABLE OF ITAB_S WITH HEADER LINE.

DATA: STRLEN TYPE I.

*

START-OF-SELECTION.

*

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD

EXPORTING

FILENAME = DATEI_PC

FILETYPE = 'ASC'

CHANGING

DATA_TAB = ITAB[].

*

WRITE: / 'UPLOAD:'.

LOOP AT ITAB.

STRLEN = STRLEN( ITAB-TXT ).

WRITE: / STRLEN.

ENDLOOP.

*

Regards, Dieter

Message was edited by:

Dieter Gröhn