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: 

Way to restrict the size of attachment while sending mail

Hi everyone,
Is there a way to restrict the size of attachment using function module or anything else while sending mail?

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

In SCOT, check for: Settings, Outbound Messages, Settings, Size Restriction for Outbound Messages.

(And of course, no longer use the old outdated FM but a class like CL_BCS to send messages...)

Regards,
Raymond

5 REPLIES 5

raymond_giuseppi
Active Contributor

In SCOT, check for: Settings, Outbound Messages, Settings, Size Restriction for Outbound Messages.

(And of course, no longer use the old outdated FM but a class like CL_BCS to send messages...)

Regards,
Raymond

VijayCR
Active Contributor
0 Kudos

Hello Pooja,
Could you let me know what kind of attachment are planning to send ??

Thanks,
Vijay,

0 Kudos

pdf,txt,word document,image etc

ShyamPindiproli
Active Participant
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

The parameter value determines the maximum size of a document (in bytes) that may be sent using the SAPconnect SMTP interface.

The value 0 means: No restriction

Refer SAP Note : 837300 - Size restriction when sending documents

hrollizo
Active Participant
0 Kudos

Good answers.

You can goto SOST - Ulitities - General Parameters to check the parameter

MAXLEN_MIME_MESSAGE_SMTP = 5242880 (5MB)

or /add the table SXPARAMS on SM30 too.