cancel
Showing results for 
Search instead for 
Did you mean: 

Converting IDOC-XML to S/MIME

santhosh_sontha2
Explorer
0 Kudos


Dear Experts,

I need to send vendor payments IDOC(PAYEXT) to thrid party using https post and IDOC-XML should be in SMIME(signedMIME).

Below are the steps:

  1. PAYEXT IDOC XML is to be in S/MIME(Signed with our key) format.
  2. S/MIME data to be base64 encoded.
  3. URL for posting payment to bank will be  

https://dumy.com/invoke/FMSPartnerInterface.inbound/httpGateway?DataType=PAYMENTS&DataFormat=IDoc-Xm...dGVzdCBtZXNzYWdl

Please note that the data in red will be valid SMIME
file which has been base64 encoded.  The reason for the base64 encoding
requirement is to prevent the data from being URL encoded during the
transmission over the internet.

My question is how can we acheive this in any of standard adapter or using java mapping?

Regards,

Santhosh

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Santhosh,

There are something that i havent got clear in your question.


1.PAYEXT IDOC XML is to be in S/MIME(Signed with our key) format.

There is a SAP addon to encrypt your message. Check this Shabarish's blog

S/MIME is a protocol for mail communication, i don't understand why you need it.


2.S/MIME data to be base64 encoded.

As far as i know there is not a module available to do this, then you would need to via java mapping or UDF.


3. URL for posting payment to bank will be  

https://dumy.com/invoke/FMSPartnerInterface.inbound/httpGateway?DataType=PAYMENTS&DataFormat=IDoc-Xm...dGVzdCBtZXNzYWdl

This seems to be a dynamic URL, may be a restful service?. The number of parameters can change?,

For six parameters you can use dynamic configuration, if you want more there is an exceptional solution in this thread http://scn.sap.com/thread/3241568

Hope this helps.

Regards.

santhosh_sontha2
Explorer
0 Kudos

This is solved with PGP Encryption Addon.

Answers (0)