09-09-2011 10:43 AM
Hi to all
can any one provide me saple code to convert Xstring to PDF format and send pdf to multiple user
i have searched the SDN , but cant get any proper soulution.
I shall be thankful to you for this.
Regards
Pavneet Rana
09-09-2011 10:51 AM
Use function module 'SCMS_XSTRING_TO_BINARY' to convert from XString to a Binary table. Just like this:
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_xstring_pdf
append_to_table = ' '
TABLES
binary_tab = lt_doc_content.
To send the email in an OO way you should user class CA_SEND_REQUEST_BCS. Take a look to program BCS_EXAMPLE_6 or any of the test programs in package SBCOMS.
09-12-2011 12:54 PM
Hi pavneet,
Check this link
http://wiki.sdn.sap.com/wiki/display/Snippets/Sendemailwithmultiplezipped+attachments
this will solve your problem.
Regards,
Venu