11-14-2014 5:06 PM
Hi ,
I am learning the ABAP, I want to display the first day of the current month in the selection screen using parameters.
Thanks,
Rama.
11-14-2014 5:21 PM
Hi mohan,
Please find the below code.
data: lv_date type sy-datum,
initialization.
concatenate '01' sy-datum+4(2) sy-datum+0(4) into lv_date.
p_date = lv_date.
Thanks,
Sree
11-14-2014 5:42 PM
Hi ,
If you want to display the day name , this is the function module you must use .
RH_GET_DATE_DAYNAME
pass the date to this FM and it will return the day name .
Thanks
Manik
11-15-2014 4:07 PM
hi Rama Mohan,
Please try this FM also:
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
IV_DATE = sy-datum
IMPORTING
EV_MONTH_BEGIN_DATE = s "start date of the current month
EV_MONTH_END_DATE = e "end date of the curentmonth
.
11-15-2014 4:25 PM
Thank you Abdul,
I can add a photo .
data: lv_date type d.
INITIALIZATION.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
IV_DATE = sy-datum
IMPORTING
EV_MONTH_BEGIN_DATE = lv_date.
f_day = lv_date.