Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PDF document to send from SAP in IDOC

Former Member
0 Kudos

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

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

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

Regards,

Raymond

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Jelena
Active Contributor
0 Kudos

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: