on 01-09-2011 6:47 AM
Dear all,
i want to generate the email with attachment as Smartform PDF, and with email body content with some text.
i am able to generate the email with smartform PDF but i want to know how send the body content of the email.
Regards,
Manoj
hi,
in the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' update the parameters for packing list and others as shown below to update the body information.
*Create Message Body Title and Description
it_objtxt = 'Hello'.
APPEND it_objtxt.
it_objtxt = 'Please Consider the Purchase Order attached Below'.
APPEND it_objtxt.
*
it_objtxt = ' Dear Recipient,'.
APPEND it_objtxt.
it_objtxt = 'Please Consider the PO attached Below'.
APPEND it_objtxt.
it_objtxt = 'by ABB Oy'.
APPEND it_objtxt.
DESCRIBE TABLE it_objtxt LINES l_lines_txt.
READ TABLE it_objtxt INTO wa_objtxt INDEX l_lines_txt.
*Main Text
wa_objpack-transf_bin = ' '.
wa_objpack-head_start = 1.
wa_objpack-head_num = 0.
wa_objpack-body_start = 1.
wa_objpack-body_num = l_lines_txt.
wa_objpack-doc_type = 'RAW'.
APPEND wa_objpack TO it_objpack.
*Attachment (pdf-Attachment)
DESCRIBE TABLE it_objbin LINES l_lines_bin.
wa_objpack-transf_bin = 'X'.
wa_objpack-head_start = 1.
wa_objpack-head_num = 1.
wa_objpack-body_start = 1.
wa_objpack-body_num = l_lines_bin.
wa_objpack-doc_type = 'PDF'.
wa_objpack-doc_size = l_lines_bin * 255.
wa_objpack-obj_name = ZXEKKO-ebeln.
CONCATENATE 'PO:' zxekko-ebeln INTO wa_objpack-obj_descr SEPARATED BY ' '.
APPEND wa_objpack TO it_objpack.
For Object Header
MOVE zxekko-ebeln TO it_objhead.
APPEND it_objhead.
wa_doc_chng-obj_name = 'SAPRT'.
wa_doc_chng-expiry_dat = sy-datum + 10.
concatenate 'Purchase Order :' zxekko-ebeln into wa_doc_chng-obj_descr.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = ( l_lines_bin - 1 ) * 255 + STRLEN( wa_objbin ).
Please let me if still any issues.
Regards,
Prabu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From where? Adding a body is very simple but you didn't mention where you're doing it. Output? Regardless, this has been discussed many times here...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.