cancel
Showing results for 
Search instead for 
Did you mean: 

Out Put of Date Field In webdynpro ABAP dd-mm-yyyy (15th Feb 2013)

nagarjun_kalletla
Participant
0 Kudos

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 .... 

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

nagarjun_kalletla
Participant
0 Kudos

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.

  • My question is which event will trigger here once user clicks on any date in calendar?
  • And the Attribute binded  to input field is of type DATS  and input help is automatic.
Former Member
0 Kudos

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.