cancel
Showing results for 
Search instead for 
Did you mean: 

XML File to RFC - Content Conversion

Former Member
0 Kudos

Hi,

My scenario is: File Sender To RFC Recevier, my file is an .XML and I want to receive this file in a single line and send to RFC. Like this:

- MT_File_Sender < -


> - Z_RFC_RECEIVER

- RecordSet

- ROW <----


> - ROW.

My process logic is inside RFC, I need just read the Xml file and send to RFC. How can I do this in Content Conversion? Any suggestions?

Thanks and Regards,

Maicon.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

The PI version is 7.0.

Is there some possibility to do this without Java or XSLT Mapping?

Thanks.

Maicon Rosa.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>>Is there some possibility to do this without Java or XSLT Mapping?

No. You have to use one of those mappings to achieve this in pI 7.0.

Former Member
0 Kudos

Ok I will try.

But, My XML structure is very hard, Do I need the correct structure to create Data Type in Sender Side?

I didn't have the XSD to import in External Definitions.

Thanks,

Maicon.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>my file is an .XML and I want to receive this file in a single line and send to RFC.

What PI version do you use? if you are using PI 7.1 then it is very easy. Use COPYXML functionality. Simply right click the required node in source and select return as xml in the dropdown menu. This will return xml.

Former Member
0 Kudos

Hi Rosa,

check the below links :-

this be done using the standard Graphical Mapping :-

/people/jyothi.anagani/blog/2010/06/17/convert-the-input-xml-to-string-in-pi-71-using-standard-graphical-mapping

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

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

Regards,

Rohit

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

my file is an .XML and I want to receive this file in a single line and send to RFC.

If you are using PI 7.1

1.) In message mapping, right click the root node of your source message and then click "return as xml".

If you are using PI 7.0 and below, you need to use Java Mapping

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

Hope this helps,

Mark