cancel
Showing results for 
Search instead for 
Did you mean: 

How to get constant value dynamically using XSLT mapping

Former Member
0 Kudos

Hi,

we have a requirment for a idoc to SOAP scenario. for the header we are using XSLT mapping and for the body we use graphical mapping. the body gets embedded in header which is then sent to target.

first we had a field in xslt mapping where

<RSITE xsi:type="xsd:string">XXXX</RSITE>

but now this XXXX(which was constant earlier) value will be changed based on location and should be passed from a field. how will we be able to read this value dynamically?

Regards

Deepika

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

You have to use the XSLT statements select and value-of

Check this example:

http://www.tizag.com/xmlTutorial/xsltvalueof.php

Regards,

ravi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use Value mapping in xslt with the help of java function.So depending upon the location you will get various values.Check the link for more details...

[http://help.sap.com/saphelp_nw70/helpdata/EN/55/7ef3003fc411d6b1f700508b5d5211/content.htm]

Regards,

Prakasu.M