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

CSV file not produced with comma.

anupam_srivastava2
Participant
0 Likes
668

Hi All

I am using function SAP_CONVERT_TO_CSV_FORMAT to convert it into csv format.

but the file produced is with ;

I have put the

EXPORTING

I_FIELD_SEPERATOR = ','

but eventhough it produces with ;.

any help will be highly app

Hi All

I am using function SAP_CONVERT_TO_CSV_FORMAT to convert it into csv format.

but the file produced is with ;

I have put the

EXPORTING

I_FIELD_SEPERATOR = ','

but eventhough it produces with ;.

any help will be highly app

4 REPLIES 4
Read only

Former Member
0 Likes
598

Can you post the code.

Read only

Former Member
0 Likes
598

Use the FM SAP_CONVERT_TO_TEX_FORMAT instead.

Read more here:

Regards,

Ravi Kanth Talagana

Read only

Former Member
0 Likes
598

Hi,

Use this


DATA: L_FIELD_SEPERATOR.
  L_FIELD_SEPERATOR = cl_abap_char_utilities=>horizontal_tab.

  CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
    EXPORTING
      I_FIELD_SEPERATOR    = L_FIELD_SEPERATOR
      I_LINE_HEADER        = I_LINE_HEADER
      I_FILENAME           = I_FILENAME
    TABLES
      I_TAB_SAP_DATA       = I_TAB_SAP_DATA
    CHANGING
      I_TAB_CONVERTED_DATA = I_TAB_CONVERTED_DATA
    EXCEPTIONS
      CONVERSION_FAILED    = C_RC4.

Read only

anupam_srivastava2
Participant
0 Likes
598

thanks