Factory Calender Determination

Can someone tell me how can we determine if a particular day is a working day or not, based on the Factory Calender?
Please help.Its urgent.

use the FM
DATE_CONVERT_TO_FACTORYDATE
if the returned date = to the sent date, it is a working day
DATA: senddt TYPE d VALUE '20080601',  "<== this is Sunday
      recvdt TYPE d.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
     EXPORTING
          correct_option      = '+'
          date                = senddt
          factory_calendar_id = 'US'
     IMPORTING
          date                = recvdt.
*   FACTORYDATE                        =
*   WORKINGDAY_INDICATOR               =
* 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
IF senddt NE recvdt.
  WRITE:/ senddt, 'is not a working day'.
ELSE.
  WRITE:/ senddt, 'is a working day'.
ENDIF.

Similar Messages

  • Factory calender importance in Sales Organisation.

    Hi Experts,
    Hope you all doing Gr8t.
    Please let me know the importance of specifying Factory calender while defining the Sales Orgination.
    Thanks & Regards,
    Smithun.

    Hi
    Factory calendar specify the work days at the customer's site .These calendars are used to determine when a delivery must take place in order for it to reach the customer's site on a work day when it can be received. We also use the factory calendar in consolidated invoicing. That is, if we specify that only one day a week is a working day for our customer ,the billing documents are only to be created for that one day each week, causing delivery documents to be consolidated into one billing document.
    You maintain the factory calendar in IMG in T code SCAL and assign the factory calendar with plant and also sales org in Img while defining the plant in the Enterprise structure .If you donu2019t maintain it and make the standard order you will get an error-"Factory calendar missing or error in factory calendar".
    Factory Calendar decides the holidays for the plant.
    Sales order flow to production order and based on the factory calendar material availability will be confirmed to the customer.
    Production planning/Scheduling will happen based on Factory Calendar
    Regards
    Raja

  • How to load the factory calender in to Bi system

    Hi Friendds,
    I am working on capacity utilization cube.in this i need determine the working days between the early starting date and finish date accoring to factory calender 'PL'. the factory calender is attribute for workcenter and plant.
    first i need to check the factory calender is loaded in to bw system or not. how to check this.
    please help to me on this.
    Thanks,
    Guna.

    Hi gunasekhar,
       There is a function module in Bw side  U pass ur variable and ur factory calendar id and u get the desired factory date as output...u can check the same in SCAL.
    DATA : w_coend_fd TYPE SCAL-FACDATE.
    DATA : w_coend_cd TYPE SCAL-DATE
        CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
                EXPORTING
                  CORRECT_OPTION               = '+'
                  DATE                         = w_coend_cd
                  FACTORY_CALENDAR_ID          = 'GB'
                IMPORTING
                  FACTORYDATE                  = w_coend_fd
                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.
    Regards
    vamsi

  • Factory calender special rules

    Hi MM consultants,
    We have one issue related to Factory calender.
    We updated the special rules in factory caleder stating that palnt is clsoed for some time in christmas.
    Now the issue is after creating schedulign agreement delivery schedule release were sent to vendor mentioning that delivery is required during holidays and caused confusion.
    My question is which table i can see the special rule created to the factory calneder so that i can confirm the releases were created before the calender updation.
    please reply
    Thanks in advance
    Yashwanth

    Hi Yashwanth,
    You can check the factory calendar and the special rules on SPRO > SAP NetWeaver > General Settings > Maintain Calendar.
    There, select "Factory Calendar" and click on "display" button.
    In the next screen, select your country and click on the "Calendar" button that is in the top of the screen.
    In the next screen, make double click on the year 2012.
    There you will see the Public Holidays of the Factory Calendar.
    Now, yo check the special rules, go back to the screen that is showing the countries and make double click on the country selected.
    In the next screen, click on the "Special rules" button and you will see the special rules for the country selected.
    But, for the case of MM, the system is only sending a warning message when you are selecting a Public Holiday or Special Day in the delivery date. The message is as follow:
    Delivery date: next workday is 10.04.2012
    Message no. ME080
    Diagnosis
    The system has determined the next workday from the factory calendar that is assigned to the specified plant.
    If you don't want that the Public holidays or Special days can be selected, you need to change this message as error message.
    You can do this on SPRO > Materials Management > Purchasing > Environment Data > Define Attributes of System Messages > System messages.
    I hope this help.
    Kind regards,
    Sandra

  • Invalid factory calender error in creating subcontrating po

    hello all,
    during creation of subcontracting po,system shows the error message "invalid factory calender error".
    i have checked the assignment in oy05.seems ok.
    pls provide some input.
    regards
    sumit simran.

    Hi,
    Please check the path.
    IMG>Enterprise Structure>Definition>Logistics - General>Define, copy, delete, check plant-->Define Plant.
    Here you can find the which factory calender is assigned to your plant.
    Then go to  Tcode SCAL ,  select the Holiday calender and edit it . Double click on your holiday calender   and change it  i.e valid From year to To year. Go back , select the factory calender and edit it ,  give  valid From year to To year.
    Thanks.

  • Factory Calender, Where Can I see it?

    Hi Experts,
    Pls. let me know that, Where Can I see the Factory Calender?
    thanq

    Hi srinivas,
                   You can use FM FACTORY_CALENDAR_GET to get factory calender.
    <REMOVED BY MODERATOR>
    Thanks,
    Srikanth.A
    Edited by: Alvaro Tejada Galindo on Apr 24, 2008 10:49 AM

  • Consideration of factory calender in threshold values

    Hi,
    I need to consider the factory calender in the threshold values to check the due date of a task or a checklist item.
    For example:
    The task/or checklist item is due in 11 days (and the factory calender should be condsidered)
    Does anybody know how to implement these checks in the threshold values of cprojects?
    Thanks for your help!
    Isabella

    Dear Friend,
    Ideally you should not change anything on Production server directly.
    The normal & universally acceptable way is to transport the changes from Development or Quality to Production.
    Still if you want to make changes on Production Server Directly (which even i dont recomend) you need to make Production Server in change mode thru T-Codes SCC4 & SE03 & make necessary changes.
    Let me know if you need to know how to use T-Codes SCC4 & SE03.
    Thanks,
    Jignesh Mehta

  • How to define a new factory calender?

    Hi guys,
    I want to have a factory calender that I can use for scheduling batch jobs to run each last sunday in the month. Such factory calender doesn't seem to exist in the system and I'm wondering how I could create it?! Is there a transaction that I can use to create a new factory calender?
    BR,
    Armin

    Hi,
    1. In TCode: SCAL, initially check the public holidays existing in the system, whether those public holidays are sufficient or not, if not create your own public holidays.
    2. Then Create public holiday calender and attach your public holidays to this public holiday  calender.
    3. Then create your own factory calender and attach your public holiday calender to the factory calender and select the working days in a week and then save.
    The above are the steps involved in creating a new factory calender.
    Hope this helps.
    Thanks,
    Viswanath

  • 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

  • Getting factory calender weekly duration timings

    hi all,
    I have a scenario to get the factory calender weeky avaialable(working) timings like
    MONDAY - 8:00 TO 17:00 etc.,
    how to get these values is there any function module associate to get those value by passing date rule id.
    Appreciate ur help
    thanks
    viswa

    check below code...
      DATA: W_FACTORYDATE          LIKE  SCAL-FACDATE.
    Convert Delivery Date to Factory Date
      CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
           EXPORTING
                CORRECT_OPTION               = '-'
                DATE                         = I_EINDT
                FACTORY_CALENDAR_ID          = I_FABKL
           IMPORTING
                DATE                         = E_EINDT
                FACTORYDATE                  = W_FACTORYDATE
           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.
    Find the Lower Limit of Delivery date
      E_LOWER = E_EINDT.
      IF I_VINT1 NE 0.
        W_FACTORYDATE = W_FACTORYDATE - I_VINT1.
        CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
             EXPORTING
                  FACTORYDATE                  = W_FACTORYDATE
                  FACTORY_CALENDAR_ID          = I_FABKL
             IMPORTING
                  DATE                         = E_LOWER
             EXCEPTIONS
                  CALENDAR_BUFFER_NOT_LOADABLE = 1
                  FACTORYDATE_AFTER_RANGE      = 2
                  FACTORYDATE_BEFORE_RANGE     = 3
                  FACTORYDATE_INVALID          = 4
                  FACTORY_CALENDAR_ID_MISSING  = 5
                  FACTORY_CALENDAR_NOT_FOUND   = 6
                  OTHERS                       = 7.
      ENDIF.
    Find the Upper Limit of Delivery date
      E_UPPER = E_EINDT.
      IF I_VINT2 NE 0.
        W_FACTORYDATE = W_FACTORYDATE + I_VINT1 + I_VINT2.
        CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
             EXPORTING
                  FACTORYDATE                  = W_FACTORYDATE
                  FACTORY_CALENDAR_ID          = I_FABKL
             IMPORTING
                  DATE                         = E_UPPER
             EXCEPTIONS
                  CALENDAR_BUFFER_NOT_LOADABLE = 1
                  FACTORYDATE_AFTER_RANGE      = 2
                  FACTORYDATE_BEFORE_RANGE     = 3
                  FACTORYDATE_INVALID          = 4
                  FACTORY_CALENDAR_ID_MISSING  = 5
                  FACTORY_CALENDAR_NOT_FOUND   = 6
                  OTHERS                       = 7.
      ENDIF.

  • Tables for plant , factory calender & calender validity period

    In which tables we find the data of plant , facory calender & calender validity period.If anybody knows please tell.

    I want the combination of plant , factory calender  & validity period tables to extract the data.In TFACD table we don't get plant & validity details to know exactly what was done during configuration.

  • Factory Calender - Help Needed

    I am getting this messges when i try and transaction MICN...PID for cycle count...
    The date 14.07.2009 comes after the end of the validity period of the factory calendar that is assigned to the given plant
    Could someone tell me how i fix this

    See if your factory calender is properly maintained in 'SCAL' tcode.
    If it is maintained properly, see if that is assigned to your plant in 'OX10' tcode. If this doesn't solve your issue, tell the detailed error message.

  • Date is not Defined in Factory Calender

    Dear all,
    We are facing some issue while releasing Process order. It states that Date is not defined in factory calender. and it throws out dates of for particular process order from 21.05.2014 to 15.07.2017.
    Please check the attached screen shot & revert your thoughts.
    Thanks in advance.

    I have found the issue. Actually operation quantities in the phases in the recipe was maintained improperly. Hence the charge quantity was getting multiplied with huge number hence resources allocated to them was considering that huge amt of quantity to be processed on it. Hence dates were coming the ranges of period 2014.
    Deep Dave.
    However thanks for your all prompt response.

  • Invalid Factory Calender error

    Hello gurus,
    While making a subcontracting PO, the following error is coming "Invalid factory error or error in the factory calender"
    I have checked the plant settings & have put Factory calender IN for the plant. Still the error is coming. How to resolve this?
    Regards
    Prashant

    >
    prashantjalgi wrote:
    > The validity is from 1996 to 2010.
    >
    > If I try to extend it to 2011, the system is not allowing.
    >
    > The same error is coming when the validity is 1996 to 2010.
    Why is it not allowing? what error do you get when trying?
    Calendar maintenance is done thru CUNI, and cusotmizing is usually done in development clients.

  • How to update Factory calender in CRM from ECC?

    Hi All,
    Factory calenders are downloaded to CRM from ECC, using adapter object DNL_CUST_CAL_C in Initial load (R3AS).  My doubt is, whenever a new holiday is added to Factory calender in ECC, how the particular added holiday will be downloaded to update the same in CRM system?
    Please help me.
    Regards,
    Maddy

    Hello Maddy,
    In my system download object DNL_CUST_CAL_C is for the download from the CRM (online) database to the old consolidated database (CDB, for the offline Mobile Sales scenario). You could see this in transaction R3AC3.
    For your scenario I don't know how to download. This thread here speaks of a manual adjustment in transaction SCAL.
    http://scn.sap.com/thread/274825
    Best regards,
    Thomas Wagner

Maybe you are looking for

  • Creating an editable text field in Acrobat Pro 9.5

    I create editing tests for applicants to my company. Previously I used Word, but I want to these tests to be pdfs moving forward because when I use Word there are various ways the test takwers can cheat. For most of the sections of the tests I can us

  • Error #2136: The SWF file

    I am trying to learn how to use classes.The book i am using gave me this example. In Vechile.as package{             import flash.display.MovieClip;             import flash.events.Event;             public class Vehicle extends MovieClip{           

  • I can't seem to be able to extract files while running firefox

    i just downloaded one but can't run. keep getting error message saying cannot extract files for files are corrupt

  • Error in CNS0 :Sales unit is not valid for the item

    Dear Team , we are using assembly process ,after creation of project from sales order ,requirments are pass to production planning (PP), Asign the bom to activites then we are going to delivery through project (cns0) at the time system shows error" s

  • Acrobat XI Online Help

    We are getting an "Online Help cannot be displayed." message when trying to access any of the Adobe Acrobat & Distiller menu options.  Through testing on our system we've narrowed down that this is happening because Adobe Acrobat XI is using an anony