3 weeks ago
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 |
---|---|
55 | |
10 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.