on 12-12-2011 10:49 AM
In proxy to file scenario, need to create dynamic target file based on Timestamp
like Order_ yyyyMMddHHmmssSSS_status.xml?
Could you help hpw to create ?
thanks
roopa......
hi roopa143,
In proxy to file scenario, need to create dynamic target file based on Timestamp like Order_ yyyyMMddHHmmssSSS_status.xml?
Order_ yyyyMMddHHmmssSSS_status.xml
step1:
constant(order_) + Timestamp udf -> concat ->status ->concat->constant (.xml) -> concat-> Dynamic conf udf-> target node.
Udf-1: Dynamic conf: (dynamic target file)
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key,a);
return "";
udf-2: Timestamp: (yyyyMMddHHmmssSSS)
String DATE_FORMAT_NOW = "yyyyMMddHHmmssSSS";
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
return sdf.format(cal.getTime());
step2:
in receiver file communication channel, we need to enabel "ASMA properties "in "Advanced TAb".
thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
chk this:
http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.