on 09-17-2015 2:02 PM
Hello,
In my receiver File/FTP adapter I am using the Additional Parameters to execute an FTP site command. Name and value look like this:
The command works except for the fact that the file is placed on the target destination with the literal file name "test.xml". I would like to use a variable here, so I can pick up the file name used in the sender adapter, like when using the command line with %f.
Is it at all possible to use a variable in the Additional Parameters?
Best regards,
Suzanne
Hello,
Why do you need to use additional parameter for this? Simply go to Advanced tab, and in ASMA settings, check file name for the case of receiver channel. The file will come unaltered.
Note : in the file name of Target tab maintain it as "*".
Regards,
Souvik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Souvik,
We are connecting to an XFB server. The file name in the Target tab will have to be used for the XFB flow name which is static. The site command is meant to 'announce' the file name and place the file with the correct name on the correct flow. This is working apart from the dynamic part.
Currently the whole process is running in a script on the server. The idea is to get rid of the script and do it purely by PI config.
Regards,
Suzanne
Sorry for the late reply!!
In the sender channel in MTB, please mention:
CallSAPAdapter Local Enterprise Bean 0
This will effectively call the SAP Adapter from the sender side, and as you said, we have in Source for the File name as *.xml, hence it will call the file name of sender adapter.
Now, in the receiver channel, if you mention for file name *.xml, this should also work. However, if you want to use additional parameters, then you can use a variable as %f in file name, and in additional parameters you can mention its value as *.xml.
This should work then.
Regards,
Souvik
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
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.