Call Adobe Form through ABAP Program

Scenario

Create an Adobe Form and call it through an ABAP Program 

Pre-request:

1)  In the Front End System Adobe Life Cycle Designer has to install. Then only the Adobe Form  Layout  and Adobe form will open in the SAP system
2)  Adobe Reader 8.0 and above version has to installed

Steps to Create and Call the adobe form

1)  Create a Table Type for a Table
 2) Create the Interface for the Adobe Form
3)  Create the Adobe Form and design the layout
4)  Write a Program to Call the Adobe Form

Step by Step Approach

1)   Create a  Table Type for a Table
 
Go to the Transaction Code "SE11" and give the Table Type name as "ZMARI_TBL" Call Adobe Form through ABAP Program


Then click "Create" and a popup will appear as shown below.


Call Adobe Form through ABAP Program

Select the radio button "Table Type" and press enter

Call Adobe Form through ABAP Program

 Enter the Table Name 'MARI' in the line type.
 Then save it as Local Object and activate it.

  Call Adobe Form through ABAP Program

Activate the Table Type.

  Call Adobe Form through ABAP Program


2) Create the Interface for the Adobe Form  
Go to Transaction code 'SFP' and create the Interface for the ADOBE FORM

Enter the Interface Name as 'ZSUR_ADOBE_INTR' and click "Create"

  Call Adobe Form through ABAP Program
 
Give the Description and click save.

  Call Adobe Form through ABAP Program


Give Description and press enter


Call Adobe Form through ABAP Program

Save as Local Object

  Call Adobe Form through ABAP Program

Then the below screen will appear.


Call Adobe Form through ABAP Program

Then Click "Append Row" icon as indicated below. 

Call Adobe Form through ABAP Program
 
Then as new row will inserted and assign the Table Type ZMARI_TBL value as shown below.


Call Adobe Form through ABAP Program
 

Then activate it.  

Call Adobe Form through ABAP Program

Then go back and Give the Adobe Form name click Create.

 3) Create Adobe Form and design the layout in the Same Transaction Code "SFP"


  Call Adobe Form through ABAP Program
 
Give the Description and the Interface name, which just created as indicated below.

Call Adobe Form through ABAP Program

 Then Save as Local Object.

  Call Adobe Form through ABAP Program
 
  Then the below Screen will appear.


Call Adobe Form through ABAP Program

 Expand the import button and you can find the Table Parameter ZMARI.

Call Adobe Form through ABAP Program
 
Then Drag and drop it to the Context as shown below. 

Call Adobe Form through ABAP Program 

 After Drag and Drop the Table type to Context, then below screen will appear.

Call Adobe Form through ABAP Program

Then Click the "Layout" Tab and the Below Screen will appear.

Call Adobe Form through ABAP Program


Drag and Drop the table type "ZMARI" to Design View Layout as indicated below.

Call Adobe Form through ABAP Program

Then adjust the Table in the Top center of the layout as shown below. 
   Call Adobe Form through ABAP Program

Select the 'Text' from the Library and drop it the Layout 'Design" View and give a description to the Table as shown below.

Call Adobe Form through ABAP Program

Call Adobe Form through ABAP Program
 
Then Activate the Adobe form.


Call Adobe Form through ABAP Program 4) 

4) Write a Program to Call the Adobe Form


Go to Transaction code SE38 and Create a Test Program "ZCALL_ADOBE_FORM". 

  Call Adobe Form through ABAP Program
Call Adobe Form through ABAP Program


 Save it as local Object.

  Call Adobe Form through ABAP Program

Then enter the Below Code.

  Call Adobe Form through ABAP Program

 Then activate and Execute (F8) it.


Call Adobe Form through ABAP Program

 Then the printer screen will appear. 

  Call Adobe Form through ABAP Program

Click the Print Preview

  Call Adobe Form through ABAP Program

Then the Output will shown as below.


Call Adobe Form through ABAP Program