‎2008 May 12 7:14 AM
Hi all...
Iam having one date field it contains different dates.....
but while dispalying that field i have to to display first date of that month...
like...
if 07/24/2008 ---> 07/01/2008
05/15/2008 ---> 05/01/2008
how can i do this?
Thank you,
naveen
‎2008 May 12 7:19 AM
Hi,
USe This;
DATA: wa_date LIKE sy-datum.
DATA: wa_date1 LIKE sy-datum,
wa_date2 LIKE sy-datum.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = i_date
IMPORTING
ev_month_begin_date = wa_date1
ev_month_end_date = wa_date2.
Regards,
Shiva
‎2008 May 12 7:18 AM
hi naveen,
data: v_date type char10.
v_date = 07/24/2008.
concatenate v_date(2) '01' v_date+6(4) into v_date separated by '/'.
write v_date.
regards,
Peter
‎2008 May 12 7:18 AM
data : dat type sy-datum.
dat = '20080424'.
write: dat MM/DD/YYYY.
‎2008 May 12 7:19 AM
Hi,
USe This;
DATA: wa_date LIKE sy-datum.
DATA: wa_date1 LIKE sy-datum,
wa_date2 LIKE sy-datum.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = i_date
IMPORTING
ev_month_begin_date = wa_date1
ev_month_end_date = wa_date2.
Regards,
Shiva
‎2008 May 12 7:35 AM
data:w_day type d.
w_day = sy-datum.
w_day+6(2) = '01'.
write w_day.
Try like this.
Regards,
Jagadeesh.