Skip to Content
0
Mar 27, 2006 at 07:01 PM

Variable substitution in XI (7.0 version).

21 Views

Maybe you could give us a short hint regarding an error we are getting during the variable substituion in an outbound file adapter.

How can we specify a namespace in the variable substituion?

Without namespace this is working well, but we don't know how to specify the namespace.

We get this error essage: #2006-03-17 15:29:07 CET: Message processing failed: Error during

variable substitution:com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: FileName

Here comes our file:

<?xml version="1.0" encoding="UTF-8" ?>

http://sap.com/xi/GMStoreConnectivity">

<GMFileHeader> <StoreNumber>0000002101</StoreNumber> <FileName>PluTxn</FileName> </GMFileHeader> <UpdateType>1</UpdateType> <PLU>000000000000610733</PLU> <RetailPrice>0.99</RetailPrice> <QuantityDescription>BX</QuantityDescription> </ns1:GMPluTxn>

We set the flag 'enable variable subsitution' and specified the filename

variable as follows:

FileName payload:ns1:GMPluTxn,1,GMFileHeader,1,FileName,1

The FileName variable is used in the File Name Scheme field:

%FileName%.asc

Thanks in advance.