Purely Offline Adobe Scenario for BAPI call
Recently we had a requirement wherein the client wanted a purely offline adobe form to trigger a BAPI call and save back the BAPI results to the form after execution of the call.
By “purely offline” I intend to say that though the end user will have connectivity to the server running the web service, he will not have any live webdynpro application/environment to host the pdf.
The adobe form (saved on a user’s local machine) should be opened, input values for a BAPI call need to be entered in the form, the BAPI should be triggered via a button (or any other suitable UI element) in the form, the BAPI output should be obtained back in the form – all of this without the support of any WebDynpro/Portal/VC application i.e. the adobe form should be standalone.
I am sure many people out there must have already done this scenario, but I wanted to consolidate all the steps in one single place so that it might help others seeking solution for similar requirements. Experts please take this as a beginners blog! 🙂
Pre-requisites for the application:
ACF, Adobe Livecycle Designer and NWDS needs to be installed on the client system where the application is to be developed.
The end user must have Adobe Reader.
Note : Ample documentation and version details have been provided in SDN for the above.
So here we go with the implementation:
1) Create a Web Service for the required BAPI/RFC in the Web Service Browser of the R/3 server. The Web Service Browser can be reached at :
http://<server* FQDN>:/sap/bc/bsp/sap/WebServiceBrowser/search.html</u></p><p>A WSDL will be created; this will be used in the adobe form.</p><p>2)* Open NetWeaver Developer Studio; create a new WebDynpro Project / DC.
3) In the above project create a new application, corresponding component, window and view.
4) Open the view; insert an Interactive form UI element in the view Layout.
5) Open the interactive form for editing.
6) Create a new Data Connection for the WSDL (generated in the first step) as shown below :
!https://weblogs.sdn.sap.com/weblogs/images/39664/datacon1.JPG|height=width: 493px; height: 296px|alt=image|width=550|src=https://weblogs.sdn.sap.com/weblogs/images/39664/datacon1.JPG|border=0!”
Select required operations from the Web Service and click “Finish”: