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_DOWNLOAD separator ';'

Former Member
0 Likes
4,447

Hi,

I would like use CALL FUNCTION 'GUI_DOWNLOAD'

But I want separator ';' of columnes - not "TAB".

Have you any ideas?

thanks,

Bogdan

1 ACCEPTED SOLUTION
Read only

former_member188829
Active Contributor
0 Likes
1,805

Hi,

Check this thread..

4 REPLIES 4
Read only

former_member188829
Active Contributor
0 Likes
1,806

Hi,

Check this thread..

Read only

0 Likes
1,805

THANKS!

Bogdan

Read only

Former Member
0 Likes
1,805

Hi

U need to insert the separator directly in internal table with the record of the file, so while you're filling the field of the file, you have to insert the separator.

Max

Read only

Former Member
0 Likes
1,805

if you are in 4.7 or above , u have the option WRITE_FIELD_SEPARATOR , u can use that

 CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
*   BIN_FILESIZE                    =
    FILENAME                        =
*   FILETYPE                        = 'ASC'
*   APPEND                          = ' '
   *WRITE_FIELD_SEPARATOR           = ' '* 

If you using below 4.7 then try something like this


LOOP AT i_final.
        DO.
          ASSIGN COMPONENT sy-index OF STRUCTURE i_final TO <fs_field>.
          IF sy-subrc EQ 0.
            CONCATENATE <fs_field> ';'  INTO i_download-field.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
        Append i_download
        clear i_download
      ENDLOOP.