on 02-15-2013 5:00 AM
Hi All ,
My requirement is In my Webdynpro application . I have a date field , which has a automatic in put help.
I,e. when user click on f4 he will be provided with the Calender. Where he will select the date. And the field will display date 02/15/2013,
But my user say it should be 15th Feb 2013..
Can any one help me on this ....
you may try this....
an custom OVS search help...
you can display the calender, after the date is selected, convert and map to the context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a field called Date in the Application as shown in figure 1 :
Whenever the user clicks on f4 he will get help as shown in figure 2
But when user clicks on any date for suppose say 15th
Output is as shown above. But the user wants to have like this 15th feb 2013, immediately after selecting the 15th in the calendar.
Hi Nagarjun,
Check below code.
data : date(10),
text1(26),
num1(10),
test_day(15),
o_date(20),
idate type sy-datum.
data : Day(2), month(2), Year(4).
data : ODay(2), Omonth(2), OYear(4).
data : Ltext Type T247-LTX.
date = '08/28/2007'.
day = date+3(2).
month = date+0(2).
year = date+6(4).
concatenate year month day into idate.
CALL FUNCTION 'HR_IN_GET_DATE_COMPONENTS'
EXPORTING
idate = idate "use sy-datum directly here
IMPORTING
DAY = oday
MONTH = omonth
YEAR = oyear
LTEXT = ltext.
concatenate ltext oday ',' oyear into o_date.
write : O_date.
Hope it works.
Regards,
Sudhir Kothavale.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.