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

We are using the SO_ATTACHMENT_INSERT_API1

Hi Guys

We are using FM " SO_ATTACHMENT_INSERT_API1 " to attach the Excel document to send thru mail ., it is working fine in 4.7 environmnet . But in the upgraded version ECC 6.0 , the file contents reduced to half of the size when we checked in the mail attachment .

In debug mode if I double the filesize manually then it is working fine ..

For eg: In 4.7 system , the file size is 10000 bytes and ( is being calculated by system if we do not pass
, then it workds fine .)

In ECC 6.0 , it sends the file thru mail but only half of the contents are available in the excel file .

Any clue how to resolve this without manul changes .

Responses are highly appreciated

Thanks

Satya

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 07, 2012 at 07:50 PM

    hello,

    A simple solution would be keep the size as parameter on the seletion screen and use this in the FM when calling. This way you have control on the number.

    You could also try the OOPS based mail sending functionality.

    http://wiki.sdn.sap.com/wiki/display/Snippets/Sending+mail+with+attachment+using+Object+Oriented+Approach

    best regards,

    swanand

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Suhas Saha

      Hi Suhas

      yes , upgraded from 4.7 non unicode to ECC 6.0 Unicode .

      In ECC 6.0 Unicode environmnet , the problem lies .

      System is calculating the document size and passing to the FM ,, it works fine in 4.7 ..,, in ECC 6.0 , it displays only half of the file contents .

      When I double the doc_size ( multiplied by 2 ) then it is perfect .

      Any input would be gr8

      Thanks

      Satya

  • Posted on Nov 08, 2012 at 04:07 AM

    As Swanand is suggesting ..... I also suggest to use CL_BCS option. I think it works with all sizes and no need to worry about passing the file size in any case.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2012 at 06:43 AM

    Hi,

    You can check this examples in your system.

    BCS_EXAMPLE_1 BCS Use, Example 1 BCS_EXAMPLE_2 BCS Use, Example 2 BCS_EXAMPLE_3 BCS Use, Example 3 BCS_EXAMPLE_4 BCS Use, Example 1 BCS_EXAMPLE_5 BCS Use, Example 5 (Winword Attachment) BCS_EXAMPLE_6 Send PDF Form by E-Mail BCS_EXAMPLE_7 BCS: Send E-Mail with Self-Created Excel Attachment (Example) BCS_EXAMPLE_8 Report BCS_EXAMPLE_8

    Regards,

    Nandha

    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.