Adobe Forms 1 How To Create A Adobe Form and Print The Form

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 24
At a glance
Powered by AI
The key steps are to create an interface, declare variables, create an Adobe form, design the layout, and bind variables to call the form from a program.

You create an interface by providing a name and description, then save and activate it. You then create an Adobe form by providing a name, description, and selecting the interface. You save the form in the same package and transaction.

In the interface, you select global data and append a row to declare each variable along with its data type. You then select code initialization to assign values to the variables.

Adobe Forms

1 > How to create a Adobe form and Print the Form

Give T Code As : SFP and Press Enter

Now Select the Interface Radio Button and create a New Interface by giving a custom interface
name..

Provide Description and click on Save


Save the Object in a Package.

Create a New TR if you required.

Provide the Description Of the TR and save it


Now click on Continue.

Save and Activate the Interface.


Click on continue.

Select 'Global Data' and double Click on it then click on 'Append Row'.
Enter the Variable name with Data Type. .( Here you can Declare all the variable as per your
requirement.)

Select Code Initialization assign value into the declared variable.( Here you can write the codes as
per your requirement.)
Active the Interface after completion of all coding part. and come back

Now Create the Adobe Form .

Give the Form Name. and Click on Create.

Provide Description and Interface Name and click on Save.

Give the Same Package and Save in a same TR.


Click On Arrow mark .

All the Variable (Declared in the Interface) will Display in-side the Global Data.

Drag and drop the Variables in the Context then Click on Layout.
Here We can Design the Output as required.

Insert Image By selecting Path


Click on the image part to upload Image into Form

Click on OK
From the System we can Upload the Image according to the Requirement.
Logo will be display in the Screen and you can see the Path in URL(From Where We uploaded).

Enter Text into Form.


Place the Objects as you Required.

Now Bind the Variable into the Text Field by Right clicking on the text and select Floating Field.
Click On the Button

Now Select the Variable For Binding.

Variable Bind to the Text Field Increase the Size as you want.
Here we can Check the PDF output by clicking "Preview PDF"

Save and Activate the Layout

Click on 'Context' and activate and come back.


Create Program To Call Adobe Form.

Give T Code: SE38 in the Command Bar.


Create a custom Program To call Adobe Form.

Give Description for the Program and Select Type 1.


Save in Same Package

Save in Same TR
Here Write the Codes to Call Adobe Form

Codes to Call Adobe Form.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

REPORT ZADV_PRINT_PROG.

DATA: FM_NAME TYPE RS38L_FNAM,


FP_DOCPARAMS TYPE SFPDOCPARAMS,
FP_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS.

CALL FUNCTION 'FP_JOB_OPEN' " Call Form


CHANGING
IE_OUTPUTPARAMS = FP_OUTPUTPARAMS
EXCEPTIONS
CANCEL = 1
USAGE_ERROR = 2
SYSTEM_ERROR = 3
INTERNAL_ERROR = 4
OTHERS = 5.

PERFORM FNAME USING: 'ZADV_MY_FAST_ADOBE'.

*&---- Close the spool job


CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
* E_RESULT =
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4.

*__________________________________________________________________________
FORM FNAME USING P_NAME.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
I_NAME = P_NAME
IMPORTING
E_FUNCNAME = FM_NAME.
IF SY-SUBRC <> 0.
* <error handling>
ENDIF.

FP_DOCPARAMS-LANGU = 'E'.
FP_DOCPARAMS-COUNTRY = 'US'.

CALL FUNCTION FM_NAME "Call the generated function mo


dule
EXPORTING
/1BCDWB/DOCPARAMS = FP_DOCPARAMS
* IMPORTING
* /1BCDWB/FORMOUTPUT =
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3.

ENDFORM.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Active the Program and Come Back.


Create a T Code for the Program

Give the Custom T Code Name To call Adobe Form

Provide Description and Select 'Program and Selection'


Give the Program name and Select the check Bo and Save.

Save T Code In Same Package and TR


Display Output.

Give The Custom T Code You Created.

Give Default Print Output Device name and click on 'Print Preview'.
Output

You might also like