Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Email Functionality:How to create Email Subject w/ more than 50 CHAR Length

Hi All,

I have a requirement that will send email, currently using FM SO_DOCUMENT_SEND_API1

  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = w_doc_data  "Email Subj
      put_in_outbox              = 'X'
      sender_address             = w_username  "FROM EMAIL
      sender_address_type        = 'SMTP'
      commit_work                = 'X'
    TABLES
      packing_list               = t_objpack
      contents_txt               = t_text     "Email Body
      receivers                  = t_users    "TO EMAIL
    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                     = 8.

The email subject is being populated at parameter t_packing_list under structure SODOCCHGI1-OBJ_DESCR that can hold only up to 50 characters.

In my requirement, the email subject is up to 50+ characters.

Thanks All.

Former Member
Not what you were looking for? View more on this topic or Ask a question