cancel
Showing results for 
Search instead for 
Did you mean: 

REST to IDOC scenario(REST sender)

buddhika_krishantha
Active Participant
0 Kudos

Hi,

I'm trying to expose IDOC as a REST service, which means 3rd party can send data to REST service and it will create and IDOC in SAP system. I have used the external definition to configure the same.

May I know the element name and the namespace name to use in the REST sender channel?

I have configured as below, please let me know anything wrong with this configuration.

External Definition -

Operation Mapping -

REST sender-

View Entire Topic
azael_navarro
Active Participant
0 Kudos

HI Buddhika,

This looks correct, but please test and if the namespace is wrong set the sender interface namesapce.

Even please, review the next step by step document:

https://blogs.sap.com/2016/01/15/example-of-sender-rest-adapter-in-pi-74/

Tip: if you see issues with your XSD, then open test tab, copy the IDOC xml, and convert that new XML into a new XSD, the import it into PI again. Here you can convert XML to XSD, just if is required: https://www.liquid-technologies.com/online-xml-to-xsd-converter

Regards

buddhika_krishantha
Active Participant

Hi Azael,

Thanks for your valuable comment. In here I'm directly using IDOC in target operation in operation mapping, not a service interface. Anyidea how to do the configuration in sender channel?

azael_navarro
Active Participant
0 Kudos

Hi bkrishantha

Try the next configuration, in my opinion, could be the same configuration instead of Service interface you use the IDOC information:

  • Element Name: IDOC_Name (tip test what is the correct idoc name IDOC.IDOC or only IDOC single name)
  • Element Namesapce: IDOC namespace (this namespace is standard)

If this helps you please mark as resolved, if you have doubts feel free to ask me,

Success

buddhika_krishantha
Active Participant

Hi Azael NAVARRO JIMENEZ,

Thanks for your prompt response. I will check and get back to you. 🙂