cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc change into XML in PI

Former Member
0 Kudos

Hello @ll,

I need to convert an IDoc ORDERS05 into an XML Message within Enterprise Service Builder. The XML Message will be send via FTP to a Navision System later.

What are the required steps to accomplish that task?

I have already imported the IDoc ORDERS05 into PI Enterprise Service Builder.

I have opened the IDoc on the left side in the Message-Mapping dialogue. How do I convert it into a XML Message on the right side? Do I have to create a new Message-Type or a Data-Type and then copy the Source code from the IDoc to the new Message?

Is there any good tutorial or documentation on this issue?

Please help. I am totally new to this.

Thanks

Gorbi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gorbi,

Point1 :You dont need to create a data type or message type or message interface for IDOC. IDOC can be directly used in the message mapping as well as in interface mapping.

In your case, If you just want to convert your ORDERS05 idoc into xml format. You dont even need to create a message mapping or interface mapping.

Once IDOC is imported in IR, you can directly switch to the Integration directory and create follow the below steps to create your xml file.

In ID , you have to create

a Receiver File communication channel

One interface determination

One receiver determination and

One Receiver Agreement.

No sender Agreement.

For more details, you have documents link already provided above.

Thanks,

Pooja

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi @ll,

thanks for your help, i will try your solution, sounds really easy.

I keep you informed.

Thanks a lot!

Regards

Gorbi

Former Member
0 Kudos

Hi Gorbi

You can use the same IDOC as the File structure. Check with the guide given above

Do all IR steps MI (MM, IM)(optional) and ID steps (RA, ID, RD) and test it.

Thanks

Gaurav

Correction for IR & ID steps Thanks Pooja !!

Edited by: Gaurav Bhargava on Dec 17, 2008 1:25 AM

SudhirT
Active Contributor
0 Kudos

You need to create a idoc to file scenario. create data type,message type,interfaces,mapping and interface mappings. and routing,collaboration agreements in ID part.

thanks.

Former Member
0 Kudos

Hi,

you can directly use the same idoc on the target side also.

Map all the required fields from source to target

Configure the Receiver File Adapter it will generate the XML file without any content conversion required.

Refer this IDOC to File scenario :

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd...

regards

Ganga