Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8995

Re: Process a same file to 2 different target directories based on the timestamp

$
0
0

you can use dynamic configuration to set the directory name during the mapping.

 

You can use a udf to find which day it is..

 

Refer to below thread for sample code.

 

java - How to determine day of week by passing specific date? - Stack Overflow

 

1) enable ASMA sender file adapter

2) read filename in the mapping and parse date then find the week of the day using above code

3) set the dynamic directory name in mapping

http://wiki.scn.sap.com/wiki/display/XI/Dynamic+file+name+and+directory+in+Receiver+File+Adapter+-+summary+of+possibilities


Viewing all articles
Browse latest Browse all 8995

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>