cancel
Showing results for 
Search instead for 
Did you mean: 

Forward file name from SFTP sender to FTP receiver (no message mapping)

christian_pichler
Participant
0 Kudos

Hello!

My goal is to forward a file and its file name from an SFTP sender to an FTP receiver. I already tried ASMA but the system only forwards the dummy value taken from "File Name Scheme". We do not use any message mapping. It's just a file forwarding. I also found an information regarding variable substitution but I don't know how to access the content of the value "File Name" (test_invoices.XML):

<SAP:DynamicConfigurationxmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Recordnamespace="http://sap.com/xi/XI/System" name="FileName">test_invoices.XML</SAP:Record><SAP:Recordnamespace="http://sap.com/xi/XI/Message/30/general" name="senderAgreementGUID">5a1f6e3d0d88387596b555d0cfc31d42</SAP:Record></SAP:DynamicConfiguration>

Does anyone know how to solve this problem?

Thanks in advance,

Christian

Accepted Solutions (1)

Accepted Solutions (1)

former_member190293
Active Contributor
0 Kudos

Hi Christian!

It's worth mentioning that SFTP and File(FTP) adapters use different namespaces for ASMA attribute "FileName".

Just change default namespace "http://sap.com/xi/XI/System" to "http://sap.com/xi/XI/System/File" in SFTP adapter properties and, I guess, your File adapter will be able to use that attribute for setting the file name.

Regards, Evgeniy.

christian_pichler
Participant

Hi Evgeniy,

thanks a lot for your answer which was the solution for my problem.

Regards, Christian

Answers (1)

Answers (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Hi ,

ASMA should work in you'r case . Can you show the complete sender / reciever channel config ?

Br,

Manoj

christian_pichler
Participant
0 Kudos

Thank you, Manoj! Evgeniy provided the answer to my problem.