on 06-23-2008 5:04 PM
Hi
My requirement is that i have to set my "current date" format as yyMMdd, setting this format is fine. It executes also normally with the desired output. After executing 3 or 4 times, the target format of my date ,ie yyMMdd disapears and hence the output is a blank. its a bit weird.
Any idea why this is happening.
Thanks in advance
Saiyog
Try to use this udf to achieve your output
imports java.util.Date;java.text.SimpleDateFormat;
function currentdate(Container container)
{
Date useddate=new Date();
SimpleDateFormat useddateformat=new SimpleDateFormat("yyMMdd");
String enterdate=new String(useddateformat.format(useddate).toString());
return enterdate;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I beleive you are using Graphical mapping and Date is disappearing after producing the values for earlier occurences of field.
The only reason due to which it can happen is that you are not handling the context of occurence of source field. The occurence of source date should be equal to occurence of date field n target.
you may need to write some UDF or You can use SAP standard functions to achieve it.
Kulwinder
Reward if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
don't understand exactly what is disappearing where?
Please clarify...
Thanks
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Patrick
am doing a graphical mapping.
i use the "current date" function and have to set my target date format as yyyyMMdd. this is succesfully done and execeuted succesfully.(its a straight mapping to the target) , After i execute it a no of times, i get a blank output , why? cause the date format(yyyyMMdd) has disapeared from the "current date" function where i set it earlier.
Hope this is clear.
Thanks
Saiyog
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.