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: 

Question to CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

Former Member
0 Kudos
126

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
56

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

2 REPLIES 2

Former Member
0 Kudos
57

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

PankajVPatil
Participant
0 Kudos
56

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