You are on page 1of 8

10/18/2014

An SAP Consultant: SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program

An SAP Consultant
HOME

ABAP

ALV

SMART FORMS

ADOBE FORMS

HR ABAP

WORKFLOW

WEB DYNPRO ABAP

Monday, April 7, 2014

SAP Adobe Form - Steps to create simple ADOBE Form and calling
it from ABAP Program

HCM

Want to Contribute ?

If you are interested in writing about the new stu

you learn everyday while working, please write t


the.sap.consultants@gmail.com.

SAP ADOBE Forms is part of SAP Web Application Server. To develop SAP Adobe forms you will require the Adobe Life
Cycle Designer installed in your system and Adobe Document Services (ADS) installed and configured on the server.

Click on Contribution for more details.

Also see (1) Licensing SAP Interactive Forms by Adobe (2) Features of SAP Adobe Forms

Step 1: Create the Form Interface

Find us on Facebook

An SAP Consultant
Like

Go to transaction SFP(Form Builder).


Create Interface(ZOVH_INTERFACE) by selecting Interface radio button.

575 people like An SAP Consultant.

Followers
Join this site
w ith Google Friend Connect

Provide interface Description and Select ABAP Dictionary-Based Interface as Interface Type.

Members (30)

Already a member? Sign in

Popular Posts
Save as Local object or transportable object.
Interface TabImport Create three importing parameters(PERNR, ENAME, BUKRS).

ABAP - ALV Report example with steps

Execute ABAP Report using SUBMIT


statement

Web Dynpro ABAP ALV - ON_CLICK event

ABAP - Dynamic WHERE clause

ABAP - Download report output as PDF file

ABAP - Sending email with pdf attachment

ABAP - ALV Demo programs

ABAP - Binary to String, String to XSTRING,


String to Binary

http://www.an-sap-consultant.com/2014/04/sap-adobe-form-steps-to-create-simple-ADOBE-Form-and-calling-it-from-ABAP-Program.html

1/8

10/18/2014

An SAP Consultant: SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
9
10

Web dynpro abap Error / Success message


sample program
Web Dynpro ABAP - Download file

ABAP-Categories
SAP ABAP - (00)-Enhancement
SAP ABAP - (01)-BADIs
SAP ABAP - (02)-User Exits
Save and Activate.

Step 2: Create and Design the Form

SAP ABAP - ALV


SAP ABAP - Application Server
SAP ABAP - Background jobs

Go to transaction SFP(Form Builder).

SAP ABAP - BDC - Batch Input Session

Create Form(ZOVH_SIMPLE_FORM) by selecting Form radio button.

SAP ABAP - BDC related


SAP ABAP - Class
SAP ABAP - Control framework
SAP ABAP - Date n Time function modules
SAP ABAP - Debugging
SAP ABAP - Dialog Programming
SAP ABAP - Dictionary
SAP ABAP - Dynamic Programming
SAP ABAP - FTP related
SAP ABAP - Function Modules
SAP ABAP - General

Provide form Description and provide Interface as ZOVH_INTERFACE created in the above step.

SAP ABAP - Get Last Day of The Month


SAP ABAP - Native n Open SQL
SAP ABAP - Objects
SAP ABAP - PDF Generation
SAP ABAP - Program Variants
SAP ABAP - Sapscripts
SAP ABAP - Scripts n Smartforms

Save as Local object or transportable object.


Context TabOpen Import node Select all importing parameters(PERNR, ENAME, BUKRS) by holding CTRL
key, drag and drop parameters from Interface area to Context area as shown in the screen shot.

SAP ABAP - Selection Screen


SAP ABAP - Sending Mails
SAP ABAP - Smartforms
SAP ABAP - Tab. Maint.Generator
SAP ABAP - Tables
SAP ABAP - Tips n Tricks
SAP ABAP - Transport Mgmt
SAP ABAP - Zipping in ABAP

http://www.an-sap-consultant.com/2014/04/sap-adobe-form-steps-to-create-simple-ADOBE-Form-and-calling-it-from-ABAP-Program.html

2/8

10/18/2014

An SAP Consultant: SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program

Layout TabClick on Layout button. You can view form designer in larger.

Websites I follow
HTML/CSS/Javscript Generator
Easy CSS3 Generator
Digital Inspiration
Shout ME Loud
Twitter Feed

Click on Data View tab on the form. Drag parameter(PERNR, ENAME and BUKRS) and drop on to the form. By
doing this binding will take place automatically.

http://www.an-sap-consultant.com/2014/04/sap-adobe-form-steps-to-create-simple-ADOBE-Form-and-calling-it-from-ABAP-Program.html

3/8

10/18/2014

An SAP Consultant: SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program

Save and Activate. When you activate, system generate function module.

Step 3: Create ABAP Driver program to call Form


Go to transaction SE38(ABAP Editor) and create an executable program ZTEST_SIMPLE_ADOBE.

http://www.an-sap-consultant.com/2014/04/sap-adobe-form-steps-to-create-simple-ADOBE-Form-and-calling-it-from-ABAP-Program.html

4/8

10/18/2014

An SAP Consultant: SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program

Save as Local object or transportable object.


Program steps
Get the function module of generated Form using FP_FUNCTION_MODULE_NAME.
Open the spool job using function module FP_JOB_OPEN.
Call the generated function module.
Close the spool using function module FP_JOB_CLOSE.
Program code
REPORT ztest_simple_adobe.
*&--------------------------------------------------------------------&
* Declarations
*&--------------------------------------------------------------------&
TYPES:
ty_outputparams TYPE sfpoutputparams, "Form Parameters for Form Processing
ty_docparams
TYPE sfpdocparams.
"Form Processing Output Parameter
DATA:
wa_outputparams TYPE sfpoutputparams,
wa_docparams
TYPE sfpdocparams.
DATA:
gv_fm_name
TYPE rs38l_fnam,
gv_pernr
TYPE pa0001-pernr,
gv_ename
TYPE pa0001-ename,
gv_bukrs
TYPE pa0001-bukrs.
*&--------------------------------------------------------------------&
* Selection-Screen
*&--------------------------------------------------------------------&
PARAMETERS:
p_pernr
TYPE pa0001-pernr.

*&--------------------------------------------------------------------&
* Start-Of-Selection
*&--------------------------------------------------------------------&
START-OF-SELECTION.
" Sets the output parameters and opens the spool job
wa_outputparams-device
= 'PRINTER'.
wa_outputparams-dest
= 'LP01'.
wa_outputparams-NODIALOG = 'X'.
wa_outputparams-preview
= 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
http://www.an-sap-consultant.com/2014/04/sap-adobe-form-steps-to-create-simple-ADOBE-Form-and-calling-it-from-ABAP-Program.html

5/8

10/18/2014

An SAP Consultant: SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program

CHANGING
ie_outputparams = wa_outputparams
EXCEPTIONS
cancel
=1
usage_error
=2
system_error
=3
internal_error = 4
OTHERS
= 5.
IF sy-subrc <> 0.
" <error handling>
ENDIF.
" Get the name of the generated function module
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name
= 'ZOVH_SIMPLE_FORM'
IMPORTING
e_funcname = gv_fm_name.
IF sy-subrc <> 0.
"<error handling>
ENDIF.
wa_docparams-langu
= 'E'.
wa_docparams-country = 'SG'.
" Fetch the Data and store it in the Internal Table
SELECT SINGLE pernr ename bukrs
FROM pa0001
INTO (gv_pernr, gv_ename, gv_bukrs)
WHERE pernr EQ p_pernr.
CALL FUNCTION gv_fm_name
EXPORTING
pernr
= gv_pernr
ename
= gv_ename
bukrs
= gv_bukrs
EXCEPTIONS
usage_error
=1
system_error
=2
internal_error = 3.
" Close the spool job
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error
=1
system_error
=2
internal_error = 3
OTHERS
= 4.
IF sy-subrc <> 0.
" <error handling>
ENDIF.

Step 4: Execute driver program


Execute the program ZTEST_SIMPLE_ADOBE.
Selection Screen.

http://www.an-sap-consultant.com/2014/04/sap-adobe-form-steps-to-create-simple-ADOBE-Form-and-calling-it-from-ABAP-Program.html

6/8

10/18/2014

An SAP Consultant: SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program

Output

Recommend this on Google

0 comments:
Post a Comment

Your use ful com m e nts, sugge stions are appre ciate d.Your com m e nts are m ode rate d.

Enter your comment...

Comment as:

Publish

Google Account

Preview

http://www.an-sap-consultant.com/2014/04/sap-adobe-form-steps-to-create-simple-ADOBE-Form-and-calling-it-from-ABAP-Program.html

7/8

10/18/2014

An SAP Consultant
Contact US

About US

An SAP Consultant: SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program

Follow US
Facebook

Follow by Email
Email address...

Twitter

Privacy Policy
LinkedIn
Google

B logger Template created with Artisteer by .

http://www.an-sap-consultant.com/2014/04/sap-adobe-form-steps-to-create-simple-ADOBE-Form-and-calling-it-from-ABAP-Program.html

8/8

You might also like