on 06-07-2016 7:50 AM
Hi All,
I have an urgent requirement where I need to add .pgp to source file name.
In my case we have dynamic file name logic ( ASMA and file name as "*")
Suppose form source they are sending 123.txt I should send it as 123.txt.pgp
Code:
try
{
String MyFileName= "";
DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
MyFileName = conf1.get(key1);
MyFileName =fname;
conf1.put(key1, MyFileName);
return MyFileName;
}
catch(Exception e) {
String exception = e.toString();
return exception;
}
with out java mapping will it be possible? please suggest.
Thanks.
Gayathri.
Hi All,
The issue got resolved by changing the statement in UDF like below
MyFileName =fname + " .pgp";
Thanks
Gayathri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gayathri,
you can create a message mapping with dummy structure (as it is just a pass through) and add the udf in the message mapping.
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.