cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping logic

Former Member
0 Kudos

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......

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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,

Former Member
0 Kudos

Thank you very much for your help amith and bhavani

roopa.....

Former Member
0 Kudos

chk this:

http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot