Baseline date calculation

Hi,
We have a requirement to exclude non-Business days while calculating Baseline date(for the Accounting Document created on saving the Billing document)
Currently the Baseline Date being populated in the Accounting Document is Document date + 5days(including Holidays).
For eg
Current Scenario
Document Date: 12th Feb 2008
Baseline date: 17th feb 2008.
Requirement:
Document Date: 12th Feb 2008
Baseline date: 19th feb 2008(Excluding Sat & Sun).
Request you to share useful info in this regard.
Thanks
Binu

Hi,
Use user exit RV60FUS5 for these base line date calculations.
Thanks
Krishna.

Similar Messages

  • Baseline date calculation in Invoice verification (MIRO)

    Dear experts,
    I need to set baseline date after 40 days from document date in MIRO.
    Baseline date calculation of "Terms of Payment" in IMG has two parameters:
      ・Fixed day
      ・Additional months
    We cannot set 40 days in these parameters.
    Can anybody tell me how to set baseline date not month but date(not fixed day) ?
    Please advise me on the settings SPRO>MM>Purchasing>Vendor Master>Define terms of Payment.
    Thanks & Regards
    Ken

    Hi,
    You can't do this.
    The baseline date is the date on which the calculations are made.
    So if you have 40 days to pay, this will be 40 days from the baseline date.
    This will either be the document date or another date, but you can't (in standard SAP) have the baseline date as "X" days after "Y".
    So the baseline date is the date of an event (e.g. the date that the Invoice was posted) not a calculation.
    Is it possible that you have misunderstood the use of this date?
    If you just want to ensure that the payment date is 40 days after invoice recipt, then set you just have to enter the number of days in the payment terms and the baseline date stays as the invoice date (etc.)
    Steve B

  • Baseline date calculation excluding non-Business days

    Hi,
    We have a requirement to exclude non-Business days while calculating Baseline date.
    Currently the Baseline Date being populated in the Accounting Document is Document date + 5days(including Holidays).
    For eg
    Current Scenario
    Document Date: 12th Feb 2008
    Baseline date: 17th feb 2008.
    Requirement:
    Document Date: 12th Feb 2008
    Baseline date: 19th feb 2008(Excluding Sat & Sun).
    Request you to share useful info in this regard.
    Thanks
    Binu

    Hi,
    Use user exit RV60FUS5 for these base line date calculations.
    Thanks
    Krishna.

  • Payment terms - Baseline date calculation.

    Hi
    In payment terms configuration, we have option "No Default" for determining Base line date.
    If we have payment terms with above configuration.......
    In Fi, Baseline field will be blank while posing Customer Invoice, in which case We can enter baseline date manually. However If Invoice is generated from SD-billing document, we dont have any field "Baseline date" while posting billing doc. In such case how system determines Baseline date. When I checked few billing documents, Baseline date is defaulted with BIlling date even "No default" option is selected.
    Is there any configuration in SD that prompts this action. or is it always billing date is defaulted ?
    Please clarify

    Hi !! Madhu,
    There is a way, but not exactly what u require! You can check while maintaining the condition records in t.code VK12, observe the last two columns available, one is called a 'Fixed Value date' & the other is called 'Add Val Days'.
    If you make any entry in the field 'Fixed Value date' this will be the date from which the payment terms start taking effects. Or if you make an entry in Add Val Days' in this case the payment terms start taking effect from billing date + the no. of days mentioned in this column.
    You cannot make a entry in both 'fixed value date' & 'Add Val date'  fields at one time.
    Give your feedback if this has worked for you.
    Regards,
    PATHIK

  • Baseline date calculation from the terms of condition

    Dear,
    I need to calculate baseline date from the delivery date of the last consignment date of the GR. It means if there are 3 goods receipts for the purchase order then the due date should be = Last GR date + number of days in the terms of payment.
    Is it possible in Standard SAP? I have tried using the Base line date and document date in the terms of payment. It is not working
    Please help

    Hi,
    This requirement can't be fulfilled in standard SAP. Give logic coding in the program and can print the document for only sales order and not for cost center and Asset. You can custamize interactive report according to your requirement.Give the inputs to ABAPer and get it done. I hope this will help you. Thanking you.

  • Baseline Date for Due Date Calculation required for S/L indicators

    Hello,
    Iu2019m facing the following problem
    Iu2019m trying to insert an invoice (using a customer master record) but the system blocks me because the field ZFBDT (Baseline Date for Due Date Calculation) is a Required entry.
    The strange thing is  that if I use a S/L indicators the field is mandatory, if not the date may be defaulted.
    I checked in OB41 but there are non differences between Special PK and normal PK.
    Any ideas?
    Thanks in advance
    Alberto

    Dear Alberto,
    the field "Due On (BSEG-ZFBDT)" cannot be controlled with field status.
    It is controlled by field attribute of screen painter (Tcd: SE51).  If
    you look at element attribute for "Due On" field, a flag for required
    entry is activated.  In this case, field status has no control over
    the field.
    As of release 3.1G, field BSEG-ZFBDT is hardcoded in most FI screens
    to be mandatory and cannot be influenced by any field status
    changes. This situation is only valid when posting with special G/L
    indicator (ie PK 29/39).
    SAP development team has determined that this is a critical field.  The
    reason behind this is that this special GL screen and the data entered
    here are very important to many other programs. This data affects
    liabilities and receivables where due date is necessary almost
    everytime. Thus, we changed this field in this screen in order to
    prevent problems in many other areas. The reason is explained further
    in note 95079.
    I hope this helps You.
    mauri

  • Bapi_acc_document post is not calculating baseline date based pymnt terms

    Hello friends,
    Im using bapi_acc_document_post to post db and cr note and i m passing payment terms in the input file but the bapi is not calculating baseline date .
    pleasee let me knw the solution.
    Regards,
    Sunny

    that's the disadvantage of bapis and direct input in opposite to BDC. So use "old" rfbibl00 with batch input!
    A.

  • Baseline Date as the Document Date

    Hi,
    I have a query on Payment Terms which we maintain in the Posting Parameters->Postings Tab page in RE-FX Lease Out Contract.
    I maintain a payment term for 10 days in the RE-FX Contract.
    I have maintained a Condition which is due on 1st of every month with a monthly frequency.
    When i simulate the contract for planned Cash Flow, it shows me the conditions which are due to be posted on 1st of every month. Now, here is a scenario wherein I am unable to post the conditions through Periodic Posting (RERAPP) on 1st and i eventually carry out the Posting on 16th of that month. Hence I maintain Document Date and Posting date in the T Code RERAPP (Periodic Posting) as 16th of that month.
    Now when i open the Customer Line Items in FBL5N, i find that the Document Date and Posting date to be 16th whereas the Baseline date to be 1st of that month. This makes the calculation of Due Date totally wrong since the system takes 1st of that month as Baseline Date and adds Payment Term days (10 days) to it and shows 11th of that month as the Net due date (which instead should have been 26th of that month.
    I tried changing the definition of Baseline Date in the Payment Terms definition to Document Date but it still did not bring the desired effect.
    Pankaj

    Hi,
    I face similar problem but not involving TRM.
    I've payment term set-up in OBB8 and stating default baseline date = document date.
    But in FBL5N system is always retrieving posting date as baseline date. Is there any other setting prevailing over payment term definition?
    Regards,
    Baptiste

  • Baseline date for payment due date.

    Hi,
    In FB60 and Miro, Baseline date for calculating due date for payment is taken as default as document date, as per setting in payment terms. But I want to take this date as date of GR/SE. Can we do this. I also want to make it gray and dont want user to change it. Please suggest how to do it.

    Hi
    go through the link answered by me.
    Re: Substitution - Baseline Date to be replaced by the Goods Receipt date
    the Goods receipt date can be defaulted as Baseline Date.
    tell your ABAP consultant to check the BADI and do the necessary.
    regards
    venkat

  • Recurring document - FBD1 with incorrect due-date calculation for AP

    Hi Gurus,
    in our ECC 6.0 system we are creating with F.14 FI-documents (SAPF120) based on recurring documents (created with FBD1) for various purposes (e.g. Recurring entries for IC-business).
    Therefore it's important that the system provides in the final processing of the recurring documents the correct net-due-date in the AP-document based on the document date and the payment term included in the AP-masterdata (LFB1-ZTERM).
    Problem:
    The processed FI-document contains the correct payment term but the calculated net-due-date with regards to the document date (BKPF-BLDAT) isn't correct. A Dummy-Update of the FI-document with FB02 on field BSEG-ZTERM provides finally the correct net due date but this a not recommended solution.
    Any ideas how to solve that issue???
    Thanks for replies.
    BR, Bernd

    Hi Vishnu,
    the defined payment term is
    fix day: 15
    additional month: 1.
    Default for baseline date is posting date
    Therefore the expectation is that net due date is calculated for posting date
    e.g. : 01.02.2012 to 15.03.2012.
    The line item after processing in FI-document shows :
    Posting Date : 01.02.2012
    Bline Date:   01.02.2012
    Days/percent: 35
    Net due date: 07.03.2012 (dd.mm.yyyy)
    That's wrong according to my understanding of the payment term definition.
    BR, Bernd

  • BADI MRM_PAYMENT_TERMS - Baseline date

    Hi All,
    The requirment I have is to automatically populate the Baseline date based on the GR posting date and Invoice posting date.
    While creation of the Invoice in MIRO,
           1) If the GR posting date is greater than the Invoice posting date then the Baseline date should be populated with the GR posting date.
           2) If the Invoice posting date is greater than the GR posting date then the Baseline date date should be populated with the Invoice posting date.
    This logic I have implemented in  the BADI MRM_PAYMENT_TERMS which works as expected.
    But the standard calculation of 'DUE ON' date, Payment terms, Cash discount days are not performing according to the standard functionality and these values do not get displayed.
    Why is this getting affected?
    Also, please suggest if there is any other way to achieve this requirement without any deviation from the standard functionality.
    Below is the code that I have implemented in the BADI.
    *----Defining the structure for work area for EKBE table data fetch
      TYPES: BEGIN OF TY_EKBE,
              EBELN  TYPE  EBELN,
              EBELP  TYPE  EBELP,
              BELNR  TYPE  MBLNR,
              BEWTP  TYPE  BEWTP,
              BWART  TYPE  BWART,
              BUDAT  TYPE  BUDAT,
             END OF TY_EKBE.
    *----Defining the work areas
      DATA: WA_EKBE  TYPE                   TY_EKBE,          "Work area for History per Purchasing Document table
            WA_DRSEG TYPE LINE OF           MMCR_TDRSEG.      "Work area for Invoice doc items
    *----Checking if the Company code is IBTG
      IF I_RBKPV-BUKRS = 'IBTG'.
    *----Selecting data from EKBE table to fetch the latest GR posting date
        SELECT EBELN
               EBELP
               BELNR
               BEWTP
               BWART
               BUDAT
        INTO WA_EKBE
        FROM EKBE
        FOR ALL ENTRIES IN TI_DRSEG
        WHERE EBELN = TI_DRSEG-EBELN
        AND   BEWTP = 'E'
        AND   BWART = '101'.
        ENDSELECT.
    *----Looping at Invoice Doc. Items table into its work area
        LOOP AT TI_DRSEG INTO WA_DRSEG.
          IF WA_EKBE-BUDAT > WA_DRSEG-BUDAT.                 "If GR posting date is greater than invoice date
            E_ZFBDT = WA_EKBE-BUDAT.                         "Assigning the GR date to Baseline date
          ELSEIF WA_EKBE-BUDAT < WA_DRSEG-BUDAT.             "If Invoice date is greater than GR date
            E_ZFBDT = WA_DRSEG-BUDAT.                        "Assigning the Invoice date to Baseline date
          ELSEIF WA_EKBE-BUDAT = WA_DRSEG-BUDAT.             "If Invoice date is Equal to GR date
            E_ZFBDT = WA_DRSEG-BUDAT.                        "Assigning the Invoice date to Baseline date
          ENDIF.
        ENDLOOP.
      ENDIF.

    Hi,
    if you go to se18 and display badi MRM_PAYMENT_TERMS,
    in "Interface" tab if you double click on "Example implementation class"  CL_EXM_IM_MRM_PAYMENT_TERMS
    and then in class interface CL_EXM_IM_MRM_PAYMENT_TERMS, if you display the code of IF_EX_MRM_PAYMENT_TERMS~PAYMENT_TERMS_SET you will find three examples:
    METHOD if_ex_mrm_payment_terms~payment_terms_set .
    *--- fill all export-parameter ----------------------------------------*
      e_zfbdt = i_rbkpv-zfbdt.
      e_zbd1t = i_rbkpv-zbd1t.
      e_zbd1p = i_rbkpv-zbd1p.
      e_zbd2t = i_rbkpv-zbd2t.
      e_zbd2p = i_rbkpv-zbd2p.
      e_zbd3t = i_rbkpv-zbd3t.
      e_zlspr = i_rbkpv-zlspr.
    *** Example 1: Setting ZFBDT depending on goods receive
      DATA: h_drseg TYPE mmcr_drseg,
            h_budat TYPE mmcr_ekbe-budat.
      TYPES: BEGIN OF x_datum ,
               budat LIKE h_budat,
             END OF x_datum.
      TYPES: BEGIN OF x_ekbe_gelesen,
               ebeln TYPE ekbe-ebeln,
               ebelp TYPE mmcr_ekbe-ebelp,
             END OF x_ekbe_gelesen.
      DATA: h_ekbe_gelesen  TYPE STANDARD TABLE OF x_ekbe_gelesen,
            h1_ekbe_gelesen TYPE x_ekbe_gelesen.
      DATA: h_datum TYPE STANDARD TABLE OF x_datum,
            h1_datum TYPE x_datum,
            h_ebeln LIKE h_drseg-ebeln,
            h_ebelp LIKE h_drseg-ebelp.
      LOOP AT ti_drseg INTO h_drseg WHERE selkz = 'X'.
        SELECT budat FROM ekbe INTO h_budat WHERE
             ebeln = h_drseg-ebeln  AND
             ebelp = h_drseg-ebelp  AND
             lfbnr = h_drseg-lfbnr  AND
             lfgja = h_drseg-lfgja  AND
             lfpos = h_drseg-lfpos  AND
             vgabe = '1'.
          IF sy-subrc EQ 0.
            MOVE h_budat TO h1_datum-budat.
            APPEND h1_datum TO h_datum.
          ENDIF.
        ENDSELECT.
      ENDLOOP.
      SORT h_datum DESCENDING.
      READ TABLE h_datum INDEX 1 INTO e_zfbdt.
    *** Example 2: calculate best payment terms based on manual settings
      DATA: h2_drseg TYPE mmcr_drseg,
            h2_zbd1p TYPE mrm_rbkpv-zbd1p,
            h2_zbd1t TYPE mrm_rbkpv-zbd1t,
            h2_zbd2p TYPE mrm_rbkpv-zbd2p,
            h2_zbd2t TYPE mrm_rbkpv-zbd2t,
            h2_zbd3t TYPE mrm_rbkpv-zbd3t,
            h21_zbd1p TYPE mrm_rbkpv-zbd1p,
            h21_zbd1t TYPE mrm_rbkpv-zbd1t,
            h21_zbd2p TYPE mrm_rbkpv-zbd2p,
            h21_zbd2t TYPE mrm_rbkpv-zbd2t,
            h21_zbd3t TYPE mrm_rbkpv-zbd3t.
      LOOP AT ti_drseg INTO h2_drseg WHERE selkz = 'X'.
        SELECT zbd1p zbd1t zbd2p zbd2t zbd3t
          FROM ekko
          INTO (h2_zbd1p, h2_zbd1t, h2_zbd2p, h2_zbd2t, h2_zbd3t)
          WHERE ebeln = h2_drseg-ebeln.
          IF sy-subrc EQ 0.
            IF h2_zbd1p GT h21_zbd1p.
              MOVE h2_zbd1p TO h21_zbd1p.
              MOVE h2_zbd1t TO h21_zbd1t.
              MOVE h2_zbd2p TO h21_zbd2p.
              MOVE h2_zbd2t TO h21_zbd2t.
              MOVE h2_zbd3t TO h21_zbd3t.
            ENDIF.
          ENDIF.
        ENDSELECT.
      ENDLOOP.
      IF h21_zbd1p GT i_rbkpv-zbd1p.
        MOVE h21_zbd1p TO e_zbd1p.
        MOVE h21_zbd1t TO e_zbd1t.
        MOVE h21_zbd2p TO e_zbd2p.
        MOVE h21_zbd2t TO e_zbd2t.
        MOVE h21_zbd3t TO e_zbd3t.
      ENDIF.
    *** Example 3: Setting ZLSPR depending on currency
      CONSTANTS: c_zlspr_r VALUE 'R',
                 c_waers_itl TYPE waers VALUE 'ITL'.
      IF i_rbkpv-waers = c_waers_itl.
        MOVE c_zlspr_r TO e_zlspr.
      ENDIF.
    ENDMETHOD.
    your case is similar to the first example.
    Best regards.

  • Payment term and Baseline date are not appear after residual clearing

    Hi Friends,
    We have an issue in Payment term. Recently small changes were made in OBA3.Here they enable the option of "Payment term from invoice". the function of this is to - copy  the payment term and baseline date form invoice to Partial item .Due to enable of this function after residual clearing the payment term and base line fields are get empty.
    Now user want to get these fields to be updated even not changes take place in OBA3.Can you please suggest me the way,  with out changes in OBA3 can we get payment term and baseline date field after residual clearing .Please suggest .
    Thank you
    Regards,
    Dharma

    Hi Julie,
    Thanks for your reply..
    Here the issue is, the user using Baseline date for two specific purpose.
    1.Due day calculation-auditing purpose
    2.Agning report
    For due day calculation they recently enable the option "payment term from invoice in -OBA3".Due to active the function,system copy the payment term and baseline date from invoice to residual item.it means the residual item having baseline data as invoice date not posting date.
    But for aging report purpose it has to be update posting date.
    now user want to meet these both requirement .How can it possible .Please suggest.
    Thank you
    Regards
    Dharma

  • Baseline Date of terms of payment

    HI,
    I need some help with something, how i can enter the baseline date of term of payment manually? I see in the OBB8, that appear 4 option of baseline date, but not manually.
    Is there any configuration in SD that prompts this action?
    please give me your answer with detail, i new in this.
    Thankz,

    Hi Ryan,
    in the default for baseline date - select No default.
    while creating a sales order you can enter the date on which baseline date should be considered for calculating the payment terms days. this field is avaiable in Billing Tab of Sales order at Header level and Item level.
    Please let me know, if you more clarifications.
    thanks
    rajam

  • Error on invoice "specify payment period baseline date".

    Hi Experts,
    When I create ZMIRO, ZMIRO it keeps
    asking for a baseline date which we have never had to do before
    Payment terms  filled blank, but teh system throughs error message "specify payment period baseline date".
    I
    Please help.
    Thanks,

    Dear,
    System will want to calculate due for payment to vendor for this invoice it must know baseline date from which it should start calculating the due date. Generally baseline date is determined from payment term but it is empty in your case. Enter a payment term in vendor master so that system will default the baseline date from settings done in payment term.
    Baseline date has to exist in the invoice document.
    Regards,
    Chintan Joshi

  • Payement terms Baseline date

    Hi All,
    I had a billing document created on 01.04.09 and I am releasing the same to accounts on 05.04.09. Now my billing date will be 01.04.09 and payment terms C010 will start the calculation of the given 10 days from 01.04.09. But I need the start date should be the release date i.e., 05.04.09. For this I have changed all the given options in OBB8 " Default for baseline date ". But still system is taking the baseline as 01.04.09 only.
    So can anyone suggest me how to change the baseline date as per my requirement.
    Regards
    Ratna

    The payment term config only takes the baseline date from the Billing date even if u put the entry date or anything else there.... all those settings are for the FI documents posted manually......
    whenever u use VF01 the baseline date is the billing date....
    Now how to change it: if u have a sales order then there is a field called Value date.... it passes the value from SO to billing..... so if u put the value date as 05.01.2009 then the baseline date will capture the value date... so whenever the value date is given then syytem picks up that date instead of the billing date..... This field is not editable in the Billing document..........
    Also u can change the baseline date manually after FI doc has been posted but it will only affect the AR aging not the actual invoice...

Maybe you are looking for

  • GR/IR not auto clear in system

    Hi All, GR/IR not auto clear in system Normally every week end the system automatically clears the open items in f.13, But this time it has not clear the open items What could be the reason the system not to clear open items on the week end. So that'

  • Performance Tuning in JDev11.1.14

    Hi Experts, Any docs to describe how to improve the performance tuning of the ADF (across the layer) application. JDev 11.1.1.4g thnks

  • USB 2.0 issue with sleep mode--help!

    hey there, so i've searched this forum's board and found that it seems quite a few people have had issues with USB 2.0 and sleep mode on the mac. most of what i read, however, comes from people not being able to put the computer to sleep once new USB

  • Why does it say an unkown error accurred (-50)

    why does it say that everytime i try to put music it doesnt let me plzzzzzzzz help

  • Multiple reports in one region

    Hi Ive got 2 views that i want to display in one region, as i have to pass in a value into a page item froma column link, is this possible or is there such a thing as a glbal item that can be incorporated into multiple regions. Marco