Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Factory Calender

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

hiii

you can get factory id by using FM CY_READ_T001W

also refer to following link

regards

twinkal

0 Kudos

But then how do i get the list of holidays for the same plant

Former Member
0 Kudos

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'.

0 Kudos

Yes thanks. its working.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Priti,

Check the table TVKO for field VKOKL for factory calender id.

Regards,

Chandra Sekhar

Former Member
0 Kudos

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