cancel
Showing results for 
Search instead for 
Did you mean: 

Custom messages using the std IDOC Namespace?

Former Member
0 Kudos

Hi,

I am facing an unique problem. My Client's partner is sending me custom IDOC messsages in the IDOC-XML format over a HTTP channel (XI protocol - this is a PI to PI integration).

In my system I have to use the xsd file of the IDOC message to create the my Service interfaces. Although I can create interfaces with the same name as the IDOC I cannot create it under the std IDOC namespace ->urn:sap-com:document:sap:idoc:messages. PI Does not allow me define this namespace manually too (reserved NS). Since I am going to receive messages from the partner with the namespace "urn:sap-com:document:sap:idoc:messages" I will not be able to create a receiver determintion with those parameters...

Are there are work arounds for it...

I Would really like to avoid - >

1) USe my Pi to connect to the partners ECC system to downlod the ZIDOC structure

2) Ask my partner to map that IDOC-XML to some other message in a different namespace and then send it to me.

regards,

Arvind R

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>1) USe my Pi to connect to the partners ECC system to downlod the ZIDOC structure

you can create the ZIDOC on your XI system (just for reference)

and download it to IR from your XI

Regards,

Michal Krawczyk

Former Member
0 Kudos

hmmm.really not keen on creating a custom IDOC just for the sake of importing it into PI... the custom message gets converted into a std idoc anyway....

I was hoping for a solution which involves changes in the IR itself...

regards,

Arvind R

Satyagadadas
Active Participant
0 Kudos

You can create XSD of that IDOC_XML, create data type them MT and MI. while creating MT clear the XML name space field.

Former Member
0 Kudos

Satya,

How exactly do I use the XSD of that IDOC_XML to create the DT??

The DT will have its own name and I cannot force it to have the same name as the IDOC - PREQCR.PREQCR02.... there is a period (.) in the name and DTs dont allow that.

regards

Arvind

Satyagadadas
Active Participant
0 Kudos

Using ALTOVA, you can create XSD,

Upload XML then go to menu DTD/Scehama->generate DTD/Schema

It will create xsd for you.

Satyagadadas
Active Participant
0 Kudos

And you said they are sening IDOC_XML to you through http, then how it is having namespace, it should be plain Idoc_xml

like

<?xml version="1.0" encoding="UTF-8" ?>

- <ORDERS05>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

***

Can you explain or give the format to better understand.

Answers (1)

Answers (1)

Former Member
0 Kudos

The answer is NO ...Cannot use the reserved namespace..