cancel
Showing results for 
Search instead for 
Did you mean: 

Need UDF function for the FileName at Reciever level.....

Former Member
0 Kudos

HI

Need some help here....

I want to write an UDF function to concatenate a string with Timestamp and pass the same to the Recieiver level......like as below..

TESTFILE_YYYYMMDDHHMMSS

Please help ...if anybody already implemented ...

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi sabu,

please seach SCN before posting Question because it's very common Query  ...

Thanks,

Sankar

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

then you just need to use the code to create dynamic configuration as per my blog:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2005/11/10/xi-the-same-filename-from-a-sende...

in your UDF (code in the blog)

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi.

Pls Try this udf.

sValue = Constant Value("TESTFILE")

import java.text.SimpleDateFormat;

import java.util.Date;

public static String concatenate (String sValue){

String DATE_FORMAT = "YYYYMMDDHHMMSS";

Date date = new Date();

SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);

return sValue + "_'' +  sdf.format(date).toString();

   }

Regards

Lucho