Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

GUI_DOWNLOAD

Hi All,

While i download data from an Internal table...i need a character(for suppose *)

in between the fields (as a separator). Can this be achieved using GUI_DOWNLOAD ? if not

what is the other way of doing it other than using CONCATENATE functionality.

Thanks !

Former Member
replied

Hi,

Use this FM

SAP_CONVERT_TO_TEX_FORMAT

Below is the sample code

DATA: lv_file_separator TYPE c.

lv_file_separator = '*'.

CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'

EXPORTING

i_field_seperator = lv_file_separator

TABLES

i_tab_sap_data = tb_output1_file

CHANGING

i_tab_converted_data = tb_converted

EXCEPTIONS

conversion_failed = 1

OTHERS = 2.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Then use GUI_DOWNLOAD and provide the above intrernal table ( tb_converted) in the data_tab parameter under tables section.

Regards,

Manish

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question