Application Development and Automation 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: 
Read only

Factory Calender

Former Member
0 Likes
1,928

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
Read only

Former Member
0 Likes
1,538

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

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,538

hiii

you can get factory id by using FM CY_READ_T001W

also refer to following link

regards

twinkal

Read only

0 Likes
1,538

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

Read only

Former Member
0 Likes
1,538

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

Read only

0 Likes
1,538

Yes thanks. its working.

Read only

Former Member
0 Likes
1,538

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

Read only

Former Member
0 Likes
1,538

Hi Priti,

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

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
1,539

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