2007 Nov 21 10:36 AM
Hi,
i use this class to download data to präsentation server.
i create the itab dynamicly. it works OK, but i have problems with
value-fields, which shell have allwas the some lenght.
For example i will doenloa PA0015 the field PA0015-BETRG
has someone a lenght of 6 and someone a lenght of 8 char.
Question: can i give the class, which i use, any parameter
which says that fields have the same lengh?
Or is ther another was to download it?
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
FILENAME = DATEI_PC
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
CHANGING
DATA_TAB = [].
Thanks.
Regards, Dieter
2007 Nov 21 10:48 AM
Hi
I can only suppose the method should manage the TAB in order of the size of the fields of the structure <GT_ITAB>.
If it can't do it, probably you should write the data (in order of structure <GT_ITAB>) in a new table before downloading them without using WRITE_FIELD_SEPARATOR parameter.
Max
2007 Nov 21 10:48 AM
Hi
I can only suppose the method should manage the TAB in order of the size of the fields of the structure <GT_ITAB>.
If it can't do it, probably you should write the data (in order of structure <GT_ITAB>) in a new table before downloading them without using WRITE_FIELD_SEPARATOR parameter.
Max
2010 Oct 13 2:20 PM
Hi Dieter,
I have a similar situation, the on-the-fly generated structure have all fields of type string but the sy-subrc gets sets to 6 (unknown error).
@Max: i did not get the point of "in order of structure <GT_TAB>". Can you please elaborate?
Regards,
Pankaj