Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose

Similar documents
Using Radio Buttons in Web Template

Displaying SAP Transaction as Internet Application in Portal

POWL: Infoset Generation with Web Dynpro ABAP

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

BAPI Execution in offline Adobe Form

Fetching User Details from the Portal and Displaying it in Web Dynpro with Authentication in the Portal

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Adding Files as Attachments to SAP Interactive Forms in the Java Environment

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

Material Listing and Exclusion

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Replacement Path: Explained with an Illustrated Example

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

MDM Syndicator: Custom Items Tab

ecatt Part 6 System Data Container

Federated Portal for Composite Environment 7.1

Freely Programmed Help- Web Dynpro

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Web Dynpro ABAP: Dynamic Table

Linking Documents with Web Templates

Web Dynpro: Coloring Table Conditionally

Table Properties and Table Popin

Information Broadcasting Part 3 Scheduling the First Report

Graphical Mapping Technique in SAP NetWeaver Process Integration

DB Connect with Delta Mechanism

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Different Types of iviews in Enterprise Portal 7.0

SUP: Personalization Keys and Synchronize Parameter

Step By Step: the Process of Selective Deletion from a DSO

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

List of Values in BusinessObjects Web Intelligence Prompts

How to Configure User Status in mysap SRM

Financial Statement Version into PDF Reader

Easy Lookup in Process Integration 7.1

Web Dynpro ABAP: Changing ALV Contents and Saving in Database

How to Create Business Graphics in Web Dynpro for ABAP

Step by Step Method for File Archival in BW

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

Creating Multiple Methods/Operations and Exposing BAPI as a Webservice

Standalone BW System Refresh

Step-By-Step guide to Virtual InfoCube Implementation

Step By Step Procedure to Implement Soap to JDBC Scenario

Material Master Archiving in Simple Method

Data Flow During Different Update Mode in LO Cockpit

Process Chain Log Deletion

Creation of Alert Data Service VC model for the BI query exception using Information Broadcasting

Add /Remove Links on ESS Home Page in Business Package 1.5

SAP BusinessObjects Translation Manager Functionality and Use

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

Common Queries/Errors while working with Adobe Print PDF Forms

Setting up Connection between BW and R/3 for Data Load

Step by Step Guide for PI Server Start and Stop Procedure

Table Row Popup in Web Dynpro Component

Using Nested Exception Aggregation in BEx Reports- Scenario

SAP Biller Direct Step by Step Configuration Guide

Validity Table in SAP BW/BI

Recreating BIA Indexes to Address the Growth of Fact Index Table

Step by Step Procedure for DSO Creation

Currency Translation in SAP BI Step by step Guide

Download SAP Query Output to Local/ Network Folders in Background

How to Display Result Row in One Line While Reporting On Multiproviderer

How to Integrate SAP xmii Services with Web Dynpro Java

BPM Multi Line Container in Integration Process

Config Tool Activities

Step by Step Guide How to Use BI Queries in Visual Composer

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Dialog Windows in WebDynpro ABAP Applications

Totals in Adobe forms

Methods of Selecting BOM Variant Parts in Variant Configuration

Creating Rules in Process Composer and using them in Process

How to Default Variant Created for Report Developed In Report Painter/Writer

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

Database Statistics During ODS Activation

Deploying BusinessObjects Explorer on Top of a SAP BI Query

Errors while Sending Packages from OLTP to BI (One of Error at the Time of Data Loads through Process Chains)

Creating, Configuring and Testing a Web Service Based on a Function Module

How to Display Traffic Lights for Exceptions in BI Web Reports

SAP BI Analysis Authorization (Customer Exit Variables)

Reading Enhanced DataSource fields for the Remote Cube

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

SDN Community Contribution

MDM Syndication and Importing Configurations and Automation

Printer Landscape Made Easy!!

Steps to Activate ALE Delta for Custom Master Datasource Created on ZTable

How to Create and Execute Dynamic Operating System Scripts With XI

Solution to the Challenges in Pivoting

Internationalization in WebDynpro ABAP Applications

Complete Guide to Learn ALE Error Handling Through Workflow and Implementation

Upload Image file from system in Web dynpro view

Custom Password Reset Tool in SAP Enterprise Portal Using Web Dynpro for Java

SAP IS-U Migration Workbench: Step by Step EMIGALL

How to Create and Schedule Publications from Crystal Reports

Step by Step Guide on How to Use Cell Definition in BEx Query

ABAP HR: Standard Info Type Enhancement

Transfer Material Attributes (Material Type) from R/3 to SAP GRC Global Trade Services (GTS)

SDN Community Contribution

ABAP Code - Recipients (Specific Format) SAP BW Process Chain

Transcription:

Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose Applies to: SAP Customer Relationship Management (SAP CRM) Release 7.0 SP 01, November 2008. SAP NetWeaver 7.0 including enhancement package 1 Support Package Stack 02, including BI Content Add-On 04, October 2008. For more information, visit the Content Management homepage. Summary Template designer, a tool available in SAP CRM from version 5.2, can be used to create Microsoft Word or PDF document template which leverage Webservice to create Word or PDF document automatically in a predefined layout with desired data from a specific transaction. The document can be attached automatically to any transaction or can be used for print purpose. Author: Arkopaul Sarkar Company: Capgemini Consulting India Pvt. Ltd. Created on: 15 April 2009 Author Bio Arkopaul is a Consultant working with Capgemini consulting India Pvt Ltd. He has ample interast in Service oriented architecture, ADOBE product integration with SAP and CRM. 2009 SAP AG 1

Table of Contents Introduction...3 System Requirement...3 Webservice...3 Testing...10 Related Content...13 Disclaimer and Liability Notice...14 2009 SAP AG 2

Introduction Template Designer is a tool available in SAP CRM from version 5.2. This tool leverages Webservice to create document template. Document templates can be either a Microsoft Word document or a PDF type document. The Document template has a predefined layout and the layout is filled by data fetched by Webservice from CRM system at runtime and the final output is displayed in Adobe Acrobat or MS Word. The final output can be attached to any object like opportunity, activity or sales contract as attached document and later used to send as an attachment via e-mail or to simply print as a form. The scope of this article is to discuss the procedure to create PDF type document template through template designer. System Requirement For Adobe Integration, you require: Adobe Reader on all clients Adobe Lifecycle Designer for Designers Machine (included with SAP GUI) SAP CRM 5.2 or above Webservice The data rendered in the document template is fetched by Webservice. Webservice tool is available in CRM Web UI to create Webservice for a business object in four easily navigable steps. The tool can be found under Service Professional role and can be accessed from the Service Operations work center. In this article we cite the transaction business activity, which we will build the document template for. As we need to display the activity data in the document template, we must have one Webservice for reading the activity data. We create the Webservice in the following four steps by Webservice tool. Don t forget to make the Webservice productive after activating it. 2009 SAP AG 3

Process steps 1. Login to your Web UI portal and go to template designer. 2. 2009 SAP AG 4

3. Click on New as marked in the above picture and you will be presented with the following screen. 4. Choose File Type as Adobe XML From File from the drop-down menu. 2009 SAP AG 5

5. Define the Name for your document template and Description. 6. Choose Object Type from F4 help. In this case it is BUS2000126 for Business Activity. 2009 SAP AG 6

7. Choose the Webservice name from F4 help. 8. Now click the button Download Schema and save the XML document in your workstation when prompted. 2009 SAP AG 7

9. Now open Adobe Livecycle Designer installed in your workstation. Create a new Form layout and then create a new data connection from File New Data Connection. 10. This will present a wizard where we choose XML Schema as the data source and then in the next screen select the XML schema file from workstation. Remember this document we downloaded from template designer. You will notice that the Webservice method is selected automatically as Data Root Element. If there are multiple methods you can choose your desired one from the drop-down menu. Don t forget t check the Embed XML Schema checkbox. 11. Upon finishing the wizard a data connection is automatically created in the data view. Now we design our form as per our design requirement. We also bind the fields, where we need to display activity data to be displayed in the form, to the corresponding fields in the data connection. We used a simple Webservice to fetch activity objectid, description, location and priority. You can complex data 2009 SAP AG 8

and even tables for item data through your Webservice. 12. Now we save the form with property Adobe XML Form File as the Save as type and.xdp as the Extension in your workstation. 13. Now we go back to the template designer at the point where we left it and click on the Start Designer button. This will open the Upload template to CRM field where we browse and mention the path for the.xdp file we saved from Adobe Livecycle Designer and click on the Upload button beside it to upload the template. If the upload is successful we get a success message. In the search screen of template designer you can find your template. 2009 SAP AG 9

Testing Now when our document template is ready for business object type BUS2000126 (Business Activity), we can try to attach it as document in one activity. You can access the document template by clicking the With Template in Attachment section of the activity. 2009 SAP AG 10

Whenever you will select your document template (in this case Test_docact) the form will open in acrobat reader (embedded in Internet browser) with all the required data of the particular activity. You can take a print out of this form from the print functionality of Acrobat Reader or attach it to the activity. To attach it simply close the browser along with Acrobat Reader. You will get a success message that your document has been saved successfully and can see the document in the Attachment section of the particular activity. 2009 SAP AG 11

2009 SAP AG 12

Related Content http://help.sap.com/saphelp_crm70/helpdata/en/c3/769dd7c3ef4e7ea1467c05566c5385/frameset.htm http://help.sap.com/saphelp_crm70/helpdata/en/33/e747fbe8ee404f9021deb1972b4166/frameset.htm http://help.sap.com/saphelp_crm70/helpdata/en/33/e747fbe8ee404f9021deb1972b4166/frameset.htm For more information, visit the Content Management homepage. 2009 SAP AG 13

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. 2009 SAP AG 14