Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8212

Send email through SO_NEW_DOCUMENT_ATT_SEND_API1 with PDF attachement of smartforms.

$
0
0

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

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 8212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>