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

Data issue in CSV File when it is mailed as attachment

Hi Experts,

My requirement is to send data as CSV file attachment from SAP to Outlook.

I have used FM "SO_NEW_DOCUMENT_ATT_SEND_API1" .

Data that needs to be send is moved to Tables parameter "contents_bin".

But Iam not getting data loaded in the file but whatever I have moved the data to Tables parameter ""contents_bin"?

Can't we get data in the file if it is moved to Tables parameter "contents_bin"?

Instead the whole data is moved to "object_header". The data is loaded in the file.

Any idea why it is happening like this?

Regards,

Sree

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 10, 2010 at 03:40 PM

    Hi nunna,

    you will find millions of q&a for FM "SO_NEW_DOCUMENT_ATT_SEND_API1" , but almost none for CL_BCS. The reason is that SO_NEW_DOCUMENT_ATT_SEND_API1 is an obsolete technique with nothing but trouble involved.

    Although CL_BCS is not just the best thing since sliced bread it is easy to use and much less error-prone.

    Search SCN for this, i.e.[SAP Network Blog: Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface|/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface].

    Or look at [B]BCS programs.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2010 at 11:32 AM

    the APIs work precisely and well...

    See SAP Note 609696 for working code samples and corrected documentation.

    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.