Sei sulla pagina 1di 35
DM151: Creating PDF-Based Forms for Printing
DM151: Creating PDF-Based Forms for Printing

DM151:

Creating PDF-Based Forms for Printing

DM151: Creating PDF-Based Forms for Printing
Markus Meisl, SAP AG Gerhard Weigelt, SAP AG
Markus Meisl, SAP AG Gerhard Weigelt, SAP AG

Markus Meisl, SAP AG

Gerhard Weigelt, SAP AG

Markus Meisl, SAP AG Gerhard Weigelt, SAP AG
Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer
Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer

Introduction into Interactive Forms

Technology

Form Builder & Adobe LiveCycle Designer

Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer
Learning Objectives As a result of this workshop, you will be able to: Understand the

Learning Objectives

As a result of this workshop, you will be able to:

Understand the background of the SAP/Adobe partnership Know the technological foundation of Interactive Forms Create and adapt forms for print purposes Work with the Form Builder in the ABAP Workbench

© SAP AG 2004, SAP TechEd / DM151 / 4

adapt forms for print purposes Work with the Form Builder in the ABAP Workbench © SAP
Requirements in Forms-Based Processes Need to extend business processes to more users Integrate internal and

Requirements in Forms-Based Processes

Need to extend business processes to more users

Integrate internal and external users (managers, employees, prospects, customers,…) into business processes

Overcome limitations of paper-based forms processes

Paper forms are error-prone and easily outdated. Processes require manual data re-entry. Process status is hard to track. Paper forms produce high costs (e.g. production, storage).

Improve electronic forms-based business processes

Avoid redundancy of HTML, e-mail and fax documents Make creation of electronic forms easier and less time- consuming Flexibly adjust forms-based business processes Maintain familiar look and feel to enhance usability

© SAP AG 2004, SAP TechEd / DM151 / 5

business processes Maintain familiar look and feel to enhance usability © SAP AG 2004, SAP TechEd
SAP/Adobe Partnership Overview SAP/Adobe Strategic Partnership Partnership signed in June 2002 Solution available with SAP

SAP/Adobe Partnership Overview

SAP/Adobe Strategic Partnership

Partnership signed in June 2002

Solution available with SAP NetWeaver ‘04

Adobe provides

Open technology, de-facto standard for forms

Benefits of combination of PDF with XML

Benefits of SAP/Adobe collaboration

Integration of Adobe’s PDF technology into SAP solutions

Adobe Reader delivered 500 million times worldwide

User-friendly design tool lowers cost of operations

Reuse of existing PDF forms

“Natural” look and feel of forms

Close linking of processes and forms (real integration)

© SAP AG 2004, SAP TechEd / DM151 / 6

look and feel of forms Close linking of processes and forms (real integration) © SAP AG
Solution in SAP NetWeaver 2004 Interactive Forms based on Adobe software Generate forms that contain

Solution in SAP NetWeaver 2004

Interactive Forms based on Adobe software

Generate forms that contain data extracted from core systems

Use dynamic or static forms

Complete forms online or offline

Allow users to print forms

Accelerate forms-based business processes

Automate paper-based business processes

Technology is already extensively used in mySAP ERP Human Capital Management and Financials (approx. 25 processes).

© SAP AG 2004, SAP TechEd / DM151 / 7

used in mySAP ERP Human Capital Management and Financials (approx. 25 processes). © SAP AG 2004,
Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer
Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer

Introduction into Interactive Forms

Technology

Form Builder & Adobe LiveCycle Designer

Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer
Full Integration into SAP NetWeaver SAP NetWeaver™ PEOPLE INTEGRATION Multi-Channel Access Portal Collaboration

Full Integration into SAP NetWeaver

SAP NetWeaver™ PEOPLE INTEGRATION Multi-Channel Access Portal Collaboration INFORMATION INTEGRATION Life Cycle
SAP NetWeaver™
PEOPLE INTEGRATION
Multi-Channel Access
Portal
Collaboration
INFORMATION INTEGRATION
Life Cycle Management
Bus. Intelligence
Knowledge Man.
Master Data Management
PROCESS INTEGRATION
Integration
Broker
Business
Process Mgmt
APPLICATION PLATFORM
J2EE
ABAP
DB and OS Abstraction
Composite Application Framework

APPLICATION PLATFORM

J2EE

Adobe LiveCycle Designer

ABAP

Adobe LiveCycle Designer

Adobe Document Services

DB and OS Abstraction

Adobe LiveCycle Designer Adobe Document Services DB and OS Abstraction © SAP AG 2004, SAP TechEd
Adobe LiveCycle Designer Adobe Document Services DB and OS Abstraction © SAP AG 2004, SAP TechEd

© SAP AG 2004, SAP TechEd / DM151 / 9

Interactive Forms – Design Time SAP NetWeaver Developer Studio ABAP Workbench SAP Web Application Server

Interactive Forms – Design Time

SAP NetWeaver Developer Studio
SAP NetWeaver
Developer
Studio
ABAP Workbench
ABAP Workbench
SAP Web Application Server Java PDF Object ABAP PDF Object Adobe Document Services SAP J2EE
SAP Web Application Server
Java PDF Object
ABAP PDF Object
Adobe Document Services
SAP J2EE Engine

© SAP AG 2004, SAP TechEd / DM151 / 10

Java PDF Object ABAP PDF Object Adobe Document Services SAP J2EE Engine © SAP AG 2004,

Interactive Forms – Run-Time Architecture – Run-Time Architecture

Application Platform

J2EE

Forms – Run-Time Architecture Application Platform J2EE ABAP Adobe LiveCycle Designer Adobe LiveCycle Designer

ABAP

Adobe LiveCycle

Designer

Adobe LiveCycle

Designer

Adobe Document Services

DB and OS Abstraction
DB and OS Abstraction

© SAP AG 2004, SAP TechEd / DM151 / 11

SAP Web Application Server

J2EE Stack

Application Code (Java)

PDF Object (Java)

Web Services

SOAP

Web Services

Document Service EJB

Adobe Document Services Core Components

ABAP Stack

Application Code (ABAP)

PDF Object (ABAP)

Web Services

SOAP

EJB Adobe Document Services Core Components ABAP Stack Application Code (ABAP) PDF Object (ABAP) Web Services
Forms Output Technical Process mySAP Business Suite 1. Business application submits processing request to PPF

Forms Output Technical Process

mySAP Business Suite

Forms Output Technical Process mySAP Business Suite 1. Business application submits processing request to PPF SAP
Forms Output Technical Process mySAP Business Suite 1. Business application submits processing request to PPF SAP

1. Business application submits processing request to PPF

SAP Web Application Server Adobe document services
SAP
Web Application Server
Adobe document services
PS, PCL, ZPL
PS,
PCL,
ZPL
Application Server Adobe document services PS, PCL, ZPL 3. Document services render data into form and

3. Document services render data into form and returns data (PDF, PS, PCL or ZPL)

2. PPF gets application data (XML) via callback and submits it with form template to document services

4. PPF submits data to spool or Business Communication Service (BCS).

data to spool or Business Communication Service (BCS). 5. Documents, e.g. Pay stubs or invoices, get
data to spool or Business Communication Service (BCS). 5. Documents, e.g. Pay stubs or invoices, get

5. Documents, e.g. Pay stubs or invoices, get printed, emailed, archived or faxed.

e.g. Pay stubs or invoices, get printed, emailed, a rchived or faxed. © SAP AG 2004,
e.g. Pay stubs or invoices, get printed, emailed, a rchived or faxed. © SAP AG 2004,
e.g. Pay stubs or invoices, get printed, emailed, a rchived or faxed. © SAP AG 2004,
e.g. Pay stubs or invoices, get printed, emailed, a rchived or faxed. © SAP AG 2004,
e.g. Pay stubs or invoices, get printed, emailed, a rchived or faxed. © SAP AG 2004,

© SAP AG 2004, SAP TechEd / DM151 / 12

Printing with PDF-Based Forms P r o g r a m Document © SAP AG

Printing with PDF-Based Forms

Program

Printing with PDF-Based Forms P r o g r a m Document © SAP AG 2004,

Document

Printing with PDF-Based Forms P r o g r a m Document © SAP AG 2004,

© SAP AG 2004, SAP TechEd / DM151 / 13

Printing with PDF-Based Forms P r o g r a m Document © SAP AG 2004,
Tools Involved at Design Time FUNCTION /1BCDWB/SM00000001. DATA: %OUTPAR TYPE SFPOUTPAR, %DOCPAR TYPE SFPDOCPAR, Form

Tools Involved at Design Time

FUNCTION

/1BCDWB/SM00000001.

DATA: %OUTPAR TYPE SFPOUTPAR, %DOCPAR TYPE SFPDOCPAR,

DATA: %OUTPAR TYPE SFPOUTPAR, %DOCPAR TYPE SFPDOCPAR, Form Template Context Interface © SAP AG 2004, SAP
DATA: %OUTPAR TYPE SFPOUTPAR, %DOCPAR TYPE SFPDOCPAR, Form Template Context Interface © SAP AG 2004, SAP

Form Template

Context Interface
Context
Interface

© SAP AG 2004, SAP TechEd / DM151 / 14

Layout
Layout
TYPE SFPOUTPAR, %DOCPAR TYPE SFPDOCPAR, Form Template Context Interface © SAP AG 2004, SAP TechEd /
What Happens at Run Time PDF-based form template activate ABAP function module (generated) Form description

What Happens at Run Time

PDF-based form template activate ABAP function module (generated) Form description
PDF-based
form template
activate
ABAP
function
module
(generated)
Form description
Application program Database Data retrieval
Application
program
Database
Data retrieval
description Application program Database Data retrieval Output = Form = Document © SAP AG 2004, SAP
description Application program Database Data retrieval Output = Form = Document © SAP AG 2004, SAP

Output

= Form

= Document

© SAP AG 2004, SAP TechEd / DM151 / 15

Application program Database Data retrieval Output = Form = Document © SAP AG 2004, SAP TechEd
Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer
Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer

Introduction into Interactive Forms

Technology

Form Builder & Adobe LiveCycle Designer

Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer
Form Builder: Access to Forms Processing ABAP Workbench (SE80) Transaction SFP © SAP AG 2004,

Form Builder: Access to Forms Processing

ABAP Workbench (SE80)

Form Builder: Access to Forms Processing ABAP Workbench (SE80) Transaction SFP © SAP AG 2004, SAP

Transaction SFP

Form Builder: Access to Forms Processing ABAP Workbench (SE80) Transaction SFP © SAP AG 2004, SAP

© SAP AG 2004, SAP TechEd / DM151 / 17

Form Builder: Access to Forms Processing ABAP Workbench (SE80) Transaction SFP © SAP AG 2004, SAP
Form Interface: Properties © SAP AG 2004, SAP TechEd / DM151 / 18

Form Interface: Properties

Form Interface: Properties © SAP AG 2004, SAP TechEd / DM151 / 18
Form Interface: Properties © SAP AG 2004, SAP TechEd / DM151 / 18

© SAP AG 2004, SAP TechEd / DM151 / 18

Form Interface: Properties © SAP AG 2004, SAP TechEd / DM151 / 18
Form Interface ABAP types Dictionary types © SAP AG 2004, SAP TechEd / DM151 /

Form Interface

Form Interface ABAP types Dictionary types © SAP AG 2004, SAP TechEd / DM151 / 19
ABAP types Dictionary types
ABAP types
Dictionary types
Form Interface ABAP types Dictionary types © SAP AG 2004, SAP TechEd / DM151 / 19
Form Interface ABAP types Dictionary types © SAP AG 2004, SAP TechEd / DM151 / 19

© SAP AG 2004, SAP TechEd / DM151 / 19

Form Interface ABAP types Dictionary types © SAP AG 2004, SAP TechEd / DM151 / 19
Application Program * (1) Data retrieval and processing SELECT FROM * (2) Find out name

Application Program

* (1) Data retrieval and processing

SELECT

FROM

* (2) Find out name of generated function module

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'

* (3) Start form processing

CALL FUNCTION 'FP_JOB_OPEN'

LOOP AT

* (4) Call function module dynamically CALL FUNCTION <generated function module> ENDLOOP.

* (5) End form processing

CALL FUNCTION 'FP_JOB_CLOSE'

© SAP AG 2004, SAP TechEd / DM151 / 20

ENDLOOP. * (5) End form processing CALL FUNCTION 'FP_JOB_CLOSE' © SAP AG 2004, SAP TechEd /
Form Context: Overview Interface Context Properties of interface field Properties/details/conditions of context

Form Context: Overview

Interface Context Properties of interface field Properties/details/conditions of context element
Interface
Context
Properties of
interface field
Properties/details/conditions
of context element

© SAP AG 2004, SAP TechEd / DM151 / 21

Properties of interface field Properties/details/conditions of context element © SAP AG 2004, SAP TechEd / DM151
Creating a Context New fields (form-specific) Drag & drop from interface © SAP AG 2004,

Creating a Context

New fields (form-specific)

Creating a Context New fields (form-specific) Drag & drop from interface © SAP AG 2004, SAP
Creating a Context New fields (form-specific) Drag & drop from interface © SAP AG 2004, SAP
Drag & drop from interface
Drag & drop
from interface

© SAP AG 2004, SAP TechEd / DM151 / 22

Creating a Context New fields (form-specific) Drag & drop from interface © SAP AG 2004, SAP
Context: Node Types Text Text module, include text, or dynamic text Graphic Graphics Address Address

Context: Node Types

Text Text module, include text, or dynamic text

Text

Text module, include text, or dynamic text

Graphic Graphics

Graphic

Graphics

Address Address

Address

Address

Data Elementary data field

Data

Elementary data field

Structure Structure

Structure

Structure

Table / Loop Dynamic table

Table / Loop

Dynamic table

Alternative TRUE/FALSE Condition

Alternative

TRUE/FALSE Condition

Folder Groups subnodes for clarity

Folder

Groups subnodes for clarity

Condition (Not a separate node)

Condition

(Not a separate node)

© SAP AG 2004, SAP TechEd / DM151 / 23

Folder Groups subnodes for clarity Condition (Not a separate node) © SAP AG 2004, SAP TechEd
Adobe LiveCycle Designer: Overview Script Editor Palette Layout Palette Window Editor Window © SAP AG

Adobe LiveCycle Designer: Overview

Script Editor Palette Layout Palette Window Editor Window
Script Editor
Palette
Layout
Palette
Window
Editor
Window

© SAP AG 2004, SAP TechEd / DM151 / 24

Overview Script Editor Palette Layout Palette Window Editor Window © SAP AG 2004, SAP TechEd /
Layout Editor: Adding Form Objects © SAP AG 2004, SAP TechEd / DM151 / 25

Layout Editor: Adding Form Objects

Layout Editor: Adding Form Objects © SAP AG 2004, SAP TechEd / DM151 / 25

© SAP AG 2004, SAP TechEd / DM151 / 25

Layout Editor: Adding Form Objects © SAP AG 2004, SAP TechEd / DM151 / 25
Master Pages and Body Pages Master page Determines formatting of body pages (incl. background) ©

Master Pages and Body Pages

Master Pages and Body Pages Master page Determines formatting of body pages (incl. background) © SAP

Master page

Determines formatting of body pages (incl. background)

© SAP AG 2004, SAP TechEd / DM151 / 26

Body page

Pages of a form

Contains system data

of body pages (incl. background) © SAP AG 2004, SAP TechEd / DM151 / 26 Body
Data Binding Association between form template and data source Created automatically through drag & drop

Data Binding

Association between form template and data source

Created automatically through drag & drop

Can also be created manually

© SAP AG 2004, SAP TechEd / DM151 / 27

Created automatically through drag & drop Can also be created manually © SAP AG 2004, SAP
Created automatically through drag & drop Can also be created manually © SAP AG 2004, SAP
Scripting in Adobe LiveCycle Designer Single-line display Multi-line display Supported scripting languages FormCalc

Scripting in Adobe LiveCycle Designer

Single-line display

Scripting in Adobe LiveCycle Designer Single-line display Multi-line display Supported scripting languages FormCalc

Multi-line display

LiveCycle Designer Single-line display Multi-line display Supported scripting languages FormCalc JavaScript © SAP

Supported scripting languages

FormCalc JavaScript

© SAP AG 2004, SAP TechEd / DM151 / 28

display Multi-line display Supported scripting languages FormCalc JavaScript © SAP AG 2004, SAP TechEd / DM151
Demo © SAP AG 2004, SAP TechEd / DM151 / 29 Demo

Demo

© SAP AG 2004, SAP TechEd / DM151 / 29

Demo

Demo © SAP AG 2004, SAP TechEd / DM151 / 29 Demo
Summary Interactive Forms based on Adobe software Is used to create PDF-based forms for printing

Summary

Interactive Forms based on Adobe software

Is used to create PDF-based forms for printing

Is fully integrated into SAP NetWeaver

Provides a user-friendly development environment

Combines the benefits of the open technology standards XML and PDF

© SAP AG 2004, SAP TechEd / DM151 / 30

Combines the benefits of the open technology standards XML and PDF © SAP AG 2004, SAP
Further Information Public Web:

Further Information

Further Information Public Web:
Public Web:
Public Web:

www.sap.com: Solution Brief “SAP Manager Self-Service: Tools for Smart Decisions and Lower Costs” www.sdn.sap.com Web Application Server Quick Link Interactive Forms: Featured Content Adobe: www.adobe.com/sap

Forms: Featured Content Adobe: www.adobe.com/sap SAP Service Marketplace http://service.sap.com/adobe Related
SAP Service Marketplace
SAP Service Marketplace

http://service.sap.com/adobe

Related SAP Education Training Opportunities
Related SAP Education Training Opportunities

http://www.sap.com/education/ (SAP training courses for Interactive Forms coming in 2005)

Related Workshops/Lectures at SAP TechEd 2004
Related Workshops/Lectures at SAP TechEd 2004

DM101, Interactive Forms based on Adobe software, Lecture DM152, Creating Interactive Forms in Web Dynpro for Java, Hands-on BPM101, Interactive Form-Based Processes in mySAP ERP 2004, Lecture

© SAP AG 2004, SAP TechEd / DM151 / 31

Hands-on BPM101, Interactive Form-Based Processes in mySAP ERP 2004, Lecture © SAP AG 2004, SAP TechEd
SAP Developer Network Look for SAP TechEd ’04 presentations and videos on the SAP Developer

SAP Developer Network

Look for SAP TechEd ’04 presentations and videos on the SAP Developer Network.

Coming in December.

http://www.sdn.sap.com/

videos on the SAP Developer Network. Coming in December. http://www.sdn.sap.com/ © SAP AG 2004, SAP TechEd

© SAP AG 2004, SAP TechEd / DM151 / 32

videos on the SAP Developer Network. Coming in December. http://www.sdn.sap.com/ © SAP AG 2004, SAP TechEd
Questions? © SAP AG 2004, SAP TechEd / DM151 / 33 Q&A

Questions?

Questions? © SAP AG 2004, SAP TechEd / DM151 / 33 Q&A

© SAP AG 2004, SAP TechEd / DM151 / 33

Q&A

Questions? © SAP AG 2004, SAP TechEd / DM151 / 33 Q&A
Feedback Please complete your session evaluation. Be courteous — deposit your trash, and do not

Feedback

Please complete your session evaluation.

Be courteous — deposit your trash, and do not take the handouts for the following session.

© SAP AG 2004, SAP TechEd / DM151 / 34

Thank You !

your trash, and do not take the handouts for the following session. © SAP AG 2004,
Copyright 2004 SAP AG. All Rights Reserved No part of this publication may be reproduced

Copyright 2004 SAP AG. All Rights Reserved

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.

IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries.

Oracle is a registered trademark of Oracle Corporation.

UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.

Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.

HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.

Java is a registered trademark of Sun Microsystems, Inc.

JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.

MaxDB is a trademark of MySQL AB, Sweden.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

© SAP AG 2004, SAP TechEd / DM151 / 35

any. Nothing herein should be construed as constituting an additional warranty. © SAP AG 2004, SAP