Tables for Factory Calendar

Hello
I am looking for the schema of the connections / relationships between the calendar tables:
TFACD     Factory calendar definition
TFACS     Factory calendar (display)
TFACT     Factory calendar texts
TFAIN     Calendar: Intervals for company holidays, special shifts
TFAIT     Calendar: Text for factory calendar intervals
THOC     Public Holiday Calendar
THOCD     Public holiday definitions
THOL     Public Holidays
THOLT     Public holiday text
and more, if more exist....
Do you have any documentation, how these tables relates each other? WHat actually they contain?
Thanks in advance,
Kooyot

Hello Kooyot,
in ta. SE11 there is a button "Graphic" (or use key combination Ctrl.ShiftF11), where you can display all relevant table relationships. You can do this in this dialog by clicking on the buttons "Ing.", "Outg.", "Check Tables" and "Foreign key tables", probably you have to change the focus in the "Display Area" to reach all dependent relationships, which you can see in detail by clicking on the edges between the tables.
Hope this helps,
regards Martin

Similar Messages

  • ABAP HR- table for factory calender id at employee level..

    Hi,
    i have a requirement in which i need to retrieve Factory calender ID against holiday calender ID at employee level.
    I am able to retrieve Holiday calender ID for an employee.
    Now i need a table to where i can get factory calender for an employee against holiday calender Id.
    Appreciate your help!
    Regards
    Aleria

    Hi Aleria 
    Pass the holiday calendar retrieved to the table TFACD to get the Factory Calendar.
    Regards
    Bala

  • Transport for factory calendar

    Hi Friends ,
      I have created a factory calendar, but i am not getting option to put that into any request . Can anyone suggest me some wayout .
    The Icon Transport in the "Factory Claendar "is disabled.
    Reagrds
    Ankit Vaish

    Hi dear,
    if you have created a new factory calendar in your source system, you need to transfer global settings (right-click on source system icon in BW workbench) to have it on your BW...
    Hope it helps!
    Bye,
    Roberto
    Do you know that you have to reward the answers you receive in SDN...
    It's THE way to say thank here!
    (you have a lot of posts without a minimum feedback from you about contributors'help...)

  • Difference between calendar used in capacity profile & factory calendar?

    Hello experts
    I am trying to check available capacities in planning book & found some ambiguities.
    In /SAPAPO/RES01, factory calendar maintained in the resource is say Z1, but in the same page, the capacity profile tab uses a different calendar.Say in Z1, if X/X/XXXX is a working day, the one present inside capacity profile considers it as a holiday & the  available capacity doesn't reflect in planning book.
    In ECC, the plant where this work center is defined follows calendar Z1.
    So my doubt is which calendar the capacity profile follows & how to ensure that it follows the same factory calendar Z1?
    Regards
    Soum

    Hello Soumyajit,
    few things you can check,
    Plant and work center calender assignment should be same, Plant has precedent over WC
    Check if in CFC9 you have correct change transfer mode set for resource.
    Once calender updated in ECC, use program RSIMPCUST to rebuild the tables for factory calendars in APO and then run /SAPAPO/CRES_CREATE_LC_RES to extend the resource in LC
    also run /SAPAPO/TIMESTREAM_UPDATE for any time stream update.
    This will update capacity profile as well resource capacity in planning book/ planning board.
    Hope this info will help you,
    Thanks,
    Rajiv

  • Table for giving details of factory calendar

    Hi all,
    can I get all details of factory calender- holiday calendar, dates
    regards,
    sangram

    Dear Sangram Patil,
    Why do you need the factory calendar details at table level?Check these tables,
    SCALT_TYPE             Table of Valid Calendar Types             
    T246                           Table documentation                       
    T247                           Month name and short text                 
    TCALS                        Central entry for factory calendar        
    TFACD                        Factory calendar definition               
    TFACS                        Factory calendar (display)                
    TFACT                        Factory calendar texts                    
    TFAIN                         Calendar: Intervals for company holidays, 
    TFAIT                          Calendar: Text for factory calendar interv
    TFARSIMONTH            Names of months of Farsi calendar         
    THOC                           Public Holiday Calendar                   
    THOCD                         Public holiday definitions                
    THOCI                          Public holiday calendar index             
    THOCS                         Public holiday calendar (display)         
    THOCT                          Public holiday calendar texts             
    THOL                           Public Holidays                           
    Regards
    Mangalraj.S

  • Working days between two date fields and Changing Factory Calendar

    Hi,
    I have to calculate working days between two date fields excluding the weekends and public holidays for Switzerland.
    I have written the routine using factory calender and its working fine except for two problems now:
    1. If any one of the date field is empty then teh rsult should be zero.
    2. And the below code is working from 1996 but my cleints wants it to work for years before 1996 as well.
    I also tried to change the Start date in SCAL for factory calendar but it says enter values between 1995 to 2020.
    I am new to ABAP. Please help me how i can achieve these for below code.
    DATA: IT_HOLIDAYS type TABLE OF ISCAL_DAY,
          IS_HOLIDAYS TYPE ISCAL_DAY.
    DATA: T_DATE TYPE SY-DATUM,
          P_DATE TYPE SY-DATUM.
    DATA : X_DATE(4) TYPE C.
    DATA: CNT TYPE I.
    REFRESH : IT_HOLIDAYS.
    CLEAR : IT_HOLIDAYS.
    T_DATE = SOURCE_FIELDS-/BIC/ZCCCHP812.
    P_DATE = SOURCE_FIELDS-/BIC/ZCCCHP810.
    CALL FUNCTION 'HOLIDAY_GET'
    EXPORTING
    HOLIDAY_CALENDAR = 'CH'
    FACTORY_CALENDAR = 'CH'
    DATE_FROM = P_DATE
    DATE_TO   = T_DATE
    TABLES
    HOLIDAYS = IT_HOLIDAYS
    EXCEPTIONS
    FACTORY_CALENDAR_NOT_FOUND = 1
    HOLIDAY_CALENDAR_NOT_FOUND = 2
    DATE_HAS_INVALID_FORMAT = 3
    DATE_INCONSISTENCY = 4
    OTHERS = 5.
    DESCRIBE TABLE IT_HOLIDAYS LINES CNT.
    X_DATE = T_DATE - P_DATE - CNT.
    RESULT = X_DATE.
    Please help
    Regards
    Zabina
    Edited by: Syed786 on Nov 2, 2011 9:15 AM

    Hi Zabina,
    Try this function module  'DURATION_DETERMINE'.
    Give the factory calendar and unit as DAY
    With regards,
    Rajesh

  • Factory calendar where used?

    Suppose a particular plant wants to add 2 days this month as holidays in their factory calendar.
    Before doing the actual change I want to actually check whether there are work centers in other plants in the company code which is using this calendar. How can I check this ?
    Is there a where used list for factory calendar?

    HI
    Check Tables CRCA for capacity allocation of work center then KAKO for the same capacity id assigned to work center and Factory calender ID
    Check and revert
    Regards
    Anupam Sharma

  • Factory calendar - OP03

    Hello,
    If I do the settings for factory calendar in OP03, instead of OY05 and OX10, will I get a Transport request, and I won't have to transport manually the settings?
    Ileana

    Hello lleana,
    No, you can not get the transport request, since it (Maintain Calendar) is a manual transport type customization in IMG Display.
    Note: In order to maintain the calendar (which intern you will have to do the things in the R/3 system like creation of public holidays -> holiday calendar -> factory calendar)
    the entire process is manual and there is no generation of transport request when you save it. And in the production system also you need to do the same since the customization of the above (your query) requirement is Manual transport type.
    which is similar to the Maintaining of Number ranges....
    The above customization is to be done directly in PRD system (you can not transport from DEV or QAS to PRD system, since this mapping is manual transport type)
    Hope this will clarifies you,
    Rewards, if it helps,
    Regards,
    Srin.K
    Edited by: sapsrin on Feb 5, 2008 6:29 AM

  • Factory Calendar update

    Hell All
    For plant my client is requesting that 26 December 2014 be marked as a non working day. The plant is
    all taking this day as one of their floating holidays and need it considered as
    non work day in factory calendar to extend their Christmas break.
    Is there any impact if we do this for other module etc.,,what would be best way if we do through open client or landscape.
    Can anyone tell me how to do the same.
    Regards
    Ananthi

    Hello Remi,
    While I try to create a workbench request it shows the target system deletes the Holiday calendar.Factory Calendar etc.,after moving the TR it deletes the initial and overwrites ?
    when I try to check for transport conflict analysis it takes production logon which never happens before.
    Also here I have made the changes for Factory calendar alone in special rule,whereas no changes to holiday calendar,for this case is it require to run the work schedule rule.
    Regards

  • Factory calendar attached to reference objects

    Hi,
    While creating date types and date duration we can attach reference objects to them. But where do we see the time zones and the factory calendar settings maintained against a reference object?
    Regards,
    -Sweta

    Hi Sweta
    If you want to add company holiday to take in account while calculating End date then config for Factory calendar / Holiday
    SAP Implementation Guide> SAP Web Application Server>General Settings-->Maintain calendar
    Once u done with config, use FM BUSINESS_DATE_CREATE for End date creation.
    I am still finding how to attach the FC to Reference object. If i get will post u again.
    hope you able to get your result.
    Thanks,
    Deven
    Do not forget to allocate points.............

  • Which factory calendar is valid for a certain user

    Hi all,
    is there a way to get the factory calendar for a certain user.
    E.g. if the user works in Germany, I want the german factory calendar, and if he lives in India, I want the Indian calendar.
    Regards,
    Daniel

    OY05 - Maintain the SAP Factory Calendar
    SAP Factory Calendar allows companies to key in their own factory work days.  Individual SAP application such as MRP will take into consideration these individual factory customizing.
    For alternate Saturday, you set Saturday as a normal working day and key in all the off-days in the Special rules button.
    In your abap program, you can calculate whether a particular day is a non-working day, with reference to the Factory Calendar.
    ABAP Program to check for holidays using the factory calendar
    include zday .
    substitute tdate = 'yyyymmdd'.
    tholiday_found   = 'X'   -> Holiday
    TABLES THOCS.
    DATA: BEGIN OF INT_THOCS OCCURS 100,
          THOCS LIKE THOCS.
    DATA: END OF INT_THOCS.
    DATA: TDAY(1),
          TDATE LIKE SY-DATUM,
          THOLIDAY_ATTRIBUTES,
          THOLIDAY_FOUND(1).
    FORM HOLIDAY.
    CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
         EXPORTING
              DATE                         = TDATE
              HOLIDAY_CALENDAR_ID          = 'XX'
            WITH_HOLIDAY_ATTRIBUTES      = ' '
         IMPORTING
              HOLIDAY_FOUND                = THOLIDAY_FOUND
         TABLES
              HOLIDAY_ATTRIBUTES           = INT_THOCS
         EXCEPTIONS
              CALENDAR_BUFFER_NOT_LOADABLE = 1
              DATE_AFTER_RANGE             = 2
              DATE_BEFORE_RANGE            = 3
              DATE_INVALID                 = 4
              HOLIDAY_CALENDAR_ID_MISSING  = 5
              HOLIDAY_CALENDAR_NOT_FOUND   = 6
              OTHERS                       = 7.
    CALL FUNCTION 'DATE_COMPUTE_DAY'
         EXPORTING
              DATE    = TDATE
         IMPORTING
              DAY     = TDAY
         EXCEPTIONS
              OTHERS  = 1.
    For checking.
    *if tholiday_found = 'X'.
      write: /1 'Holiday ', tdate.
    *else.
      write: /1 'Not Holiday ', tdate.
    *endif.
    *case sy-subrc.
      when 0.       write: /1 tdate, tday.
      when others.  write: /1 'Unknown day ', tdate.
    *endcase.
    ENDFORM.

  • Factory calendar table update

    Hello gurus,
    An urgent requirement!!!
    I have three Source system configured in BW.
    The FActory cal id for the two systems were not found in BW.
    When i use rebuild table for the factory calendar id using transfer global setting option in the source system it updates the table but over writes it when i use the same option for other source system.
    Suggestion please
    Thanks in advance
    Ram

    Hi,
    the program doesn't admit the update on factory calendar!!
    You need an alternative way.
    I suggest two possibility:
    Transaction SCU0 to compare all the tables by RFC in remote system, (you can automate this comparison in a program) But the comparing will be for all tables:
    TCALS
    TFACD
    TFACS
    TFACT
    TFAIN
    TFAIT
    THOC
    THOCD
    THOCI
    THOCS
    THOCT
    THOL
    THOLT
    THOLU
    or for the IMG activity related to calendar.
    Other way is to use the BC set functionality. When you make modification in a calendar in source system you insert all modifications in a request, then you can get this request in a BC set. After you can download it and upload in BW.
    Regards,
    Sergio

  • How to maintain TFACS table (Factory calendar) into SAP BI

    Hi,
    I deal with a daily stock infocube and I would like to set a flag when the warehouse doesn't work (on holiday).
    to do this, I would like to use the factory calendar (TFACS), and I have 2 questions:
    1) How to maintain the TFACS table into SAP BI ?
    2) How to use the TFACS data into SAP BI ? In other words, How to convert the TFACS data values in date ?
    Thx.
    Radj.

    1.
    rsa1(source-systems) --> right-click on the source system you load from --> transfer global settings --> flag 'factory calendar' and 'rebuild' or 'update tables'
    2.
    use function module DATE_CONVERT_TO_FACTORYDATE.
    it returns workingday_indicator (initial if it's a worling day) that you can use as a flag, or it also returns the next working day.
    you can use this function module in the transformation in the field routine of the flag...i think this is the best option.
    M.

  • Factory Calendar for an employee

    Dear All ,
    We have 6 factory calendars namely A1 and A2... . I want to know for given employee number which factory calendar is applicable . Is there any function module which will give me this information .

    Hi
    try this code...
    code
    DATA : ret_date LIKE scal-date,
    fac_date LIKE scal-facdate,
    workday LIKE scal-indicator,
    temp_date LIKE scal-facdate,
    date LIKE sy-datum.
    date = sy-datum. "sample dates
    CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
    EXPORTING
    correct_option = '+'
    date = date
    factory_calendar_id = 'VC' "Your factory calender code
    IMPORTING
    date = ret_date
    factorydate = fac_date
    workingday_indicator = workday
    EXCEPTIONS
    calendar_buffer_not_loadable = 1
    correct_option_invalid = 2
    date_after_range = 3
    date_before_range = 4
    date_invalid = 5
    factory_calendar_not_found = 6
    OTHERS = 7.
    WRITE :/ workday. "holiday returns '+' indicator. working day returns space.
    [/code]
    Reward if useful
    Regards

  • Scheduling does not take the factory calendar for counting the workdays

    I am scheduling my jobs in CPS 8 and I have imported my Factory calenders also. When using Factory calendars for scheduling the jobs for the 6th working day of every month, Its does not count the Saturday as a working day, where as the calendar I am using has Working day on Saturday.
    Why is it so? And is there a way to solve this ?
    Please suggest. Any help is appreciated.

    Hi All,
    I have used this same logic for scheduling jobs scheduling for the nth work days of every month.
    But I have a job, where it is required to be scheduled on the 5th workday of a month and it is submitted once in every 6 months.
    When I schedule it for every month, it works fine. But when I use a submit frame to submit it for once in every 6 months, it does not work.
    Can anyone suggest how to do it ? I used a embedded window to check it also, which didn't work.
    BR
    Madhu

Maybe you are looking for