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.


相关文章
|
8天前
|
缓存 JavaScript 前端开发
Web Workers与Service Workers:后台处理与离线缓存
Web Workers 和 Service Workers 是两种在Web开发中处理后台任务和离线缓存的重要技术。它们在工作原理和用途上有显著区别。
16 1
|
23天前
|
缓存 JavaScript 前端开发
JavaScript进阶 - Web Workers与Service Worker
【7月更文挑战第4天】JavaScript的Web Workers和Service Worker增强了Web性能。Web Workers处理后台多线程,减轻主线程负担,但通信有开销,受同源策略限制。Service Worker则用于离线缓存和推送通知,需管理其生命周期、更新策略,并确保安全。两者都带来了挑战,但也极大提升了用户体验。通过理解和优化,开发者能构建更高效、安全的Web应用。
|
7天前
|
中间件 数据库 开发者
解析Python Web框架的四大支柱:模板、ORM、中间件与路由
【7月更文挑战第20天】Python Web框架如Django、Flask、FastAPI的核心包括模板(如Django的DTL和Flask的Jinja2)、ORM(Django的内置ORM与Flask的SQLAlchemy)、中间件(Django的全局中间件与Flask的装饰器实现)和路由(Django的urls.py配置与Flask的@app.route()装饰器)。这些组件提升了代码组织和数据库操作的便捷性,确保了Web应用的稳定性和可扩展性。
|
17天前
|
缓存 前端开发 JavaScript
JavaScript进阶 - Web Workers与Service Worker
【7月更文挑战第10天】在Web开发中,Web Workers和Service Worker提升性能。Workers运行后台任务,防止界面冻结。Web Workers处理计算密集型任务,Service Worker则缓存资源实现离线支持。常见问题包括通信故障、资源限制、注册错误及缓存更新。通过示例代码展示了两者用法,并强调生命周期管理和错误处理的重要性。善用这些技术,可构建高性能的Web应用。
|
21天前
|
缓存 JavaScript 前端开发
JavaScript进阶 - Web Workers与Service Worker
【7月更文挑战第6天】JavaScript的Web Workers和Service Worker增强了浏览器的性能处理和离线功能。Web Workers处理后台计算,减轻主线程压力,但通信有开销,受同源策略限制。Service Worker则能拦截网络请求,支持离线缓存和推送通知,但其生命周期和权限管理需谨慎处理。通过理解它们的工作原理和限制,开发者能创建更流畅、更健壮的Web应用。
|
1月前
|
JavaScript 前端开发 定位技术
Rest风格WEB服务(Rest Style Web Service)的真相
Rest风格WEB服务(Rest Style Web Service)的真相
54 1
|
2月前
|
XML API 网络架构
Web Service和Web API理解和使用场景
**Web Service**是一种基于网络、使用SOAP协议和XML的数据封装的重服务,适用于跨平台、跨语言的企业系统集成,尤其在安全性和事务处理严格的场景,如银行系统。而**Web API**是轻量级的HTTP接口,常遵循REST原则,使用JSON格式,适合移动应用、开放平台和微服务间的通信,因其简洁高效。选择哪种取决于项目需求,Web Service适合复杂交互,Web API则流行于现代Web应用。
|
2月前
|
缓存 应用服务中间件 数据库
Python Web Service开发及优化
随着互联网的快速发展,Web服务已成为现代技术的核心。Python作为一种功能强大且易于学习的编程语言,在Web服务开发领域占据着重要地位。Python Web服务开发的重要性在于它能够提供高效、可扩展且易于维护的解决方案。本篇博客将探讨如何使用Python的Flask框架、Gunicorn WSGI服务器和Nginx网页服务器来实现高性能的Web服务。
|
1月前
|
IDE Java 编译器
使用Java分割PDF文件
使用Java分割PDF文件
29 1
|
9天前
|
JavaScript Java
Java 将Markdown文件转换为Word和PDF文档
【7月更文挑战第5天】Java中使用`Spire.Doc for Java`库可方便地将Markdown转换为Word或PDF。基本步骤包括导入模块,创建`Document`对象,加载Markdown文件,然后保存为目标格式(`.docx`或`.pdf`)。若遇到`Invalid UTF-8 stream`错误,需确保Markdown文件是UTF-8无BOM编码。页面设置可通过`PageSetup`类调整。注意,实际应用会依据具体需求和环境有所调整。