Since I covered this topic in an other Web Dynpro tutorial " Display Adobe Form in SAP Web Dynpro", I'll not pass through the codes again.Īll you have to do is to copy the ABAP codes in the mentioned Web Dynpro - Adobe Form tutorial where you set the PDF file name.Īfter following the steps covered in this SAP Web Dynpro and Adobe Form tutorial, ABAP programmers will be able to display Adobe Forms output as a seperate PDF file within a Web browser.
The following required step is now to map the Adobe Form binary data to the context attribute ADOBE_FORM under PDF node in Web Dynpro Main view Context. Please note, P_PROFORMA_NUMBER is an input parameter to this ABAP method. * ABAP code line where I set name of the Adobe Form output file nameĬoncatenate 'proforma-' P_PROFORMA_NUMBER '.pdf' into LV_PROFORMAPDFFILENAME. LO_EL_CONTEXT = WD_CONTEXT->GET_ELEMENT( ).
So I use ABAP CONCATENATE command to form the PDF download file name and set it to the context attribute PROFORMAPDFFILENAME as seen below.ĭata LO_EL_CONTEXT type ref to IF_WD_CONTEXT_ELEMENT.ĭata LS_CONTEXT type WD_THIS->ELEMENT_CONTEXT.ĭata LV_PROFORMAPDFFILENAME type WD_THIS->ELEMENT_CONTEXT-PROFORMAPDFFILENAME. Please check the below properties screen of the File_Download UI control and make sure you have configured the data, fileName, mimeType and text attributes of the element.Īlthough it is an alternative to fix the Adobe Form output file name to a standart name, I choose to include the ID of the parent record. On our Web Dynpro component, we will use the File_Download (FileDownload) UI control as a link button which enables SAP users to display or download the Adobe Form output directly from web browser. On the targeted area on Web Dynpro, right click on container form element and choose "Insert Element"Ĭhoose the new Web Dynpro element type as File_Download FileDownload as seen below. SAP Web Dynpro developer can now place the FileDownload user interface element on the Main view by switching to the Layout tab. The new attribute Adobe_Form should have data type XSTRING. Switch to Context tab on Web Dynpro View, create a node with name PDF.Īdded an attribute named ADOBE_FORM under the PDF node. In this step, ABAP programmers will create context attribute to store the pdf file source data.įollowing screenshot gives an idea how the context is created for storing Adobe Form source data for the Web Dynpro. The pdf file will be created from Adobe Forms output.Īfter Adobe Form output file name, let's configure the Web Dynpro context to store Adobe Form binary data. This context will be used to store the file name of the.
The last step will be how to code in ABAP to populate the context data.įirst of all, let's create the PROFORMAPDFFILENAME attribute in context data under root Context node as follows. Then I will place FileDownload user interface (UI) element on the Web Dynpro view layout.įollowing these steps, we can then continue with the step where FileDownload control data is bound to context data. In this Web Dynpro tutorial, I will now summarize the steps that the ABAP developer will create the related context elements on Web Dynpro component. Instead, it discusses the total method up to once a file is shipped to output management functions, like the spool system in SAP systems (for a lot of info, see SAP Printing Guide (BC-CCM-PRN)).I assume that the ABAP programmer has already created the Adobe Form output using SFP SAP transaction code so the Adobe Form is ready. This documentation doesn't discuss however documents are written and controlled on printers.
to visualize a print preview of your kind, you initially got to install Adobe Reader or an entire version of Adobe athlete.
This software system should be put in on your forepart before you'll be able to produce a layout. The integrated Adobe LiveCycle Designer software system supports you after you do that. The following provides you a summary of how a PDF-based print kind is structured and additionally tells you the way to create a PDF-based print from within the development setting of the ABAP work bench. Here, you've got the choice of faxing or e-mailing your documents. as well as normal output on printers, and also the choice of archiving documents, you'll be able to additionally use your application to send a PDF to the Business Communication Services (BCS). PDF-based print forms are a part of the Interactive Forms based on Adobe software package solution and are used for mass printing in SAP systems.