Skip to Content
0
Aug 03, 2006 at 02:44 PM

Runtime Constant in XSLT :-(

55 Views

Hi together,

I have one problem with constant at the runtime.

The tag <RCVPRN> is empty, but I need this for my IDoc communication.

In the SAP help stands this:

Runtime Constants

$ReceiverService

Service on the receiver side that receives the message. For example, the name of a business system.

As of SAP XI 3.0, use this constant instead of the constant RECEIVER_SYSTEM used previously.

Yes

See also: Service

If you want to access one of the constants in the XSLT program, you first have to declare the constant as a parameter, for example:

<xsl:param name="MessageId" />

In my XSLT mapping I have this:

┬ů

<RCVPOR>empty</RCVPOR>

<RCVPRT>LS</RCVPRT>

<xsl:param name="ReceiverService"/>

<RCVPRN>

<xsl:value-of select="$ReceiverService"/>

</RCVPRN>

</EDI_DC40>

┬ů

But during the runtime the constant is empty ­čśö

┬ů

<RCVPOR>empty</RCVPOR>

<RCVPRT>LS</RCVPRT>

<RCVPRN />

</EDI_DC40>

┬ů

Have you an idea for my problem?

Bye

Stefan