Skip to Content
avatar image
Former Member

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 25, 2017 at 06:31 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 27, 2017 at 12:05 PM

    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

    Add comment
    10|10000 characters needed characters exceeded