on 07-06-2007 5:02 AM
i want to enter date in dd/mm/yy format
for that i have taken simpletype in webdynpro
given defn date
and representatation dd/MM/yyyy
its taking in mm/dd/yyyy
pls tell me how to do that
once we get that in dd/mm/yyy format
how to convert thta and send it to r/3 system
Hi,
I think ur NWDS is not working properly....Do the following steps,
First Close your NWDS,
1) Go to NWDS installation directory, take a backup of your projects from the workspace and delete the .metadata folder from the workspace.
2) Then open the NDS, a new .metadata folder will be created and now you can try opening the NWDS it will open without error
3)Sometimes when your metadata of the NWDS is corrupted then your NWDS will not function properly.
4)Restart ur machine,then its works properly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do like this,
Date d = wdContext.currentContextElement().getDate();
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
Date reqDate= sdf.format(d);
Other Method,
SimpleDateFormat d1 = new SimpleDateFormat("yyyy-MM-dd");
Date date = d1.parse("2007-07-05");
SimpleDateFormat d2 = new SimpleDateFormat("dd.MM.yyyy");
String out = d2.format(date);
Regards,
Suresh.T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create a simple dictionary type (say formattedDate) in a package. Make the BuiltIn type as Date. Switch to representation tab and in Format fileld, give dd/MM/yyyy.
Then, right click the context variable->properties->type->formattedDate from package.
If it's not working, then raise one OSS maessage regarding this.
Regards
Fahad Hamsa
hi,
U delete that simple type n attribute.....may b some problem in NWDS...after deleting simple type...close ur NWDS and open it.....after that create
1)create simple type with type=date,format=dd/MM/yyyy
2)create attribute with type=(pack name)<b>.</b>(simple type)
3)bind this attribute to input field....
I checked for me its working......better u do again.....
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.