Skip to Content

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.

/wp-content/uploads/2014/05/clipboard1_454390.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.

/wp-content/uploads/2014/05/clipboard2_454394.png

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

/wp-content/uploads/2014/05/clipboard3_454395.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.

/wp-content/uploads/2014/05/clipboard4_454396.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,

/wp-content/uploads/2014/05/clipboard5_454397.png

 

Choose “XML Schema”:

/wp-content/uploads/2014/05/clipboard6_454398.png

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

/wp-content/uploads/2014/05/clipboard7_454399.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

/wp-content/uploads/2014/05/clipboard8_454400.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:

 

/wp-content/uploads/2014/05/clipboard9_454401.png

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

/wp-content/uploads/2014/05/clipboard10_454402.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.

/wp-content/uploads/2014/05/clipboard11_454403.png

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

/wp-content/uploads/2014/05/clipboard11_454403.png

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

/wp-content/uploads/2014/05/clipboard12_454405.png

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

/wp-content/uploads/2014/05/clipboard13_454412.png

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

/wp-content/uploads/2014/05/clipboard14_454413.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.

 

 

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Kapil Anand

    Hi Jerry Wang.

    Thanks for writing such wonderful blog, i have implemented this web service concept in my current project for replacing smart form to Adobe form.

    I have one query regarding movement of web service and document template from Development environment to Test/Production environment.

    For Web service i have created TR through report CRMOST_TRANSPORT  and for document template i have created TR through report CRM_KW_TEMPLATE_TRANSPORT and moved it test system, but only customization entries got created but structures, function groups, functions modules, and the Web services are not created.

    I have seen many blog and SAP Note but did not get clear idea how to make it happened in Test/PRD client.

    In one blog some one has replied that we need to do it after-import method to make structures, function groups, functions modules, and the Web services.

    Can you please provide clear step after TR import what action need to perform.

    I even can not see web service in SICF transaction/ WSCONFIG/ WSADMIN/ SOAMANAGER.

    Same was working fine in development system. There is no entry in web service related table eg.

    srt_registry/ srt_registryt/ srt_reg_operat/ srt_reg_bind/ srt_reg_config

     

    Waiting for your expert solution 🙂

     

    Regards,

    Kapil

     

     

     

    (0) 

Leave a Reply