Skip to Content
0
Oct 22, 2020 at 02:06 PM

Pass Dynamic Date Adapter Specific Message Attribute to Rest Receiver URL

149 Views Last edit Oct 22, 2020 at 11:25 PM 5 rev

Hi

I have created a UDF in ESR mapping to pass timestamp to URL patter in REST URL. The timestamp is being passed to Dynamic Configuration http://sap.com/xi/XI/System/Rest' name='TimeStamp'.

<SAP:DynamicConfiguration SOAP:mustUnderstand='1'>
<SAP:Record namespace='http://sap.com/xi/XI/Message/30/routing' name='SourceMessageTypeNS'>xxxxxxxxxxxxxxxxxx</SAP:Record>
<SAP:Record namespace='http://sap.com/xi/XI/Message/30/routing' name='InterfaceDeterminationHash'>xxxxx</SAP:Record>
<SAP:Record namespace='http://sap.com/xi/XI/Message/30/routing' name='SourceMessageType'>xxxxxxx</SAP:Record>
<SAP:Record namespace='http://sap.com/xi/XI/System/Rest' name='TimeStamp'>2020-10-22_235016</SAP:Record>
<SAP:Record namespace='http://sap.com/xi/XI/Message/30/routing' name='InterfaceFromOperation'>xxxxx</SAP:Record>
<SAP:Record namespace='http://sap.com/xi/XI/Message/30/general' name='senderAgreementGUID'>xxxxx</SAP:Record>
</SAP:DynamicConfiguration>

Under Pattern Variable Replacement I have added the Attribute Name

The interface is working fine but the TimeStamp is not being passed to the URL.

If I use Manual for the Value Source and add a static value it works fine.

We are on PI 7.31 SP22.

Any help/advice would be greatly appreciated.

Manny

Attachments