Skip to Content

CSV file not appear as a CSV file in attach

Hi.

I am sending an CSV file as an attach in an email. But the problem is that it appears as a PDF file, even though in SOST it appears as a CVS file. Does anyone faced this problem?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2010 at 12:46 PM

    How are you doing the attach and send? Are you naming it with a .csv (not CVS) suffix? For me, these have always shown up with an Excel icon when I send via email.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 18, 2010 at 02:16 PM

    Hi.

    I am sending like this:

    call method l_document->add_attachment

    exporting

    i_attachment_type = 'csv'

    i_attachment_size = lv_size

    i_attachment_subject = 'Result File'

    i_att_content_hex = it_binary.

    Add a comment
    10|10000 characters needed characters exceeded

    • That's a good point but 'CSV' is actually valid - I've been using that and 'XLS' in custom email class methods with CL_BCS without any issues for years. The fact that the CSV file shows the correct format in the SAPConnect queue is strange. Format conversions are completed prior to rendering the document in the queue (as specifiied in the SMTP node configuration or in the language dependent device type conversion settings). If it's a SAPConnect problem, you should see the PDF format in the queue as well.

      Have you tried using a different email client as the receiver? Is yur email dispatch based on the old RFC method or an SMTP-based connection to a mail host? With the old, RFC method, you could have a connection to external software package which could be the issue (if I remember correctly).

  • Posted on Nov 19, 2010 at 09:48 AM

    I solved the problem.

    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.