Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8545

Re: Pdf as in the body of e-mail.

$
0
0

hi everyone

 

as you suggested i have started to use cl_bcs class to send an e-mail.i have a problem though.

i am getting an uncaught exception error(CX_ADRESS_BCS)

Create persistent send request       go_send_request = cl_bcs=>create_persistent( ).
lp_pdf_size = XSTRLEN( ls_formoutput-pdf ).     pdf_content = cl_document_bcs=>xstring_to_solix(         ip_xstring = ls_formoutput-pdf ).     go_document = cl_document_bcs=>create_document(           i_type    = 'PDF'           i_hex     = pdf_content           i_length  = lp_pdf_size           i_subject =' this is subject' ).
*/.. Add document object to send request       go_send_request->set_document( go_document ).       lv_email = gt_mail-ZZSAHAMUDUREMAIL.
*/.. Add recipient (e-mail address)
*/.. create recipient object    lt_receivers =
cl_cam_address_bcs=>CREATE_INTERNET_ADDRESS( lv_email ).
*/.. Add recipient object to send request       go_send_request->add_recipient( i_recipient = lt_receivers ).
*/.. Send document        call method go_send_request->send.   commit work.
endform.

i got the error  at "cl_cam_address_bcs=>CREATE_INTERNET_ADDRESS( lv_email )".

as i understand lv_email is not compatible with the" CREATE_INTERNET_ADDRESS" because it works when i wrote an actual e-mail adress instead of lv_email.

i use smartforms to create pdf.

and lv_email holds email adress of other people(bosses).

any ideas to solve this problem?


Viewing all articles
Browse latest Browse all 8545

Trending Articles



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