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

Program for converting fixed length file to csv

Former Member
0 Likes
623

Hello All,

My requirement is to write a program which will read a file of fixed length separator (file where fields are separated by their length) from application server and convert to CSV file (fields separated by comma) .

Please help me with code sample.

regards

Santosh

3 REPLIES 3
Read only

Former Member
0 Likes
516

Hi Santosh,

SAP_CONVERT_TO_CSV_FORMAT

Hope the above FM helps you.

Very usefull thread

Have A Nice Day

Chaitanya.

Read only

0 Likes
516

Hi Chaitnya,

Thanks for replying, but I am not able to find this FM.

Appreciate if you can provide me the code as well.

Regards

Santosh

Read only

Former Member
0 Likes
516

Santosh,

from what file are you going to convert ?

.txt ? you may open first with windows notepad and delete some header ? after that from ms-excel open file, and specify the delimeter.

then save it as .csv

Amit.