on 2025 Jan 20 10:13 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.