Question:
As the topic name, I'd like to get the day name to check working day (check only Saturday and Sunday as non-working day) without using company code(factory calendar) . How can I get day name from date?
Answer:
FM DAY_OF_WEEK where 1=MON ... 7 = SUN.
Answer:
HI
FUNCTION MODULE : DATE_COMPUTE_DAY
RETURNS A NUMBER INDICATING WHAT DAY OF THE WEEK THE DATE FALLS ON.
MONDAY IS RETURNED AS A 1, TUESDAY AS 2 ETC..
kural
Answer:
FM DAY_OF_WEEK where 1=MON ... 7 = SUN.
DAY_IN_WEEK is the correct FM ..
Answer:
hI
DATE_COMPUTE_DAY
DAY_IN_WEEK
BOTH ARE CORRECT
KURAL
Answer:
Common SAP R/3 Functions book mentions DATE_COMPUTE_DAY, DAY_IN_WEEK, and WEEKDAY_GET. Use DATE_COMPUTE_DAY and WEEKDAY_GET
/forums/viewtopic.php?t=121982
You'll have to combine these two functions - the output from DATE_COMPUTE_DAY used to reference the day name from WEEKDAY_GET. You could also use table T246 directly, but function modules looks more professional in a program I think, than SELECTs.
Answer:
It works fine.
Thank everybody.