We have a requirement to attach an SRM invoice attachment to a mail, which is sent for an offline approval(external mail ids). The invoice is created using the FM BBP_PD_INV_CREATE & ET_ATTACH table having attachment details. To send mails for approval, we created a copy of RSWUWFMLEC(program to send E-mails) which is customized to send mails with attachments.
We have used the classes CL_BCS & CL_DOCUMENT_BCS to send a mail with attachments. The data from ET_ATTACH-PHIO_CONTENT is processed using the sequence of below FMs for converting into mail format.
BBP_OUTPUT_X_TABLESIZE_CHG - To convert the invoice attachment into fixed 255 length character rows
SCMS_STRING_TO_XSTRING - To convert to Hexadecimal data
The PDF attachments sent in a mail are not being opened correctly ( or missing data if opened correctly) , while the attachments in the invoice are precisely opening from SRM portal.
The error message coming as
1.cannot extract the embedded font CGDF jp+Times new RomanPS-BoldMT.Some characters may not display or print correctly
2.Could not find the XObject named I29
Could someone throw some light on this.
Thanks & regards,