Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
In my project , I was assigned a task which deals with a scenario where I need to send a mail to all the selected recipients given. In addition to it I need to attach the PDF generated as a result of an application. So the whole of the scenario is been divided into two parts: 1. Attach the generated document to a mail . 2. Sending the mail along with the attachment.  *Problem*  In brief these two steps i.e. firstly the whole PDF generated in the view is converted into a byte stream and then the stream is attached to the mail and the mail is sent.  *Prerequisites*   *Note* :I have used CE SP3 version of Netweaver .  I. Create Web Dynpro local development component. II. Create Web Dynpro component, in which PDF form is displayed in view controller. III. Create context structure for view controller- This involves creation of value node with corresponding value attributes, which need to be displayed as a PDF form fields. Also an important one i.e. value attribute 'pdfSource' of type 'binary'. IV. Create actions (Send), data binding of main value node and implementation in view controller.So the requirement is when a Button "send" is clicked then a mail is sent to all the recipients whose email Id's are coming from a different view and is present in the context along with the PDF generated. A point to remember here is when you make this pdf form's visibilty as 'NONE/BLANK'. the mail will not be sent. The context for the view is:
4 Comments