Skip to Content

Send PDF from one SAP syst. to another SAP system

Hi Experts,

Need your help on below requirement,

I have a PDF file (adobe form) in one SAP system (S1), now I need to send it to another SAP system(S2) and update few fields.
The solution I am trying right now is: first make the form interactive and send the Rawstring of pdf via ABAP proxy along with other shipment information from S1 to S2.

In S2 store the PDF raw data in one Ztable. Now I am able to read the raw data and convert it back to PDF, but the problem is in updating the pdf.

How can I update the fields in PDF?? I can not store PDF file in S2.

Any suggestions will be appreciated.



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Jun 29, 2018 at 01:16 PM

    Hi Sachin ,

    One of the feasibility is make the pdf as Xstring in s1 system by creating a function module type Remote call the same Remote Function Call from S2 system. now after your fields update in S2 system you can convert updated pdf into your Ztable .

    NOTE: you have to create the same function module skeleton(same import export and tables attributes ) in S2 system.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi ,

      Thank you.

      I am not facing issue in sending the Xstring from S1 to S2, I have already achieved that.

      After getting the Xstring of a PDF in S2 , How should I update the fields ??

      Not able to make it in readable format to edit it. Please let me know what should I do next?



  • Jul 05, 2018 at 10:58 AM

    The idea of using pdf as a data transmission method is odd to say the least. PDFs are not designed to be programmably readable objects. Depending how they're created they may just contain image data. It's certainly not something you should be using to hold data being sent from one system to another.

    If you're creating the pdf on one system, then presumably you're populating it with data from somewhere. Instead of sending a pdf, send that data to the other system. There, use the data, plus your additional data to create a new pdf.

    tl;dr send the data use to create the pdf, not the pdf.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 12, 2018 at 05:08 AM

    Any Suggestions for this issue??

    I am able to get the readable format of XML and convert it into internal table to update few fields.

    How can I get back the PDF now??

    Please refer above comments for more info.



    Add comment
    10|10000 characters needed characters exceeded

  • Jul 02, 2018 at 12:22 AM

    I think you can convert xtring to binary then binary to string ( there you can get data you want ) by below FM:



    Add comment
    10|10000 characters needed characters exceeded

    • I dont work much with adobe forms so idk much about it. I see there is a xml-base option for adobe forms interface but havent use it yet. As you update ztable from adobe, I think you may bind the node of adobe form with field in ztabe or you can send the xml back to S1, in S1 develop your own fm to read xml node and send to adobe as well.