Posts

Designing Layout in Adobe Forms Part 1:-

Image
  In the Previous part, we had created a separate interface for our Adobe Form. Now, Inn this part we will design the layout part for our Adobe Form. Steps :- Step 1 :- Go to SFP transaction code. Step 2 :- Give a name to the form. Step 3 :- Click on create button and pass the name of the interface that we created in the previous part. Step 4 :- Click on save button. Types of Layout in Adobe Forms :- 1. Standard Layout :- Whenever we want to print our PDF form. Whenever we want to email our PDF form, and Whenever we don’t want to integrate our form in Web Dynpro at runtime then we should use Standard Layout, 2. ZCI Layout :- ZCI stands for Zero Client Installation ( ZCI ) technology. We should use this layout when we want to integrate our form at runtime in web Dynpro applications. 3. xACF Layout :- It stands for Active component framework technology. It is also used to integrate the form at runtime in web Dynpro applications. Note :- For int

Creating Interface For Adobe Forms

Image
  We will take the same to same requirement as we had in our Smartform. We will develop a Adobe Form for Employee Details, where our Employee Table is Header table and Project Details is Item Table. Note :- For Creating any Adobe Form, It is mandatory to create a Interface first. Solution :- Step 1 :- Go to SFP transaction code and give any name for Adobe Form Step 2 :- Click on create button. Provide the description for Adobe form. Interface Types in Adobe Forms :- ABAP Dictionary - based Interface :- This interface has different standard parameters in the form interface. So, we can see, we will get different standard parameters automatically for these. XML Schema - based Interface :- We use this interface type, if we create forms in form builder in Web Dynpro for ABAP. Again, we can see we have different parameters available for this interface type. We use this basically while creating Forms in form builder in Web Dynpro. Smar

Introduction to Adobe Forms

Image
  Adobe forms are also known as PDF forms. Adobe Forms provides the output in the form of PDF. What is the need of Adobe Forms, if we already have Smartforms ? Adobe Forms are basically interactive Smartforms. In Smartforms we can not interact with the Output but in Adobe forms we can interact with the output of Adobe Forms. Transaction code for Adobe Forms :- Transaction code For Adobe Forms :- SFP Note :- Whenever we are creating any Adobe Form / PDF form, the first thing that we need to create is an Interface. And this Interface can be used in Multiple PDF forms. Important Point for Adobe Forms :- Adobe Forms also generates a function module similar to Smartform at the run time. Whenever we design a Adobe Form / PDF form, we must require a Adobe Livecycle designer ( ADLC ) to design a layout. Comparing Smartforms and Adobe Forms :- Smartforms are non interactive forms whereas Adobe Forms / PDF forms are interactive Smartforms In Smartforms :- The

Sending Smartform PDF as an E-Mail Attachment either to SAP User or to External User

Image
  Till, our previous part we saw, how we can download our smartform in form of PDF format. In this part, we will see, how to send the PDF into mail. To send mail into PDF we will make use of the various standard classes of SAP related to BCS ( Business Communication Services ). Also, we have SBWP transaction code where we can see the mail which we have sent. We can use SOST transaction code while sending the mail to external system in order to check whether everything is perfect fine or not in our system. Important Classes used for Email Purpose :- The various standard classes we will use for this purpose are as follows :- CL_BCS :- This class is used for creating the send request, adding the recipient, sending the document etc. CL_DOCUMENT_BCS :- This class is used tor creating the document, adding the attachment etc. We will use this class for writing documents CL_SAPUSER_BCS :- This class is used to create SAP users. This class is used to sending mail within th

How to Convert Smartform Output into PDF Format ?

Image
Nowadays PDF are most widely accepted format. So, Customers always wants smartforms output into PDF format. So, to convert our smartform output into PDF format, we will follow the below steps. Steps to Convert smartform into PDF :- Step 1 :- We will call the function module of smartform in our program. Step 2 :- We will get the OTF ( Output text format ) for our SMARTFORM. Step 3 :- We will use function module CONVERT_OTF_2_PDF, OR CONVERT_OTF to convert the OTF data into the PDF. Step 4 :- Fourth step is to choose the location of file where you want to store the PDF. For this purpose, either we can copy the location of file and paste it. OR We can use F4_FILENAME function module OR FILE_OPEN_DIALOG method of CL_GUI_FRONTEND_SERVICES class to select the file location. Step 5 :- We need to download the pdf file. For this purpose, we also have two options, either we can use GUI_DOWNLOAD function module OR we can use GUI_DOWNLOAD method of CL_GUI_FRONTEND_SERVICE

Control Parameters, Output Options, User Settings in Smartforms

Image
When we execute our smartform, we get a popup screen, We need to pass output device and then we click on print preview option. Now, Suppose user wants us that I don’t want to see this screen, I simply want my smartform to get execute rather than showing this popup screen. Solution :- Step 1 :- Create a executable program in ABAP Editor. Step 2 :- Use SSF_FUNCTION_MODULE_NAME to get the name of the function module for our smartform. Step 3 :- Call the function module of the smartform and pass the employee id as input paramater. Step 4 :- We have a control parameter in the import section of our function module. IF we go into this structure We have these three important parameters which we can use. We can pass no dialog as true so that screen will not appear. Also we can pass preview as true. Also in import parameter, we have output options In the structure we have a field name output options which we can use for passing the output device na