Problem solve Get help with specific problems with your technologies, process and projects.

Can I output a CSV file in an ABAP program?

Learn how to output a CSV file in an ABAP program.

How can I output a CSV file in an ABAP program? The CSV output file format has become very popular, but I cannot find any function module in SAP that will output a CSV file by simply removing all leading and trailing spaces of each field in a given output structure and adding in the comma separators.

WS_DOWNLOAD cannot do this. I just wonder if there is another function module available to do this.

There is no provided function module to do this. You have to code the comma delimiters in yourself. I believe on one of the forums of the SAP Development Network* there is code posted that does this in a generic way.

* Registration required to access the SDN

This was last published in June 2005

Dig Deeper on SAP ABAP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.