2007 Jun 11 1:59 PM
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
2007 Jun 11 2:38 PM
This should be possible. None of the parameter is restricted to 255 or 256 char.
Peter
2007 Jun 11 2:55 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |