You are on page 1of 35

DM151: Creating PDF-Based Forms for Printing

Markus Meisl, SAP AG Gerhard Weigelt, SAP AG

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 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

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 timeconsuming Flexibly adjust forms-based business processes Maintain familiar look and feel to enhance usability
SAP AG 2004, SAP TechEd / DM151 / 5

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 Adobes 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

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

Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer

Full Integration into SAP NetWeaver


SAP NetWeaver
PEOPLE INTEGRATION Multi-Channel Access Composite Application Framework Portal Collaboration Life Cycle Management

INFORMATION INTEGRATION Bus. Intelligence Knowledge Man.

Master Data Management PROCESS INTEGRATION Integration Broker Business Process Mgmt

APPLICATION PLATFORM

J2EE
Adobe LiveCycle Designer

ABAP
Adobe LiveCycle Designer

APPLICATION PLATFORM J2EE ABAP

Adobe Document Services

DB and OS Abstraction

DB and OS Abstraction

SAP AG 2004, SAP TechEd / DM151 / 9

Interactive Forms Design Time


SAP NetWeaver Developer Studio

ABAP Workbench

SAP Web Application Server

Java PDF Object

ABAP PDF Object

Adobe Document Services SAP J2EE Engine

SAP AG 2004, SAP TechEd / DM151 / 10

Interactive Forms Run-Time Architecture


Application Platform
J2EE
Adobe LiveCycle Designer

ABAP
Adobe LiveCycle Designer

Adobe Document Services


DB and OS Abstraction

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 SOAP

ABAP Stack
Application Code (ABAP) PDF Object (ABAP) Web Services

SAP AG 2004, SAP TechEd / DM151 / 11

Forms Output Technical Process


mySAP Business Suite SAP Web Application Server
3. Document services render data into form and returns data (PDF, PS, PCL or ZPL) 1. Business application submits processing request to PPF 2. PPF gets application data (XML) via callback and submits it with form template to document services

Adobe document services

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

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

SAP AG 2004, SAP TechEd / DM151 / 12

Printing with PDF-Based Forms

Program

Document

SAP AG 2004, SAP TechEd / DM151 / 13

Tools Involved at Design Time

Form Template

FUNCTION /1BCDWB/SM00000001. DATA: %OUTPAR TYPE SFPOUTPAR, %DOCPAR TYPE SFPDOCPAR, ...

Context

Layout

Interface

SAP AG 2004, SAP TechEd / DM151 / 14

What Happens at Run Time


PDF-based form template activate

Application program

ABAP function module (generated) Output = Form = Document

Database

Data retrieval
SAP AG 2004, SAP TechEd / DM151 / 15

Form description

Introduction into Interactive Forms Technology Form Builder & Adobe LiveCycle Designer

Form Builder: Access to Forms Processing

ABAP Workbench (SE80)

Transaction SFP

SAP AG 2004, SAP TechEd / DM151 / 17

Form Interface: Properties

SAP AG 2004, SAP TechEd / DM151 / 18

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 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

Form Context: Overview


Interface Context

Properties of interface field


SAP AG 2004, SAP TechEd / DM151 / 21

Properties/details/conditions of context element

Creating a Context
New fields (form-specific)

Drag & drop from interface


SAP AG 2004, SAP TechEd / DM151 / 22

Context: Node Types


Text Graphic Address Data Structure Table / Loop Alternative Folder Condition Text module, include text, or dynamic text Graphics Address Elementary data field Structure Dynamic table TRUE/FALSE Condition Groups subnodes for clarity (Not a separate node)

SAP AG 2004, SAP TechEd / DM151 / 23

Adobe LiveCycle Designer: Overview

Script Editor

Palette Window

Layout Editor

Palette Window

SAP AG 2004, SAP TechEd / DM151 / 24

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)
SAP AG 2004, SAP TechEd / DM151 / 26

Body page
Pages of a form Contains system data

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

Scripting in Adobe LiveCycle Designer


Single-line display

Multi-line display

Supported scripting languages


FormCalc JavaScript

SAP AG 2004, SAP TechEd / DM151 / 28

Demo

Demo

SAP AG 2004, SAP TechEd / DM151 / 29

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

Further Information
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

SAP Service Marketplace


http://service.sap.com/adobe

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


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

SAP Developer Network


Look for SAP TechEd 04 presentations and videos on the SAP Developer Network. Coming in December. http://www.sdn.sap.com/

SAP AG 2004, SAP TechEd / DM151 / 32

Questions?

Q&A
SAP AG 2004, SAP TechEd / DM151 / 33

Feedback
Please complete your session evaluation. Be courteous deposit your trash, and do not take the handouts for the following session.

Thank You !

SAP AG 2004, SAP TechEd / DM151 / 34

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