Skip to Content
author's profile photo Former Member
Former Member

Customize CSV output?

Hi Experts,

Is it possible to customize CSV output files via XSL? When I specify ContentType=text/csv in a request, MII appears to ignore the StyleSheet parameter. Is this expected behavior?

Specifically, my issue is that I'm trying to customize the CSV output so that null string data appears as blanks, not "---".

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2010 at 11:35 AM

    Hi David,

    have a look at the tread [SQL Query return values like "---" and MA|http://forums.sdn.sap.com/click.jspa?searchID=66853872&messageID=9622486].

    There I set a link to a document that explains how to use a XSLT to change to standard MII result for Null values in queries.

    If you won't use XSLT, maybe you process the result in a MII transaction (BLT) to get the desired and have the BLT save the csv file.

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

    • Actually with NW (MII 12.0+ I think) and some language support the CSV output is done by code, not the IllumRowsetCSV.xsl like it used to be.

      If you just keep Content-Type=text/xml and request your own tweaked CSV producing xsl file with the StyleSheet parameter you will get the valid output, however it will not launch directly into Excel like text/csv will do. Saving it first may not be the desired output, but it will work.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2010 at 09:12 PM

    Try something like this:

    
    /XMII/Illuminator/<fake_file_name>.csv?QueryTemplate=<YourQueryTemplate>&StyleSheet=<YourCustomCSVMaker>.xsl&Session=true
    
    

    Edited by: Christian Libich on Dec 16, 2010 10:12 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.