08-04-2008 1:07 PM
I have a plant no. On thebasis of this plant i need to know the factory calender id and i need to get the list of holidays for this plant. How do i do it.
08-04-2008 1:39 PM
Hit the table T001W with the given plant to get the Fcatory calender key (FABKL).
Use the function module HOLIDAY_GET to get the list of holidays by passing the Factory calender key and the date range.
Regards,
Kiran Bobbala
08-04-2008 1:12 PM
08-04-2008 1:18 PM
08-04-2008 1:22 PM
HI,
we can assign it to the calender by using below function module
CALL FUNCTION 'F4_DATE'
EXPORTING
factory_calendar_id = c_fcalid
IMPORTING
select_date = pfs_leave_date
EXCEPTIONS
calendar_buffer_not_loadable = 1
date_after_range = 2
date_before_range = 3
date_invalid = 4
factory_calendar_not_found = 5
holiday_calendar_not_found = 6
parameter_conflict = 7
OTHERS = 8.
or if u want to check manully
Goto t-code 'SFT3'.
and T-code 'scal'.
08-04-2008 1:52 PM
08-04-2008 1:26 PM
Hi Priti,
Please check have you created Facotry calender?
T.Code SCAL
Have you assginged factory calendrr to your plant?
Assignment of the factory calendar by plant is done in transaction code 'SM30 - V_T001W'
Regards,
Suresh.S
08-04-2008 1:35 PM
Hi Priti,
Check the table TVKO for field VKOKL for factory calender id.
Regards,
Chandra Sekhar
08-04-2008 1:39 PM
Hit the table T001W with the given plant to get the Fcatory calender key (FABKL).
Use the function module HOLIDAY_GET to get the list of holidays by passing the Factory calender key and the date range.
Regards,
Kiran Bobbala