Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Variable Substitution in Receiver File Channel

Hi All,

Could you kindly help me with this?

Mine is File to File Scenario. ECC drops a XML file in AL11 directory and i send that file using FTP to a third party system. There is no mapping involved and i use ICO. I need to get a value from the payload dynamically for using it in my file name.

When i tried to use Variable Substitution Method i get this error : VariableDataSourceException: Caught SAXException while parsing XML payload: Content is not allowed in prolog.

This is the reference i have given in my variable substitution : payload:customerelement,1,customer,1,sender,1,dealercode,1

and my XML structure is as below and i am trying to access the dealercode field in the XML.

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

-<ns0:CustomerElement xmlns:ns0="http://www.xxxxxx.com/customer">

<recordCount>34</recordCount>

<Customer>

<Sender>

<transmitDate>ddmmyy</transmitDate>

<dealerCode>N050</dealerCode>

<DMSSystem>ABC</DMSSystem>

<DMSReleaseNumber>1.0</DMSReleaseNumber>

</Sender>

Former Member
Former Member replied

Thanks for your time. I had to write an adapter module to achieve this functionality.

Below link was of great help.

http://wiki.scn.sap.com/wiki/display/Snippets/Dynamic+file+name+in+a+File+to+File+pass+through+scenario

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question