Hi all
I have done the customization for sending invoice as attachment while saving a billing document in VF02.
The details of customization are below
Transmission medium : 5 External send
Program : RLB_INVOICE
Form Routine : ENTRY
The mail is sent with a attachment but there is problem with the format. The mail comes with a MHTML attachment instead of PDF format.
My Observations
1. I kept a break point in the function module SX_OBJECT_CONVERT_OTF_PDF and found that this is called when the mail is sent from transaction SCOT manually.
2. The mail comes with a attachment in MHTML format and when i open this in text format it contains some junk characters but in the header details of the microsoft exchange server details are given (ie from to etc) and the file name inside the attachment has the file name as ="Invoice.pdf";
3. The customization in SCOT is also correct (For SAP script/ Smartform conversion node i have maintained PDF).
Any one done this customization, kindly let me know if anything is missed out. I need the attachment in PDF format
Regards,
Rajvansh R