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

Itab to csv

Former Member
0 Likes
460

Hi,

i have internal table and i wont to out the data in csv format

like below i have also words in greek (utf-8) what is the best way to do that?

Regards

like

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
438

Hi,

Use: FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'

With

  • i_field_seperator = ','

I hope this helps,

Regards

Raju Chitale

Hi,

i have internal table and i wont to out the data in csv format

like below i have also words in greek (utf-8) what is the best way to do that?

Regards

like

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

1,2,3

2 REPLIES 2
Read only

Former Member
0 Likes
439

Hi,

Use: FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'

With

  • i_field_seperator = ','

I hope this helps,

Regards

Raju Chitale

Read only

Former Member
0 Likes
438

Hi,

U can loop at the itab into wa...

Then conactenate each field with l_c_comma.

write the string .

EG:

loop at itab into wa.

conactenate wa-f1 l_c_comma wa-f2 l_c_comma wa_f3 into

l_string.

write 😕 l_string.

endloop.

Thanx,

Navin.