cancel
Showing results for 
Search instead for 
Did you mean: 

Convert the IDOC XML file into single string?

Former Member
0 Kudos

Hello All,

I have a scenario, where i need to conver the IDOC XML into single string, to send it to target.

Please let me know how can we achive this, I dont know java coding.

Please help me out to write the java code.

Thanks and Regards,

Chinna

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can try ABAP mapping using standard class CL_RPE_CONVERT

Kind regards,

Radek

sunilchandra007
Active Contributor
0 Kudos

Hi Chinna,

You can do this in two ways -

1. Java mapping

https://wiki.sdn.sap.com/wiki/display/XI/JavaMapping-ConverttheInputxmlto+String

https://wiki.sdn.sap.com/wiki/display/Snippets/JavaMapping-ConverttheInputxmltoString

2. XSLT mapping

/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping

Regards,

Sunil Chandra

Former Member
0 Kudos

Hello All,

I like to use the java mapping code that are there in the links.

i dont have NWDS tool, how can i store the code and import it into mapping.

Please help me out.

Thanks and Regards,

chinna

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

if you dont have NWDS not a problem download eclipse (available with free download),then add jar aii.map.api jar file to the project and create one java clss and add the code to that class and genarate jar file and import it in to PI as a external Imported Archieves.

then select JAVA class in Interface mapping and use it.

Regards,

Raj

Former Member
0 Kudos

This message was moderated.

former_member200962
Active Contributor
0 Kudos
i dont have tools to convert, Please do this favaor

In that case i would suggest you go for XSLT mapping.....can even be developed in a Notepad.

Requsting documents via email is not permitted on SDN and action may be taken against you and/ or the one who communicates you through emails....please read the Ru[Rules Of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]

Regards,

Abhishek.

Former Member
0 Kudos

sorry about the reply,

i will not ask to send it on mail......... can you please send any example on xslt mapping to send the XML in single string.

Thanks and Regards,

Chinna

santhosh_kumarv
Active Contributor
0 Kudos

u really dont need an IDE like NWDS for that java mapping..... if you have JDK installed on ur m/c u can save the code as .java file using notepad and compile it... you can google to find how to execute the java code....

once u have the class file you can .zip it and import it in IR.

~SaNv...

Former Member
0 Kudos

Refer the following link-

http://wiki.sdn.sap.com/wiki/display/XI/WholePayloadtoaXML+field

Former Member
0 Kudos

Thanks for the reply,

i want to convert the payload into string, so please send link or code for it.

Thanks,

chinna

Edited by: chinnasapxi on Nov 18, 2009 1:52 PM