Você está na página 1de 19

Adobe Forms: The First Step - SFP

T-Code the Adobe form Builder

Applies to:
SAP ABAP, Adobe Live cycle Designer ES, mySAP ECC 6.0, SAP NetWeaver 2004s. For more information,
visit the ABAP homepage.

Summary
Adobe forms is very efficient alternative for the Smartforms and also allows other good features for the next
generation document services with SAP technology but for the exploration of those future possibilities you
need to know the basics of the Adobe forms. This tutorial is first step toward adobe forms and will help
beginners to ABAP and SAP builds confidence in developing new age solutions in SAP.

Author: Gaurav Patwari


Company: Torrent Power Ltd.
Created on: 15 December 2009

Author Bio
By education Gaurav is B.E. Information Technology, He is working as a Chief SAP ABAP
Developer, SAP XI developer as well as SAP HCM Functional team member with Torrent
Power Ltd. India’s one of the best Power Industry. His current technical work includes
development with following ABAP, ABAP HR, SAP XI, ABAP Objects, Smartforms, Adobe
forms BDC, BAPI, SAP Enterprise Portal, and SAP Web dynepro for Java.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 1
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Table of Contents
SFP: Adobe Form Builder ................................................................................................................................... 3
SFP: Adobe Form Builder ............................................................................................................................... 3
Form Interface ................................................................................................................................................. 3
Create Interface .............................................................................................................................................. 4
Select the Package ......................................................................................................................................... 4
Default Initial Screen for the Interface............................................................................................................. 5
Create New Parameter ................................................................................................................................... 5
Append Row for CARRID ............................................................................................................................... 6
Save, Check & Activate................................................................................................................................... 6
Create Form .................................................................................................................................................... 7
Mention Interface for Form .............................................................................................................................. 7
Mention Package and Provide the Request for the Form ............................................................................... 8
Drag N Drop CARRID ..................................................................................................................................... 8
Go for the Layout ............................................................................................................................................ 9
Go for the Form Designing ............................................................................................................................ 10
Create a Title Text......................................................................................................................................... 10
Create Text Field........................................................................................................................................... 11
Click Object Tab  Value tab ....................................................................................................................... 12
Click Object Tab  Binding .......................................................................................................................... 13
Binding Properties ......................................................................................................................................... 15
Click on Save, Close & Activate .................................................................................................................... 15
Test the Form ................................................................................................................................................ 16
Print Preview ................................................................................................................................................. 17
Final Output... ................................................................................................................................................ 17
Related Content ................................................................................................................................................ 18
Disclaimer and Liability Notice .......................................................................................................................... 19

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 2
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

SFP: Adobe Form Builder


SFP is nothing but the form builder with Adobe live cycle designer. As Adobe form builder is new and
evolving technology there's scarcity for the guide for the new developers and the solution architects in SAP
and as adobe is lead document services software vendor interesting features are available with it and can be
provide to the client for the betterment of the custom solution proposed.
Before starting this tutorial, please ensure that Adobe life cycle designer is installed on your system and
Adobe designer is configured on your server.
In this tutorial, we would pass a parameter (CARRID) to the form and print the same with a page heading.

SFP: Adobe Form Builder


Enter the T-code in SAP command bar as SFP.

Form Interface
For every form, an interface is mandatory. First step to create a custom adobe forms is to create form
interface. Click on form interface radio button. Provide name YDEMO_INTERFACE and click on

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 3
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Create Interface
Provide the description and select the interface type as ABAP Dictionary-Based Interface.

Select the Package


As it is sample form I am providing it Local Object and Same way for the request in the next step.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 4
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Default Initial Screen for the Interface


You will find the upcoming screen as show below divided into two one having parameters which will have
one default parameter as show in below figure.

Default Parameter available on creation of interface.

Create New Parameter

For example create CARRID, click on Append Row

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 5
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Append Row for CARRID


Follow as per below show figure.

Save, Check & Activate

Click on to Save.

Click on to activate

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 6
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Create Form
Return back the main screen of SFP and click on radio button for Form and provide name YDEMO_FORM
and click on

Mention Interface for Form


Provide the description for the form and also the previously created Interface form. Click on Save as shown
in below figure.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 7
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Mention Package and Provide the Request for the Form


Here it is local object and hence forth no request is asked.

Drag N Drop CARRID


The screen appearing will have the two expand the YDEMO_INTERFACE and drag the CARRID on to the
Form on right hand side.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 8
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Next screen is the resulting screen on dropping the CARRID.

Go for the Layout

Click on

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 9
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Go for the Form Designing


Click on the Palettes  Object Library  You will find the Object library dialog click on the Standard tab.
below figure depicts the same.

Create a Title Text


Select the Text from the standard tab and drag and drop on to the content area and edit the text.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 10
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Create Text Field


Select the Text Field from the standard tab and drag on the content area as shown in figure below.

Edit Object properties for Text field.


Click on the Object tab  Edit the text of text field to Carrier ID.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 11
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Click Object Tab  Value tab


Select the value type as Read only from the drop down list as shown in below figures.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 12
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Click Object Tab  Binding

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 13
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Click on button next to the default binding select CARRID as shown in below figure.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 14
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Binding Properties
Click on OK.

Click on Save, Close & Activate

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 15
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Test the Form

Click on

Provide CARRID = AA

Click on

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 16
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Print Preview
Click on print preview

Final Output...

Journey starts now.....

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 17
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Related Content
For more information, visit the ABAP homepage.
PDF-Based Print Form
http://forums.sdn.sap.com/thread.jspa?threadID=1497010
https://forums.sdn.sap.com/thread.jspa?threadID=444902

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 18
Adobe Forms: The First Step - SFP T-Code the Adobe form Builder

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 19