cancel
Showing results for 
Search instead for 
Did you mean: 

How do I edit the timestamp of the SFTP Adapter in SAP PO?

0 Kudos
121

Hi everyone,

Is there a smart way to customize the SFTP adapter scenario where I can change the standard function Timestamp for the file name from out-kostenstelle-YYYYMMTT-HHmmss.xml to out-kostenstelle-YYYYMMTT.xml? 

We are using PI 7.5 single stack. 

Kind regards,

Miguel

View Entire Topic
anupam_ghosh2
Active Contributor

Hi Miguel,

In this case I am assuming you are using SFTP sender adapter. On advanced tab you can set the ASMA filename property on. Then in message mapping/java mapping/adapter module(receiver adapter) you need to access the file name using default Namepace ""http://sap.com/xi/XI/System/File" as shown in this sample code.

Change the filename in the UDF/java mapping/adapter module from out-kostenstelle-YYYYMMTT-HHmmss.xml => kostenstelle-YYYYMMTT.xml using simple substring function of java. 

Use ASMA in target side adapter also. 

 

Regards

Anupam

 

0 Kudos

Hi Anupam,

Thanks for replying. I will give it a shot.

Kind regards,

Miguel