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.
(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.
Click the Download button first for “Download Schema”, a pop up dialog will appear, save it locally.
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.
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,
Choose “XML Schema”:
Load the local xsd schema file with default settings unchanged and click Finish button:
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
(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:
Follow the path Use “DataConnection”->Output->ZjerryProdWs ->ProductId:
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.
Finish the template layout design by adding several other fields and bind them to other fields in Data Connection.
(5) Save the templage as xdp form via “Save as” menu in Adobe Designer, then upload it back to CRM via Upload button.
(6) Now go to CRM product application, create a new attachment for a given product, select you form template in popup:
And ADS will render it as a PDF document for you:
Trouble shooting
The idea of trouble shooting is exactly the same as those explained in Create Webservice enabled word document in attachment assignment block.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2721605/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CRM如何建立支援Web Service的WORD模板Web
- 如何在SAP CRM裡建立和消費Web serviceWeb
- 如何處理SAP CRM Web Service錯誤 - Virtual Interface Method XXXX not supportedWeb
- 如何讓你的SAP CRM應用支援附件上傳
- 如何使用FastReport.Service.dll建立Web服務ASTWeb
- 最詳細的 SAP ABAP Web Service 建立和消費步驟講解Web
- 如何使用SAP Cloud Application Studio建立一個PDF formCloudAPPORM
- 如何建立自己的SAP CRM產品主資料search scenario
- 如何在 SAP BTP 上建立以及消費 Business Rule Service
- 將SAP CRM WebClient UI的表格匯出成PDFWebclientUI
- 使用soapUI消費SAP Cloud for Customer的web serviceUICloudWeb
- 如何處理消費SAP ABAP Web Service時遇到的Unauthorized錯誤WebZed
- 使用nodejs消費SAP Cloud for Customer上的Web serviceNodeJSCloudWeb
- 在Google的GKE上建立支援Internal Load Balancer的ServiceGo
- SAP CRM settype的建立,背後發生了什麼
- SAP CRM note建立按鈕被禁用的原因分析
- 如何使用程式碼建立和讀取 SAP CRM 訂單的 Text 資料
- 如何用SAP WebIDE的Fiori建立嚮導基於ABAP OData service快速建立UI5應用WebIDEUI
- SAP CRM WebClient UI 支援的一些 url 引數WebclientUI
- Hybris service layer和SAP CRM WebClient UI架構的橫向比較WebclientUI架構
- 如何使用SAP CRM Marketing Survey建立一個市場問卷調查
- CRM的行程支援是如何實現的?行程
- 使用Fiori Elements建立的SAP UI5應用,如何支援編輯功能UI
- SAP不同的產品是如何支援使用者建立自定義欄位的
- SAP ABAP OData 服務如何支援建立(Create)操作試讀版
- 如何監聽SAP CRM BOR事件事件
- 如何使用ABSL程式碼呼叫Web serviceWeb
- Android中的Web ServiceAndroidWeb
- 使用ABAP程式碼給SAP CRM Business object建立附件AttachmentObject
- 如何在 SAP BTP 平臺 ABAP 程式設計環境裡消費基於 SOAP 的 Web Service程式設計Web
- 如何將SAP WebClient UI的表格匯出成PDFWebclientUI
- 建立windows serviceWindows
- 給 SAP BTP 建立的 Java 應用新增 Custom Event Handler 支援建立功能Java
- 如何選擇Web前端模板引擎?Web前端
- 如何選擇 Web 前端模板引擎?Web前端
- 如何在Kubernetes裡建立一個Nginx serviceNginx
- 使用SAP CDS view快速建立一個Fiori應用,管理Service OrderView
- 如何建立最簡單的 SAP Kyma FunctionFunction