SAP CRM如何创建支持Web Service的PDF模板

简介: SAP CRM如何创建支持Web Service的PDF模板

In my previous document Create Webservice enabled word document in attachment assignment block,

the use case and detailed steps to use web service enabled word document in CRM Attachment assignment block are illustrated.

Since there are two alternative document types, this document will explain how to create web service enabled PDF attachment for CRM application.


Prerequisites

(1) You should have Adobe Livecycle Designer installed so that you can use it to develop your adobe form template.

(2) The ADS ( Adobe Document Service ) web service should correctly be configured in your application server. Run the health check report FP_PDF_TEST_00 and ensure the version information is successfully returned. The ADS will be used to render your adobe form template into PDF format in the runtime.


image.png


(3) You should have an available web service created in CRM web client UI via web service tool. For detailed steps please refer to my previous document.


In this document I will use the Webservice ZJERRY_PROD_WS where the READ operation is defined on BOR type BUS1178 ( Product ).


Step by step processes

(1) Create an Adobe form template like below. Maintain the web service you have created before.


image.png


Click the Download button first for “Download Schema”, a pop up dialog will appear, save it locally.


image.png


The Schema is itself a xml file which describes the meta structure of your web service and will be confused by your adobe form template in next steps.


(2) Click button “Start Designer”, then the Adobe designer installed in your laptop will be opened automatically. Then Choose menu File->New to create a new form template.


image.png


if the open fails, check whether you have enabled the corresponding Active Control settings in your browser with reference to note 1018674.


In my opinion it is not a must to launch Adobe Designer via ActiveX, since you could manually start it at any time.


(3) load the xsd schema file you stored locally in step1. Switch to tab “Data View” and choose “New Data Connection” from context menu,


image.png


Choose “XML Schema”:


image.png


Load the local xsd schema file with default settings unchanged and click Finish button:


image.png


Now in Data View tab, you should see the hierarchy tree which has exactly the same appearance as what you have see in SAP Data panel in document Create Webservice enabled word document in attachment assignment block


image.png


(4) Now you can start to develop the layout of adobe form template. Create a new text field and bind it to the field ProductId in Data connection tree which you generate in step3 by importing xsd schema. Data binding means in the runtime, this text field will be filled with the actual transaction data of ProductId, which will be returned by service provider. The binding could be started by clicking the small triangle below:


image.png


Follow the path Use “DataConnection”->Output->ZjerryProdWs

->ProductId:


image.png


After binding the binding property for the text field should look like below. In the DataConnection tree view, there is a new icon which indicates the field ProductId is bound to a certain UI element in the template.


image.png


Finish the template layout design by adding several other fields and bind them to other fields in Data Connection.


image.png


(5) Save the templage as xdp form via “Save as” menu in Adobe Designer, then upload it back to CRM via Upload button.


image.png


(6) Now go to CRM product application, create a new attachment for a given product, select you form template in popup:

image.png



And ADS will render it as a PDF document for you:


image.png


Trouble shooting

The idea of trouble shooting is exactly the same as those explained in Create Webservice enabled word document in attachment assignment block.


相关文章
|
1月前
在 CRM WebClient UI Attachment 区域,创建支持 Web Service 的 Word 文档
在 CRM WebClient UI Attachment 区域,创建支持 Web Service 的 Word 文档
21 0
|
1月前
|
XML 存储 数据格式
如何在 CRM Assignment block 里创建支持 Web Service 的 PDF 附件
如何在 CRM Assignment block 里创建支持 Web Service 的 PDF 附件
9 0
|
6月前
|
前端开发 算法 JavaScript
Golang 语言 Web 框架 beego v2 之模板(下)
Golang 语言 Web 框架 beego v2 之模板(下)
48 0
|
6月前
|
SQL 缓存 开发框架
Golang 语言 Web 框架 beego v2 之模板(上)
Golang 语言 Web 框架 beego v2 之模板
28 0
|
6月前
|
BI 数据安全/隐私保护
SAP ABAP 生成 PDF 的几种技术综述
SAP ABAP 生成 PDF 的几种技术综述
100 0
|
6月前
|
存储 XML BI
如何把 SAP ABAP 系统里一张数据库表的内容,显示在 Adobe PDF Form 里试读版
如何把 SAP ABAP 系统里一张数据库表的内容,显示在 Adobe PDF Form 里试读版
63 0
|
3月前
|
BI
SAP ABAP 显式增强技术之 New BAdI 的实战介绍 - 如何创建和激活增强实现试读版
SAP ABAP 显式增强技术之 New BAdI 的实战介绍 - 如何创建和激活增强实现试读版
20 0
|
3月前
|
BI
124. SAP ABAP 显式增强技术之 New BAdI 的实战介绍 - 如何创建和激活增强实现
124. SAP ABAP 显式增强技术之 New BAdI 的实战介绍 - 如何创建和激活增强实现
24 0
|
4月前
|
开发框架 Python
Web 框架 Flask 快速入门(一)flask基础与模板
🌴 Flask基础和模板 1、web框架的作用 避免重复造轮子,app程序不必关心于服务器的沟通方式,而专注于核心的业务逻辑实现。 稳定,可扩展性强
43 0
|
4月前
|
Java
Java 读取 Excel 模板,将数据填入Excel表格,后转换为PDF文件(实用)
Java 读取 Excel 模板,将数据填入Excel表格,后转换为PDF文件(实用)
99 0