Skip to Content
author's profile photo Former Member
Former Member

ADS-SAP PO 7.4 Single Stack Integration

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2016 at 04:14 PM

    bringing to top again..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2016 at 09:06 PM

    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.

    An Insight into Adobe Document Services (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-8a3076440b6e?QuickLink=index&…

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.