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 email file needs user setting notation

rangerlet_mesee
Participant
0 Likes
513

Hi

In CSV file email, for price related values like 4321.60.....it is required as 4,321.60

But system is considering comma as a field separator and splitting the value as 4 and 321.60

I want the CSV file to honor the thousand separator

XSTRING function module is used

1 ACCEPTED SOLUTION
Read only

Nikhil_Rao_ABAP
Participant
467

Hello,

Can you try this:

Open a blank something.txt file. Enter a line like this -

"1,2345","2,3456"

Save the file as something.csv

Now open the file in Excel. you will see that content within the cells will have the commas respected. And the values within the " but separated with commas outside the " will be placed in different cells. So, in the ABAP code that is generating the csv content, try encapsulating the values in "..."

Hope this helps!

Regards,

Nikhil Rao

1 REPLY 1
Read only

Nikhil_Rao_ABAP
Participant
468

Hello,

Can you try this:

Open a blank something.txt file. Enter a line like this -

"1,2345","2,3456"

Save the file as something.csv

Now open the file in Excel. you will see that content within the cells will have the commas respected. And the values within the " but separated with commas outside the " will be placed in different cells. So, in the ABAP code that is generating the csv content, try encapsulating the values in "..."

Hope this helps!

Regards,

Nikhil Rao