Hi everyone,
Some situations, we need to write the output files on dynamic folders on SFTP.
So now, I would like to share the way to config dynamic output folder on SAP PO.
Step 1: Create UDF to set path of output folder

try
{
String pathString = "YOUR_TEXT";
DynamicConfiguration conf =
(DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
pathString = pathString +plDate;
conf.put(key, pathString );
return plDate;
}
catch (Exception exception)
{
return plDate;
}
Step 2: use created UDF

Step 3: Config ASMA in Receiver Channel

Now you can send file to dynamic output folder base on the date of integration transaction.

Hope this blog can help you.
Bye bye and see you again 😀
Giang Nguyen.