Skip to Content
avatar image
Former Member

Can I use a variable in Additional Parameters

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 17, 2015 at 01:30 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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