Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert Xstring to PDF format and send pdf to multiple user

pavneet_rana
Active Participant
0 Kudos

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

2 REPLIES 2

arseni_gallardo
Active Participant
0 Kudos

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.

Former Member
0 Kudos

Hi pavneet,

Check this link

http://wiki.sdn.sap.com/wiki/display/Snippets/Sendemailwithmultiplezipped+attachments

this will solve your problem.

Regards,

Venu