Difference between dates based on factory calendar.

Hello
Is there a standard function module which can calculate the number of days.(difference between creation date of the document and system date) but in accordance with the factory calendar.
and also os there a way we can find out these function modules names by ourself

Hi,
please don't do a cross posting of the same question in different forums. It is against the rules --> see rules of engagement. But anyway, check out your other thread, i gave you the answer.
kind regards
Siggi

Similar Messages

  • 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

  • System does not propose the delivery date based on factory calendar

    Hi,
    I am creating a sales order for a delivery date for this sat which is (2/22/09)
    I have maintained 2 separate calendars for
    1) shipping point
    2) for the route
    The route has a transit time of 1 day and the calendar has sat and sunday as non working.
    the Shipping point has a pick/pack time of 1 day and the calendar has sat and sunday as non working
    The material is available in the warehouse
    Now when i create this sales order i enter the delivery date as 2/22/09, the system does not propose me the delivery date of monday (i.e 2/23/09) It accepts the 2/22/09 delivery date.
    In the schedule line i do see the date as 2/22/09 only.
    The delivery was created with the following dates
    Picking = 2/17/09
    Transportation Planning = 02/18/2009
    Loading =02/18/2009 
    Planned GI= 02/18/2009
    Delivery Date = 02/22/2009
    How can the system give me the delivery date of a sunday when the calendar doesnt allow sunday as working day.
    Also the route time is 1 day in transit so i am not sure why the system is proposing a 3 day transit time?
    Can any one explain the behaviour of SAP for the delivery date logic

    Dspsac,
    Delivery date can be any date.  For instance, if your customer insisted on a Sunday delivery, you would accommodate him, regardless of any calendar.
    From the delivery date, the system counts backwards USING THE FACTORY CALENDAR ASSIGNED TO THE ROUTE by the number of days in the route.  You have to consult the FC assigned to your Route to determine if the GI date has been properly calculated.
    From the GI date, the system counts backward Pick/pack time, using the shipping point calendar, to arrive at Material availability date.
    Calculations are explained in SAP online help
    [Transportation and Delivery Scheduling|http://help.sap.com/erp2005_ehp_04/helpdata/EN/dd/5607e7545a11d1a7020000e829fd11/frameset.htm]
    Regards,
    DB49

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

  • Difference between Holiday Calender and Factory Calender

    What is the difference between Holiday Calender and Factory Calender.

    Holiday Calendars is used in Time and Payroll. It is Holiday Calender which is used in defining Work Schedules Rules for different regions.
    In simple, we can say... it is defined for Employees.
    Factory Calendar in turn in used in Shift Planning concept, T&E Mng, in defining/planning for Units.
    In simple, we can say... it is defined at Unit(Area) Level.
    Eg: Employee can be on holiday based on holiday calendar assigned to his area. But Factory may be running/open on the same day.
    Regards
    ...Sadhu

  • Difference between date info object in characteristics and keyfigure

    What is the difference between "date" data type in characteristic and keyfigure?
    Thanks in advance.
    Raj

    Hi Rajasekhar,
    If date is characteristics,query can be analysed based on date and filters can also be set using this date.
    If it is key figure query cannot be analysed based on date,
    Based on requirements,we have to decide whether it should be chatracteristic or key figure
    Regards
    Prakash

  • Difference between Data-centric and Document-centric use

    Hi,
    Can someone suggest what exactly is the difference between Data-centric and Document-centric use and examples if any.
    Thanks in advance.
    Chaitanya

    Maybe it helps if you look at it this way...
    Document centric: document centric use of xml data is data that you always use in its complete form. If you want to use the data, then you always will retrieve it as one entity or you save it as one entity. You are not interested in the xml data / information inside this "package" / document, you are only interested in its total form. Lets say, you have an invoice which can be printed on one sheet of paper. This paper that contains you data, will always be treated in a document driven way, that is, in its total representation: information containted on a sheet of paper (document).
    Data centric. data centric use of xml, is usage of data were the main interest point is focused on only pieces of the total set of xml data within a document. So instead of being interested in the whole invoice, you only are interested in information like "amount of money to be payed" or "invoicenumber".
    Handling of XML data comes with (hidden) costs. Knowing how your data will be used, has to be used, is one of the first steps in designing you environment (and will have an big impact if you choose poorly). For instance, if you know that your data will always be handled (and must be stored) in a document driven way, then it will make sense to store it based on CLOB based XMLType storage. This will garantee best performance retrieval for your xml document. If you now that your xml data has to be stored so that it can be handled in a data centric way, then Object Relational XMLType storage. If conditions are setup properly data retrieval, inserts and updates will be more cost efficient then when based on CLOB XMLType storage.
    There are more differences and "cost markers" when or when not to use CLOB, OR or for instance Binary XML. The first two chapters of the XMLDB Developers Guide for Oracle 11g will give you a good head start making some of those decisions. Be also aware that you probably will have to make compromises. The current state of XML, for example, doesn't have the final solution yet for a uniform storage method.
    Message was edited by:
    Marco Gralike

  • Difference between data form and data grids

    Can anybody tell me what is the difference between data form and data grid.
    Regards

    data forms have restricted access. user can not access all the dimension and members, based on his role and authentication can access the form.
    data grid r used for calculation, currency translation and coslidation and it consists of menu of options for diffrent consolidation based on cell status.
    data grid can have line item information, description and cell status information.

  • Difference Between Data Type and Data Object

    Difference Between Data Type and Data Object

    hi magesh
    <u><b>Data types</b></u> can be divided into
    elementary,
    reference, and
    complex types.
    <u><b>Elementary Types</b></u>
    Elementary types are the smallest indivisible unit of types. They can be grouped as those with fixed length and those with variable length.
    <u><b>Fixed-Length Elementary Types</b></u>
    There are eight predefined types in ABAP with fixed length:
    <u><b>Four character types:</b></u>
    Character (C),
    Numeric character (N),
    Date (D),
    and Time (T).
    <b>One hexadecimal type:</b>
    Byte field (X).
    <b>Three numeric types:</b>
    Integer (I),
    Floating-point number (F)
    and Packed number (P).
    <u><b>Variable-Length Elementary Types</b></u>
    There are two predefined types in ABAP with variable length:
    STRING for character strings
    XSTRING for byte strings
    Reference Types
    <b>Reference types</b>
    describe data objects that contain references (pointers) to other objects (data objects and objects in ABAP Objects).
    <u><b>Data Types</b></u>
    1) As well as occurring as attributes of a data object, data types can also be defined independently.
    2)You can then use them later on in conjunction with a data object.
    3) The definition of a user-defined data type is based on a <b>set of predefined elementary data types.</b>
    4) You can define data types <b>either locally in the declaration part of a program</b> using the TYPESstatement) or <b>globally in the ABAP</b> Dictionary.
    5) You can use your own data types to declare data objects or to check the types of parameters in generic operations.
    <u><b>Data Objects</b></u>
    1)<b>Data objects</b> are the physical units with which ABAP statements work at runtime.
    2) The contents of a data object occupy memory space in the program.
    3) <b>ABAP statements access these contents by addressing the name of the data object</b> and interpret them according to the data type..
    4) For example, statements can write the contents of data objects in lists or in the database, they can pass them to and receive them from routines, they can change them by assigning new values, and they can compare them in logical expressions.
    5) Each <b>ABAP data object has a set of technical attributes</b>, which are fully defined at all times when an ABAP program is running (field length, number of decimal places, and data type).
    6) You <b>declare data objects</b> either <b>statically in the declaration part</b> of an ABAP program (the most important statement for this is DATA), or <b>dynamically at runtime</b> (for example, when you call procedures).
    7) As well as fields in the memory area of the program, the program also treats literals like data objects.
    hope this helps u,
    reward points if useful
    Ginni

  • The difference between 'Pigment Based' and 'Dye Based' color inks?

    What is the difference between 'Pigment Based' color inks (as used in the HP OfficeJet 8500 series) and 'Dye Based' color inks (as used in the HP OfficeJet 7500 printer)?
    Thanks;
    Mark S

    Pigment based inks have small color particles suspended in a carrier (like paint).  Dye based inks have colorant disolved in the carrier (like water colors).  Pigment based inks generally have better lightfastness, dye based inks are generally better for photo quality on glossy media.  The following Google search has many pages with useful information.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • What is difference between data base structure and stucure  in program

    what is difference between data base structure and stucure  declared in program  level . can  explain cleary if knows

    Hi,
    Data base structure is global decalaration you can reffer this structure in any of your developments, when ever you cahange this structure the changes automatically will get updated in all the programs.
    coming to structures in program it is local to your program only, if you want to change the structure again you have to open the program and do the necessary changes.
    Reward if useful.
    Thanks,
    Sreeram.

  • Difference between Data staging and Dimension Table ?

    Difference between Data staging  and Dimension Table ?

    Data Staging:
    Data extraction and transformation is done here.
    Meaning that, if we have source data in flat file, we extract it and load into staging tables, we take care of nulls, we change datetime format etc.. and after such cleansing/transformation at then end, load it to Dim/Fact tables
    Pros: Makes process simpler and easy and also we can keep track of data as we have data in staging
    Cons: Staging tables need space hence need memory space
    Dimension Table:
    tables which describes/stores the attribute about specific objects
    Below is star schema which has dimension storing information related to Product, Customer etc..
    -Vaibhav Chaudhari

  • BEx variables: Date is outside Factory Calendar Image

    Good day
    A user received the following message when selecting the inpiut help for a date variable for a CRM query:
    " Date is outside Factory Calendar Image"
    I have checked tcode SCAL and noticed that the factory calendar for South Africa = 1996 to 2010. I checked the CRM source and their factory calendar is the same. In the mean time I have transferred the global settings for SAP DNI (parts) into BW and the factory calendar setting for South Africa now shows 1996 to 2015.
    Problem is that the CRM query still shows the same error message.
    Question:
    1) Should factory calendar settings for all SAP sources (Modules i.e. CRM...) be imported into BW, or is there another setting that I must check?
    Thanks in advance.
    Cj

    This is what I have done:
    Whe have the following R/3 modules (source systems in BW)
    SAP DNI
    SAP dFM
    SAP CRM
    SAP SRM
    etc.
    (Tcode = SCAL, selected 'factory calendar', selected 'rebuild tables')
    Firstly I have transferred the global settings for SAP CRM (as the BEX query is from CRM). Their factory date was 2012. This did not solve the problem.
    secondly, I did SAP DNI, their factory date = 2015, this also did not solve the problem.
    I then transferred the global settings for SAP dFM, our main reporting module, their factory date = 2020. The problem was solved.
    Seems as if only ONE of the modules depicts the factory calendar date for BEX.
    I have rested this again and only SAP dFM global settings rectified the BEx display problem.
    Hope this helps?

  • Billing plan date should be same as invoice date as per factory calendar

    Hi,
    We have two contracts, one is having billing plan material and another is having no billing plan material of same customer.When we go for the billing, as because these having all the header fields same it should give one single invoice of those two contracts,but its giving two invoices means the invoice splits.I check it and found, due to different billing date the invoice splits.If we go for VF04 we can force the billing date as same,but they are is a one batch running for this invoice.My invoice date of two contracts is 22.06.2014 which is factory calendar date and billing plan date is 26.06.2014 which is contract start date.My client is asking that can we get billing plan date same as invoice date as per factory calendar in standard to get single invoice? Kindly suggest me where is the settings.
    Thanks in Advance
    Regards,
    Braja

    Braja,
    Check this
    Goto  the billing plan tab in the corresponding line item and check the rule that is determined. Now go to the configuration of this rule table by using the path
    SPRO>SD> Billing> Billing Plan> Define rules for determining dates and choose your Applicable rule and click on the details.
    There you will see the Calendar ID field where you will have to maintain the applicable factory calendar. I think this should work and your billing date on the item relevant for billing plan should be the same as the other item.
    Hope this helps,
    Ravin

  • Schedule process chain based on factory calendar

    Hi Experts,   I'd like to schedule my process chain to run only on 3rd and 4th working day every month.  I tried to schedule it based on factory calendar. It does not seem to be working.  Any ideas why it is not working? or any suggestions on the best way to schedule it?
    Thanks!

    After scheduling, Did you check "Right click on start variant" to see scheduled jobs,
    You should see a released job, double click to check "Schedule Run".
    Whats the setting you maintained for "Do not execute before" ?
    Also Did you check any holiday in the Z1 calendar prior this day.
    VJ

Maybe you are looking for

  • AMD dual core 64 X2 and Opteron 1**; what motherboard.

    Hi to everybody, my name is Mauro and I am Italian. I have had for many years a lot of mobos MSI that are shown always reliable and with really excellent utility. An example the LiveUpdate that unlike utility of other brand is very comfortable and re

  • How can I re-arranging the Email display order?

    I have multiple E-mail accounts which all display nicely under MAIL / MAILBOXES. I'd like to re-arrange their display order in "Inboxes" and "Accounts" which both scroll within the same screen. Is there any way to do this other than delete them all a

  • Transition distortion and choppy bird wings - please help

    Hello. 2 issues please. *1. Transitions* Lately, I've noticed that when I use certain transitions, after they're exported they come out rough, pixelated, and grainy -- cross-stretch in particular. It looks fine in the project. You can see an example

  • Best way of accessing a runtime datastructure

    Hi all, Ive created program that reads in a file and creates a datastructure based on the information contained in the file. its based on how you create the constant pool for a java class file. The thing thats puzzling me is how do i gain access to t

  • Crossdomain.xml

    Hi, I already posted in PcP1's board but as the subject i think it's a "cross question" between web and PcP... I'd like to use the ability of jw player to put in playlist the content of a rss feed (from a podcasts' blog), i thought it could be an eas