cancel
Showing results for 
Search instead for 
Did you mean: 

comparing incoming file name having timestamp with system time.

Former Member
0 Kudos

Hi,

The scenario is File to FIle.

i have to read the incoming file name which will be having time stamp.

compare the time stamp with the system time .

if the difference in time is within specified time then send the file to target location,else send a mail that file is not placed in target location.

please enlight me on how this scenario can be done.

Thanks,

Akkasali.

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

Use dynamic configuration to read the file name , and use util.date package to read the sys date.

use subString function to split the date stamp value from File Name and Compare in UDF it self.

cal the receiver based on out come.

Regards,

Raj

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

if you mean the actual time stamp on the file and not the file name then ref: http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID2044216150DB12410233167314983393End...

else if you mean the time stamp on the file name itself then use dynamic configuration and then read the file name and do the further processing - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name