cancel
Showing results for 
Search instead for 
Did you mean: 

ADS-SAP PO 7.4 Single Stack Integration

Former Member
0 Kudos

Hi All,

We have a requirement to convert PDF ( 6 pages) document into its equivalent XML.  This interface is as part of migrating from SAP PI dual stack to SAP PO single stack.

In SAP PI dual stack, the existing code is written by using ABAP mapping where the input is PDF and out put is its equivalent XML.  The ABAP mapping has  steps to  instantiate the variables ( PDF and XML) and calling  the Adobe Document Service and return the XML.

While calling the Adobe document services, the call  is using a RFC destination of type G and PDF object. This RFC destination has server, port and url.

PI Server : XXXXXX

Port :50000

URL : /AdobeDocumentServices/Config?style=rpc

At the end of the call, we are getting XML equivalent of PDF.

Now, the challenge is to replicate the set up by Graphical /  Java Mapping / UDF.

Also, If there are any pointers to call ADS from sAP PO, kindly point me towards the same.

Thanks

Subbu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Subbu,

  I guess you may have to achieve this requirement with a work around. You can take any of the following approaches in converting your PDF into XML.


First approach is to port the ABAP Class program into ECC and then create a FM/RFC out of it. Call that RFC program from PI using Java mapping which will return you the XML. You may to explore this option. Check the link for a sample code to call RFC from Java program https://scn.sap.com/thread/3475377

Second approach is to create a Java mapping to read the PDF and generate the XML. Check the following links on how to achieve this.

          How to read PDF file and convert into XML | SCN

          java code for PDF to XML conversion - Stack Overflow

Third approach is to install Adobe Document Services in the PO Java stack and make use of the web services that are available as part of it to convert the PDF into XML. You may have to again create Java Program to call the ADS web services to work on the Adobe Form. Please check the following links for more insights into ADS.

  

Example of the Use of an Interactive PDF Form - Using Java - SAP Library

Fourth, I think you may have already come across this using a Conversion Agent to convert PDF into XML in XI. Check the link for more information.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9913a954-0d01-0010-8391-8a3076440...

Please check and let us know if any of this approach helps you or if you achieved this requirement in a different way.

Thanks

Charan

Former Member
0 Kudos

bringing to top again..