Sei sulla pagina 1di 74

AB1006-Adobe-PDF Print based Print Forms- v1.

India SAP CoE, Slide 1

AB1006- Adobe-PDF Print based Print Forms


1 2

Introduction Syntax Description


3

Demonstration
Exercises HelpMe

5
India SAP CoE, Slide 2

AB1006- Adobe-PDF Print based Print Forms


1 2

Introduction Syntax Description


3

Demonstration
Exercises HelpMe

5
India SAP CoE, Slide 3

Introduction
Purpose Use

India SAP CoE, Slide 4

Purpose
PDF-based print forms are part of the SAP Interactive Forms by Adobe solution and are used : For printing in SAP systems as well as standard output on printers. Option of Archiving,Faxing or e-mailing your documents. Use your application to send a PDF to the BusinessCommunication Services.

India SAP CoE, Slide 5

Use
Adobe forms are used for : Designing and printing various types of application documents across the various SAP modules like SD, FI, PU, IM, WM etc. For mass printing like monthly invoices sent by telecom companies or salary statements.

India SAP CoE, Slide 6

AB1006- Adobe-PDF Print based Print Forms


1 2

Introduction Syntax description


3

Demonstration
Exercises HelpMe

5
India SAP CoE, Slide 7

Syntax Description
Adobeform has 3 driving components : Print Program, Layout Set and Function module.
1. Application Data is fetched by the Print Program from the database depending upon the selection screen parameter. 2. Function module of a Layout Set is generated when the PDF-based form template is activated. 3. The output of application document is sent to printer or mail or fax.

India SAP CoE, Slide 8

Architecture

India SAP CoE, Slide 9

Architecture : Contd..

India SAP CoE, Slide 10

Forms Output: Technical Process

India SAP CoE, Slide 11

Forms Scenarios: Technical View

India SAP CoE, Slide 12

The Tools involved in Design Time

India SAP CoE, Slide 13

Tools involved in Design Time Interface Context

Form Designing
Form Layout Integration with ABAP Program

India SAP CoE, Slide 14

Tools involved in Design Time Interface Context

Form Designing
Form Layout Integration with ABAP Program

India SAP CoE, Slide 15

Interface
Every PDF based form needs to have an interface. It is the link between the ABAP program and the form. The program can pass on the data to the form only if it is defined in the interface, and the dynamic data uses in the form layout will mostly be defined in the interface. This unit walks you through the process of creating an interface that can then be used in any number of forms.

India SAP CoE, Slide 16

Interface: Properties

India SAP CoE, Slide 17

Form Interface

India SAP CoE, Slide 18

Global Definitions

India SAP CoE, Slide 19

Initialization

India SAP CoE, Slide 20

Currency/unit Fields

India SAP CoE, Slide 21

Tools involved in Design Time Interface Context

Form Designing
Form Layout Integration with ABAP Program

India SAP CoE, Slide 22

Context
The context is essential as it provides the source for data for a form. Apart from static elements, only those texts, fields, images etc. can be included in the layout of a form that have been integrated into the form context. However, the context should not be overloaded as this will have a negative impact on printing performance.

India SAP CoE, Slide 23

Form: Properties

India SAP CoE, Slide 24

Form Interface

India SAP CoE, Slide 25

Using Interface

India SAP CoE, Slide 26

Conditions for context elements

India SAP CoE, Slide 27

Including Folders

India SAP CoE, Slide 28

Including Graphics

India SAP CoE, Slide 29

Including Address

India SAP CoE, Slide 30

Including Texts

India SAP CoE, Slide 31

Including Texts

India SAP CoE, Slide 32

Including Texts

India SAP CoE, Slide 33

Tools involved in Design Time Interface Context

Form Designing
Form Layout Integration with ABAP Program

India SAP CoE, Slide 34

Form Designing
After creating the Form Context, as illustrated in the previous slide pack.we will Use Adobe Live Cycle Designer (ALD) to create the layout as ALD is fully integrated into Transaction SFP, and lets you create/edit pages and their contexts (text/images).

India SAP CoE, Slide 35

Adobe Live Cycle Designer

India SAP CoE, Slide 36

Components of the ALD Screen

Toolbars

Script Editor Layout Editor

Palette Windows

India SAP CoE, Slide 37

Building a Form : Adding a Object


Step 1 : Identify the Page of the Layout where the Logo has to be added.

Step 3 : Double Click on the desired location, and from the local computers directory structure, chose the desired logo file you want to add.
India SAP CoE, Slide 38

Step 2 : Choose the Image object from the Library Palette and drag it to the desired location on the layout Page.

Hierarchy Palette : Naming Objects


Use the the Hierarchy Hierarchy Palette, Palette, to to name name Use objects added added to to the the layout. layout. objects

India SAP CoE, Slide 39

Sub Forms
Step 1 : A Sub Form can be added by dragging it from the Standard Palette onto a desired position on the Layout Page.

Sub Form

Sub Form Node

India SAP CoE, Slide 40

Layout Palette

India SAP CoE, Slide 41

Layout Palette : Size Attributes

Layout Palette

India SAP CoE, Slide 42

Border Palette

Border Palette

India SAP CoE, Slide 43

Using an Object Multiple Times

India SAP CoE, Slide 44

Using an Object Multiple Times : Adding to the Library

India SAP CoE, Slide 45

Using an Object Multiple Times : Using from the Library


Step 1 : The added object appears in the Custom Palette.

Step 2 : The object can be added to other parts of the form by dragging it onto to the desired location from the Custom Palette.

India SAP CoE, Slide 46

Master Pages & Boiler Plate Objects


A form usually has at least one Master Page, where those objects are placed,

which are displayed on all pages. These objects for example, Company Logo, Address, are known as Boiler plate objects.

A Master Page must have at least one Content Area.

The actual pages of a form (the concrete pages) are called Body Pages. The Master Page is referred to as Abstract Pages, as they are essentially templates, which are not actual pages that are printed.

India SAP CoE, Slide 47

Multiple Master Pages

Multiple Master Pages

India SAP CoE, Slide 48

Tools involved in Design Time Interface Context

Form Designing
Form Layout Integration with ABAP Program

India SAP CoE, Slide 49

Form Layout
Building a form layout by : Inserting static elements in the form: Images,Texts, Graphical Objects. Set Object Properties of Static Elements of a Form Insert dynamic Elements in to a Form : Text fields, Images, date / time fields etc. Achieve data binding : Establish the link between Layout fields and Business data. Insert table into a form Format a Table

India SAP CoE, Slide 50

Inserting Static Images


Step 1 : Drag and Drop, Image from the Library Palette. On to the Form Page.

Step 2 : Use the Draw Menu to provide other image attributes.


India SAP CoE, Slide 51

Sizing Images

Options for Image Sizing.

India SAP CoE, Slide 52

Inserting Static Text

Font and Paragraph Palette to set the attributes of a text.

India SAP CoE, Slide 53

Inserting Graphical Elements

Step 1: Select Line from the Library palette and drag and drop it onto the page.

Step 2: Set Attributes of the line, in the object Menu.

India SAP CoE, Slide 54

Inserting Dynamic Elements


Step 1 : Drag a field from the Data View to the desired position on the Layout Page. Step 2 : Drag a text field from the Library Palette, to the desired position on the Layout Page.

India SAP CoE, Slide 55

Data Binding

India SAP CoE, Slide 56

Inserting a Table
Step 1 : Drag and Drop Table from the Library Palette onto the Layout Form.

Step 2 : Attributes of the Table can be specified using the Object Menu.
India SAP CoE, Slide 57

Tools involved in Design Time Interface Context

Form Designing
Form Layout Integration with ABAP Program

India SAP CoE, Slide 58

Integration with ABAP Program


We will Use an ABAP program As: The interface for Adobe Forms. For simple printing scenario with the tool Interactive Forms based on Adobe software.

India SAP CoE, Slide 59

Basic Steps for an Interface of Form


Data Retrieval and Processing Finding the Function Module Name Start Processing of the Form Pass Different Data to the Form Close Processing of the Form

India SAP CoE, Slide 60

Example to get Generated FM


DATA: FM_NAME TYPE RS38L_FNAM, INTERFACE_TYPE TYPE FPINTERFACETYPE. * Get the name of the generated function module CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING Pass Form Name I_NAME = <FORM NAME> IMPORTING Get FM Name E_FUNCNAME = FM_NAME. E_INTERFACE_TYPE = INTERFACE_TYPE.
FP_FUNCTION_MODULE_NAME use class based exception handling.
Use TRY- CATCH ENDTRY block to handle the exception
India SAP CoE, Slide 61

Starting and Ending Form Processing


Open Form using FP_JOB_OPEN

Close Form using FP_JOB_Close

India SAP CoE, Slide 62

Different Fields for SFPOUTPUTPARAMS


nodialog noprint nopdf getpdf dest copies reqnew reqfinal connection - no printer dialog popup - no backend printing - no PDF document only PDL - PDF as return parameter - output device - number of copies to be printed - start a new spool job - spool request completed - determine RFC destination for ADS

India SAP CoE, Slide 63

Calling Generated Function Module


DATA: FP_DOCPARAMS FP_NAME FP_RESULT TYPE SFPDOCPARAMS, TYPE RS38L_FNAM, TYPE FPFORMOUTPUT.

FP_DOCPARAMS-LANGU = CUSTOMER_LANGUAGE. CALL FUNCTION FM_NAME EXPORTING /1bcdwb/docparams = fp_docparams Pass Data to the Form booking = it_bookings IMPORTING /1bcdwb/formoutput = fp_result EXCEPTIONS OTHERS = 1.
India SAP CoE, Slide 64

Reuse of Smart Forms Application Program

From SMARTFORMS transaction go to Utilities -> Migration -> PDFbased Form -> Switch Runtime Call SSF_FUNCTION_MODULE_NAME with the Smartform name Get the Returned generated function module Call that Generated Function Module

India SAP CoE, Slide 65

AB1006- Adobe-PDF Print based Print Forms


1 2

Introduction Syntax Description description


3

Demonstration
Exercises HelpMe

5
India SAP CoE, Slide 66

Configuration
-

The basic configuration required to do for PDF form is creating output type and attaching the PDF form to the output type. - NACE is the transaction to set the output type. - In this transaction first the application is selected ( e.g.V1 Sales, V2 Shipping etc) - Then output type is selected. Sometimes output type is created newly if driver program and PDF form are custom program and not SAP standard ones. - Whenever new output type is created , 3 parameters are required. They are : - PDF form Name - Driver Program Name - ENTRY routine name. - Incase of FI forms, configuration is done using BTEs (Business Transaction Events) since NACE cannot be used to configure FI forms.

India SAP CoE, Slide 67

AB1006- Adobe-PDF Print based Print Forms


1 2

Introduction Syntax Description description


3

Demonstration
Exercises HelpMe

5
India SAP CoE, Slide 68

Exercises
Let us design one Adobe form for Billing Document. The layout specifications and data retrieval logic has been explained in these word documents.

Layout Specification :

Data Retrieval Logic :

India SAP CoE, Slide 69

A Business Example
A Travel Agency wants to print invoice for Flight bookings

Program

Resulting document

India SAP CoE, Slide 70

Transactions
SFP Form Builder : Entry Point and Form Interface.(Choose relevant radio button) Create standard Text
Create print program

SO10
SE38

India SAP CoE, Slide 71

AB1006- Adobe-PDF Print based Print Forms


1 2

Introduction Syntax Description description


3

Demonstration
Exercises HelpMe

5
India SAP CoE, Slide 72

Tips and Tricks in PDF Forms


Download/Upload Form : Transaction SFP -> Utilities -> Downloading form object or Uploading form object Download the Interface used also Choose Utilities -> Downloading subtree to download parts of a context To download the PDF document: a) Go to Layout Editor -> Select the PDF Preview tab -> Press CtrlShift-S and specify the place to save. b) F8 from SFP -> Press Ctrl-Shift-S and specify the place to save

India SAP CoE, Slide 73

PDF Import : Steps


Go to tabstrip Layout in transaction SFP Choose Tools -> Import Select file type as Adobe Acrobat (*.pdf) Navigate to the desired file -> Choose Open Conversion Type should always be Optimize for editing File import options work best with default settings

India SAP CoE, Slide 74

Potrebbero piacerti anche