10-13-2008 7:38 PM
Hi all ,
I have a req . I have to check the current day for this req .
If the current day is saturday/sunday then in my req i should count those
since they are non-working days .
Please let me know how to find the current day
or
is there any fm
Regards
Raj
10-13-2008 7:48 PM
Hi Raj,
You can use FM: ISM_DAY_NAME_OF_DATE_GET to get the day. use date format 10/14/2008.
happy coding.
/Kiran
10-13-2008 7:45 PM
Hi,
Use this FM DATE_TO_DAY. Give todays date and see the output.
MM/DD/YYYY format E.g 10/13/2008
Edited by: senthil kumar on Oct 14, 2008 12:17 AM
10-13-2008 7:48 PM
Hi Raj,
You can use FM: ISM_DAY_NAME_OF_DATE_GET to get the day. use date format 10/14/2008.
happy coding.
/Kiran
10-13-2008 7:48 PM
10-13-2008 7:53 PM
you can better check the working days against you´re company or country calender so that christmass , easter etc is also taken into account.
can´t look anything up right now since I´m now in some hotel in berlin for some conference about SAP
kind regards
arthur
10-13-2008 7:53 PM
Hi Raj,
Try this code.
DATA: LV_DAY LIKE DTRESR-WEEKDAY.
CALL FUNCTION 'DATE_TO_DAY'
EXPORTING
DATE = sy-datum
IMPORTING
weekday = lv_day.
WRITE : lv_day.
Thanks,
surendra Babu Vemula