2011 Jan 14 2:05 PM
We currently have a problem converting an internal ABAP table into a CSV file.
Example:
UserID;Name;Pet1;Pet2
D012345 Klaus Meier Dog;Bruno Cat"Kitty
should become
D012345;"Klaus Meier";"Dog;Bruno";"Cat ""Kitty" (<- content delimiter, escaped)
Is there a specific functional module where you can define whether to use such delimiters or not? And what would happen if there is - per accident - only one double quote in the field, can this be escaped e.g. by a second double-quote like Excel does it?
We are running on NW 7.01. Any help highly appreciated.
Best,
Oliver
Thanks François,
but what about having the delimiter as part of the record as in "Dog;Bruno"?
Best,
Oliver
2011 Jan 14 4:31 PM
you just do
REPLACE ALL OCCURRENCES OF '"' IN my_struc WITH '""'.then you apply separators
2011 Jan 14 4:38 PM
Thanks François,
but what about having the delimiter as part of the record as in "Dog;Bruno"?
Best,
Oliver
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |