cancel
Showing results for 
Search instead for 
Did you mean: 

Change FileName File/FTP Adapter

Former Member
0 Kudos

Hi all,

I have a simple scenario File-To-File there is no mapping,so i've created it directly on Integration Directory, like this : https://wiki.sdn.sap.com/wiki/display/XI/FiletofilewithoutusingwithIntegration+Repository

I've have a requirement to change the file name to be saved by Receiver in accordance with a complex logic.

I know that the FileName variable can be manipulated like this: /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

But in my scenario I have no mapping, so I'm thinking about to implement a Module to change the FileName to be saved.

Does anybody suggest another way? Or implement a module is the best solution for this case?

I'm using PI 7.1

Best regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi all,

The requirement to change file name was changed and now I can calculate the new name after file has been saved on target directory, so my solution was to create a java program that contains this logic and the code to rename file. Now after processing I'm calling this program and works fine.

Best regards