03-30-2016 11:48 AM
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
03-30-2016 12:13 PM
With this requirement, I would rather consider Web Services more than IDOC?
Regards,
Raymond
04-01-2016 1: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
04-01-2016 1: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
04-01-2016 10:39 PM