Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

What can be the Maximum size of attachment in SO_NEW_DOCUMENT_ATT_SEND_API1

Former Member
0 Kudos

Hi Experts

My requirement is to send attachments by using this FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b>

If my PDF file is small then I m able to send it to the <b>Recipient(sap inbox).</b> But right now it is more then 20 MB So it sends mail without attachment and body of the mail. Does anybody have any idea or any document which can give a clear picture of the <b>maximum size</b> of the attachment .

I am able to send mail to SAP inbox how can i send it to <b>external email</b>.

Below is the code which I m using to send mail to SAP inbox ,What <b>parameters</b> do i have change or add to <b>Reclist(Internal table)</b> so that we can send mail to external email also.

DATA: RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE.

refresh reclist.

RECLIST-RECEIVER = SY-UNAME. "sap_inbox.

RECLIST-EXPRESS = 'X'.

RECLIST-REC_TYPE = 'B'.

reclist-copy = 'X'.

APPEND RECLIST.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = DOC_CHNG

PUT_IN_OUTBOX = 'X'

  • IMPORTING

SENT_TO_ALL = send "'X'

  • NEW_OBJECT_ID =

TABLES

PACKING_LIST = OBJPACK

OBJECT_HEADER = OBJHEAD

CONTENTS_BIN = OBJBIN

CONTENTS_TXT = OBJTXT

  • CONTENTS_HEX =

  • OBJECT_PARA =

  • OBJECT_PARB =

RECEIVERS = RECLIST

EXCEPTIONS

TOO_MANY_RECEIVERS = 1

DOCUMENT_NOT_SENT = 2

DOCUMENT_TYPE_NOT_EXIST = 3

OPERATION_NO_AUTHORIZATION = 4

PARAMETER_ERROR = 5

X_ERROR = 6

ENQUEUE_ERROR = 7

OTHERS = 99

.

5 REPLIES 5

Former Member
0 Kudos

*-popualate email ids

IT_RECLIST-RECEIVER = 'abc@yahoo.com'.

IT_RECLIST-REC_TYPE = 'U'.

*-append receiver table

APPEND IT_RECLIST.

CLEAR IT_RECLIST.

REC_TYPE = U is internet mail ids.

no need to change any other stuff in the program

then goto <b>SCOT</b> transaction & click on the button "START send process" button, which will send the mail from the spool.

use <b>SOST</b> transaction to check your mail status.

one more change

ADD

<b>COMMIT_WORK = 'X'

in the function module call.</b>Regards

srikanth

Message was edited by: Srikanth Kidambi

Message was edited by: Srikanth Kidambi

0 Kudos

Hi Srikanth and Vidya

Thanks for quick reply. could u also tell me 'What can be the maximum size of attachment' that we can send from this FM

Naval

9871012494

0 Kudos

You can then set the maximum size for a document to be sent by setting parameters in the table SXPARAMS. You can maintain the table SXPARAMS with transaction SM30.

Parameter Parameter value

MAXLEN_BODYPART_SMTP 0 ... 999999999999

SAP Note 837300 explains in more detail

Thanks

Rajeev

Former Member
0 Kudos

Hi Naval,

Put the REC_TYPE = 'U'.

and in the transaction SCOT.... In that double click SMTP. You will get a popup ..in that in the supported address types select the SET button of the Internet.

here include '*@(sitename).com'.

Hope this helps.

Regards,

Vidya

Former Member
0 Kudos

Hi,

No limatitations as such for the maximum size of document u attach to mail.

But what ever size u sned to receiver, the receiver will have the limitations. If the size of the file u send is more than the limitation of file size for the receiver mailid then u may face problems.

Sreehar