on 07-30-2015 6:58 AM
Hi,
I have one requirement in sftp i need to pass dynamic file name as field name.
how to achive this can anyone tell.
Thanks.
use the UDF as mentioned above and enable dyanmic parameters - file Name in SFTP adapter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhagya,
as per my understanding, if file name is "abc" then target field should be create as <abc></abc>
if that is correct, u can handle do map as below
dynamicconfig(udf)------ again UDF(as per below link)------target
the above link is not exact , i hope u can customize little bit
BR,
Maheswarareddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhagya,
You can achieve this using UDF:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
String Outputfile = conf.put(key,a);
return Outputfile;
Assign this Output of this UDF to the required Target field.
Also ensure to Enable ASMA in SFTP Channel for Filename...Refer:
Regards,
Azhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
6 | |
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.