Skip to Content
avatar image
Former Member

PDF document to send from SAP in IDOC

Hello,

I have a requirement in which an external application will send a sales order# based on which we would trigger output type and PDF file would be generated.

These PDF files needs to be displayed on the external web based application.

Can we send the PDF document by converting to Binary format ? or IDOC has limitation to send PDF data which is generated from Smartform/script.

Please let me know is there any other way we can achieve this.

Thanks

Ritesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Mar 30, 2016 at 11:13 AM

    With this requirement, I would rather consider Web Services more than IDOC?

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 01, 2016 at 09:39 PM

    Using IDoc makes no sense whatsoever in this scenario and I'm a bit confused why would anyone think it would be helpful.

    Raymond is right, use a web service. There is even detailed document available on SCN: Using a Web Service to get PDF content from SAP and display on a Web Page

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 01, 2016 at 12:47 PM

    Hello,

    Requirement is we have a third party application Magento(web based application) that would gives us a Sales order# through RFC and based on that we would trigger a output type that would generate a PDF.

    the same PDF document needs to be send to Magento so they could dispaly/download the same for end user.

    Thanks

    Ritesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 01, 2016 at 12:57 PM

    You can add a repeating segment where you send hex data as bytes. You have 1000 characters per line, so you could send 500 hexadecimal bytes as text. Or send 666 bytes with Base64 encoding (more work and not worth it though). Either way, it requires the equivalent coding on the other side.

    I would actually use a header segment, too, so you can pass file information and attach more than one document if need be. Look at E1EDKT1 and E1EDKT2. It's about text and they're not using the full width, but same concept...

    As an alternative, you may want to consider sending a MIME file instead of an IDOC.

    Wolfgang

    Add comment
    10|10000 characters needed characters exceeded