Getting Factory calendar id

Hi all,
How to get a factory calendar id for a particular system.
for ex: 
calendar id for france is 'F1'
calendar id for UK is 'S1'
so my requirement is like based on the country i need to determine the calendar id.
is there any function module for this?

TFACT                          Factory calendar texts
has it .....
These tables can also help
TFACD                          Factory calendar definition
TFACS                          Factory calendar (display)

Similar Messages

  • Pass working day to get factory calendar date

    Hello Experts,
    I wish to get the factory calendar date, specific to a factory calendar, based on a working day.
    Basically, if i pass say 4, then i want to get the date for the 4th working day based on a specific factory calendar.
    Can someone throw some light on possible function module that i can use?
    Thanks

    I want to pass sy-datum to get factory date and then check if this factory date is the 4th busiess day for that month based on a specific calendar.
    Or if i can pass in 4th bus day for a month (just pass 4) based on a specific factory calendar (just pass calendar id), then i would want the factory date, which i want to compare against sy-datum in my subsequent logic.
    I am trying to trigger a data load stating if factory date for this month = 4th business day, then run load, else dont. And this in BW.
    I dont have the FM that you mentioned above, in BW and is available only in R/3

  • How to find BP and factory calendar id relationship

    Hi
    I am using SAP CRM ICwebclient.  In my program..I have to find the factory calendar id which is linked to BP (organization).BP role is ship to party.
    Can anybody help me to find table or Function module which can give me calendar id which is linked to BP.
    point will be rewarded for helpful answer.
    Best regards
    Bhavishya

    Hi All
    For your information I have found that how BP and Factory calendar id is mapped.
    -Find Rule id from database table CRMM_BUT_FRG0061 on the basis of business partner guid.
    - use this Ruld Id to get factory calendar id from Table SCRULES.
    Best Regards
    Bhavishya

  • Get Month & Quarter from Factory Calendar in SAP BI

    Hi,
    Requirement is how to get the month & quarter from the factory calendar in SAP BI.
    lets say the day is 29.12.2008 , if we use this date in SCAL it comes into 2009.
    Im getting the week as 01.2009 by using the Function Module DATE_GET_WEEK which is correct from where i can take week & the Year.
    Now how to get the month & quarter, for the above date i need month as 01 & quarter as 01.
    Please advice.
    regards
    Hari

    Hi,
    Please use the below code:
    v_day = '20081229'.
    *( Fiscal Variant)
    v_fin = '10'.
    Data : V_period(3) type c.
    Data: v_year(4) type c.
    call function 'DATE_TO_PERIOD_CONVERT'
        exporting
          i_date                      = v_day
          i_periv                     = v_fin
        importing
          e_buper                     = v_period
          e_gjahr                     = v_year
        exceptions
          input_false                 = 1
          t009_notfound               = 2
          t009b_notfound              = 3.
      if sy-subrc = 0.
        v_quart                 = v_period.
        v_fiquart        = ( v_quart  - 1 ) div 3 + 1.
        v_period    = v_period.
    endif.
    -Vikram

  • How get the duration in days of 2 key figures with use  of factory calendar

    Hi all,
    in a query i have two key figures (dates!). Now i want to get the duration in days between the two dates with the use of one factory calendar.
    FYI
    I made this in the past in the update rule (...DURATION_DETERMINE..) but now in this situation i have two cubes and i want to make an report on a multicub.
    Thank you very much for any help.
    Frank

    You would probably accomplish this with a virtual key figure.  I did this and the performance was not bad.  I developed a class with a signature for 2 dates and a calendar to return the number of business days. 
    Hope that helps...

  • To get time differnce based on factory calendar

    Dear All,
    We have Creation date, time, End date and time. We need to find out the time difference  based on factory calendar ..ie need to exculde weekends, holidays.
    Is there any FM to get this? Please adivse procedure how to get.
    Thanks
    Konda Reddy

    Try Something like following
    PARAMETERS : P_BEGDA TYPE BEGDA,
                 P_BTIME TYPE SYUZEIT,
                 P_ENDDA TYPE BEGDA,
                 P_ETIME TYPE SYUZEIT.
    DATA LV_DURATION TYPE F.
    CALL FUNCTION 'DURATION_DETERMINE'
      EXPORTING
        UNIT                       = 'H' "Hours
        FACTORY_CALENDAR           = 'GR'
      IMPORTING
        DURATION                   = LV_DURATION
      CHANGING
        START_DATE                 = P_BEGDA
        START_TIME                 = P_BTIME
        END_DATE                   = P_ENDDA
        END_TIME                   = P_ETIME
      EXCEPTIONS
        FACTORY_CALENDAR_NOT_FOUND = 1
        DATE_OUT_OF_CALENDAR_RANGE = 2
        DATE_NOT_VALID             = 3
        UNIT_CONVERSION_ERROR      = 4
        SI_UNIT_MISSING            = 5
        PARAMETERS_NOT_VALID       = 6
        OTHERS                     = 7.
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE LV_DURATION.

  • How to get working Date based on factory Calendar and current date

    Hi All,
    I want to deletermine a date which is Invoice date + 3 working days excluding SAT, SUN and holidays. For e.g, if Invoice date is 18th Sept, 2009, then my desired date should 23rd Sept, 2009.
    I do have factory calendar ID but i dont know the proper function module.
    Can some one please help me...

    Hi,
    check this code,
    DATA:
    w_date   TYPE dats,
    w_date1  LIKE scal-date,               " dats
    w_date2  LIKE scal-date,
    i_factid LIKE tkevs-fcalid VALUE 'IN', " IN for India
    it_dats  TYPE TABLE OF rke_dat,
    wa_dats  LIKE LINE OF it_dats,
    w_lines  TYPE i.
    CALL FUNCTION 'CALCULATE_DATE'
      EXPORTING
        days        = '0'
        months      = '1'
        start_date  = sy-datum             " for example '20090918'
      IMPORTING
        result_date = w_date.              " 1 month added '20091018'
    w_date1 = sy-datum.
    w_date2 = w_date.
    CALL FUNCTION 'RKE_SELECT_FACTDAYS_FOR_PERIOD'
      EXPORTING
        i_datab  = w_date1
        i_datbi  = w_date2
        i_factid = i_factid
      TABLES
        eth_dats = it_dats.                " number of working days between two dates
    READ TABLE it_dats INDEX 4 INTO wa_dats.
    WRITE :
      / wa_dats-periodat.                  " new date '20090923'
    Hope this will be helpfull...
    Regards
    Adil

  • Get number of hours between two dates and two hours using factory calendar

    Hello all,
    I have the following requirement: I need to calculate the number of hours between two dates and two hours (start date- finish date and start hour-finish hour) or timestamps using a factory calendar. I must program it on CRM environment.
    Does anybody know a function module that makes it?
    Thanks in advance.
    Carmen

    Please check function module DURATION_DETERMINE.
    - April King

  • Factory Calendar issue in creation of Sales Order/ Delivery Order

    Hi all,
    There is one issue. Our user is not able to create Sales Order/ delivery order as he is getting the below error message u201CDate 2010-12-27 lies after the end of Factory calendar F1u201D. But when I checked the plant in customization, the Factory calendar assigned is u201CKRu201D and not u201CF1u201D. So I donu2019t understand why this error message is appearing. But when I checked Factory calendar u201CF1u201D, it was valid only up to 2010 and there are special rules also set. Only few days in the year are working days. Factory Calendar u201CF1u201D description says u201CKOR customers billed on the 25th of every monthu201D
    Please advice.
    Regards,
    Brijesh

    Dear
    If F1 is the correct calander , then goto OP03-Calander Maintenece -select the Holoiday Caleneder  and extende the Valaidity till 2020 and also Select the Factory Calander  do the same till 2020 .Now Goback to main screen of OP03-Plant asisngement -re-assing the same F1 calaneder .
    Secondly check the factory calender of the plant in OX10.Then in SPRO > enterprise structure >Definition > logistic execution>define shipping point .Select you shipping point and assgin the proper factory calender
    .Goto OVX5 , choose your sales organization, click on details, Detailed information tab - Sales Org Calendar (maintain your factory calendar here not Sale Org Calander )
    .Check in VOV8, use the "Propose delivery date" and "Lead time in Days" options to default today's date as the requested delivery date.
    Refer : Public holiday dates issue
    Regards
    JH

  • Working day to factory calendar date

    Hello Experts,
    I wish to get the factory calendar date, specific to a factory calendar, based on a working day.
    Basically, if i pass say 4, then i want to get the date for the 4th working day based on a specific factory calendar.
    Can someone throw some light on possible function module that i can use in BW ?
    Thanks

    That's what I was giving you, you give the working day and the factory calendar and you get the date, or you can use this function and you can do it the other way:
    (Unless I'm completely missing your point here...)
        CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
      EXPORTING
        CORRECT_OPTION                     = '+'
        DATE                               = G_WORKAREA3-CREATEDON
        FACTORY_CALENDAR_ID                = L_S_PLANT-FACTCAL_ID
      IMPORTING
    *   DATE                               =
       FACTORYDATE                        = L_FCDATE
      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.
      ENDIF.

  • Error while processing sales order as factory calendar missing.

    "factory calendar missing or error in factory calendar".iam getting this error while processing sales order even though i have assigned it to shipping point and plant and sales org.

    Hi Malik, How are you? I'm sorry to trouble you,
                   Let me introduce, I'm Daniel, and I saw your fantastic asnwer in
    the topic "How to update Factory Calendar in SRM", and might I have the same
    problem. It's with the "factory calendar".
    In transaction va02 when I choose a Delivery Date, and I sent it to process, as
    a result in the "shipping tab" it calculated to the first item one date, and to
    the rest one date different.  I don't know What it happen?
    I debugged the program and I saw that to the first item use to calculate the
    date is the function  'APO_SCHEDULING', and to the rest item use
    'SD_SCHEDULING', and until here I come.
    How can I do to what the dates calculated are the same? or What would be the
    problem?
    I need the dates calculated are equal.
    I looked at it's using two "factory calendar" which are "J4" and "C2". Is this
    correct?
    Thanks In Advance,
    My best regards,

  • How to find out the Factory Calendar ID used by  an Organization

    Hi Experts,
    I want to know Factory Calendar ID used by an Organization.
    Which table store the Factory Calendar information for an organization.
    Is there any function module to get the Factory calendar of an organization.
    Please help me ASAP.
    Point will be rewarded for helpful answers.
    Thanks in advance
    Kulvendra Kumar

    Hi
    chk the view v_001p_m
    there u can find ur org nization so there u wull find the calender assigned to them.

  • SNP Planned order not following resource bucket capacity/factory calendar

    Hi gurus,
    SCM 5.0
    I am running SNP heuristics for a product and expecting planned orders for it.  It has corresponding production data structure and multimixed resource.  The resource has an assignd factory calendar and SNP bucket capacity.  The bucket capactiy availablity dates of the resouce is consistent with the factory calendar workdays/holidays.  Using simple lot for lot strategy, I am expecting heuristics to schedule the planned orders on the dates of the demand in compliance with teh SNP bucket capacity availability of the resource.  APO does not schedule on holidays consistent with bucket capactiy.  This is true until...
    We have a public holiday in factory calendar that needs to become a workday. To remedy this, we put a special rule for the factory calendar and explicitly made that holiday into a workday.  The changes were synchronized with APO, and this is also reflected in the bucket capacity of the resourc: former holiday now has bucket capacity after the calendar change.  However, when running heuristics, it still does not create SNP planned order on that former holiday that has been changed into workday.  Even if it is a public holiday, there is already a special rule for the factory calendar and the resource bucket capacity reflects this correctly. But SNP heuristics seems not to follow this change.
    Any ideas on this? looks like a bug.

    Hi Edgar,
    Yes, when your resource reflects the addional capacity of the holiday turned working day, then it is expected to be considered for the SNP planned order.
    Instead of SNP heuristics, you may try to check interactively in SNP planning book, if manual order creation in the bucket works out.
    Since this is a mutlimix  resource , it can also be checked if in PPDS planned order can be created on the day.
    The above checking may not solve your problem , but will get to know if at least manully the bucket is being considered or not.
    regards
    Datta

  • 61 062 & date comes after end of valid factory calendar. (Please correct)

    Hi Experts,
    I am Getting the Error in Creating Purchase Order:
    Error Message No. 61 062 & date comes after end of valid factory calendar. (Please correct)
    Please suggest.
    Regards,
    Ashok

    I got a Solution For this. Actually User has Maintained Wrong Planned Delivery time in PIR for the Same it was Behaving like that.
    Thanks

  • Using factory calendars in BI transformations

    Hello All,
    Do we have the option of using factory calendars in BI transformations, like we had in 3.x version update rules.
    I did not see any option for choosing the factory calendar, so i guess we will have to use function modules.
    Please let me know if there is any option available.
    Thanks in advance.
    Manoj

    hi Anton Moskvichev,
    I check in the source system assignment. The source system is checked. While replicating the DS from source system i replicated based on BI 7.0 only. While activating the cube or infoobject from BI content i did not get any transformation or transfer rules for activation. I just got the cube alone..

Maybe you are looking for

  • MOVED: How to use 3tb hhd on Z97 gaming 3 motherboard

    This topic has been moved to GAMING Motherboards. https://forum-en.msi.com/index.php?topic=249337.0

  • DMS interface program required

    Dear all, We are implenting DMS in our organisation for which , I have a requirement where in I need to make a program (interface) which can attach & send  the scanned image of objects (Ex: Invoice) to a specific location on DMS server. The data on D

  • How can the ALV display more than 100 chars?

    Hi, I'm developing a ALV using ABAP Object, my problem is that I need that the ALV shows unless 1024 chars but it only shows 100. I have the followind code to create the container and the ALV grid:     CREATE OBJECT v_o_container       EXPORTING     

  • Tab bar based app, with 4 tabs each linking to a different navigation menu

    Hi, Im new to coding and I was wondering if anyone could help me out with a problem im having. Im trying ot get 4 tabs accross the bottom in a tabbar with each one linking to a navigation page. Im trying to get 5 topics on each navigation page which

  • Secured JDBC call (receiver adapter) from PI

    Hello experts, I was digging through SAP documentation but could not find any information about the possibility of secured JDBC calls from PI. Is it possible to configure the JDBC receiver adapter in a way that it does a secure (encrypted) connection