Skip to Content

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

Send email through SO_NEW_DOCUMENT_ATT_SEND_API1 with PDF attachement of smartforms.

Hi,

I am converting a smartform to PDF and then sending it as an attachment to email using FM SO_NEW_DOCUMENT_ATT_SEND_API1.

But I am getting this error. 'Error calling FM <SBCOMS_SEND_REQUEST_CREATE> in <SO_DOCUMENT_SEND_API1> with SY-SUBRC <1>'

I am passing below entries to packaging list table.

Packing list for Email Text

        ls_packing_list-head_start = 1.
        ls_packing_list-head_num   = 1.
        ls_packing_list-body_start = 1.
        ls_packing_list-doc_type   = 'RAW'.

Packing list for PDF

        ls_packing_list-transf_bin = 'X'
        ls_packing_list-head_start = 1.
        ls_packing_list-head_num   = 1.
        ls_packing_list-body_start = 1.
        ls_packing_list-doc_type   = 'PDF'.

Please let me know if I am missing anything.

Regards,

Nishant

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