cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass RFC fields into xml string

Former Member
0 Kudos

Hello Friends,

I am working on a SFDC integration with SAP R/3.

On source side I am using RFC (I have three rfcs master,customer,sales.) to trigger sap data and on receiver side it is enterprise wsdl.

rfc is having many fields like knnur,bukrs,name1etc and on target side wsdl (request) is having two fields only i.e. master type and xmlfilestring.

In mastertype field it should have which type of rfc it is like master,customer or sales and in xmlfilestring it should have the rfc fields(payload).

Can any one suggest how to pass these all rfc fields into xmlfilestring fields.

do i need to do java mapping or udf can help?

If any one have blog or code then it will help alot.

Regards,

Jayesh.

9916980996.

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

if you are on PI 7.1 then , the blog link rahul will solve your req

elase you have to write XSLT mapping or JAVA mapping.

Regards,

Raj

Former Member
0 Kudos

Thanks Rahul and Raja.

I am using PI 7.0.

I have to transform RFC data as a XML structure to xmlfilestring field.

(but i think we can pass the values only and not the complete XML structure.)

Do let me know if anybody knows this or suggest how to acchive it.

Regards,

Jayesh.

former_member200962
Active Contributor
0 Kudos
but i think we can pass the values only and not the complete XML structure

It is very much possible to send the entire XML structure in string format using XSLT mapping...just make a search in SDN with CDATA and you will find the references....or you can also take this blog as a reference

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

former_member181985
Active Contributor
0 Kudos

As other SDNers suggested, you need to use Java or XSLT mapping.

The concept is to put the RFC XML data in CDATA tags.

stefan_grube
Active Contributor
0 Kudos

> (but i think we can pass the values only and not the complete XML structure.)

Could you please first figure out, what the receiver of the message expects?

There are various possibilities and it is not a good idea to try to guess.

The best approach is asking for an example XML structure for request and response.

Former Member
0 Kudos

Thanks to all.

SFDC have changed the structure as the client dnt want hardcoded things.

nw I can do field mapping.

Thanks alot again.

Regards,

Jayesh.

Answers (2)

Answers (2)

Former Member
0 Kudos

Tnx

RKothari
Contributor
0 Kudos

Hello,

Check the below mentioned blogs:

/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

-Rahul