Calculate due date

Hello guys:
I need your help here.
I try to build an application that has to calculate the due date for 14 days.
I have two date picker:
1)P11_BORROW_DATE
2)P11_RETURN_DATE
How can i calculate the borrow date plus 14days to become the return date shown in the in the second date picker.
I am using date format of (DD-MM-YYYY).
Can u guys explain to me step by step, for example : (html form header region, process, and also htnl attiributes, etc )
Edited by: user10258545 on 14-Sep-2008 10:57

hello
>> It can calculate the date after i press a button. It cannot calculate automatically when i change the borrow date in my application.
In his example, Denes is using AJAX. You can read more about AJAX with APEX in here - http://htmldb.oracle.com/pls/otn/f?p=11933:63 . This page should answer most of your questions.
I’m not sure why you think you must press a button in order to fire the AJAX code. You have complete control on the firing timing, by using the appropriate event. Using ‘onchange’ or ‘onblur’ will fire the AJAX code without pressing any button.
>> Btw, where should i load the process??
The processes involved with APEX are Application Processes with process point of “On Demand …”. They are been loaded on demand, by part of the AJAX process.
Regards,
Arie.

Similar Messages

  • Function Module to Calculate Due Date from Payment Terms?

    I'm writing an aged debtor report as the SAP standard one isn't quite right for our requirements.  Is there a function module that will calculate the payment due date if I give it the payment terms and the base line date?
    I did a search in SE37 but couldn't see one which fitted my requirements (I was searching on CALCDUEDATE and variantions of).
    Any suggestions welcome, thanks.
    Gill

    Hi,
    Use the FM FI_TERMS_OF_PAYMENT_PROPOSE for calculating the Payment due date
    call function 'FI_TERMS_OF_PAYMENT_PROPOSE'
      exporting
        i_bldat         = gv_bldat
        i_budat         = gv_budat
        i_cpudt         = sy-datum
        i_zfbdt         = gv_zfbdt
        i_zterm         = gv_terms_paym
        i_bukrs         = gv_comp_code
      importing
        e_zbd1t         = gv_zbd1t
        e_zbd1p         = gv_zbd1p
        e_zbd2t         = gv_zbd2t
        e_zbd3t         = gv_zbd3t.
    Regards,
    Dwaraka.S

  • Calculate due date for vendor payment

    hi friends,
    In my project i need to calculate the due date for vendor payment.as my client maintain different payment terms for different vendors am not able to pick the payment key from t052 table and calculate the due date.
    do anyone have a solution for this......
    prajith

    Hi
    You can insert Payment terms in Vendor master and also you can change or assign payment term while making transaction.
    But first of all you should have payment term.
    IMG -- Financial Accounting -- Accounts Receivable and Accounts Payable -- Outgoing Invoices/Credit Memos -- Maintain Terms of Payments
    Regards,
    Amit

  • Function module to calculate due date of FI document

    Hi All
    I need a function module to calculate the due date of FI document considering BSId Zterm ( Payment terms ) Document date , Basline date .
    Regards,
    chitra

    call function 'FI_TERMS_OF_PAYMENT_PROPOSE'
      exporting
        i_bldat         = gv_bldat
        i_budat         = gv_budat
        i_cpudt         = sy-datum
        i_zfbdt         = gv_zfbdt
        i_zterm         = gv_terms_paym
        i_bukrs         = gv_comp_code
      importing
        e_zbd1t         = gv_zbd1t
        e_zbd2t         = gv_zbd2t
        e_zbd3t         = gv_zbd3t.
    faede-shkzg = 'H'.
      faede-koart = 'K'.
      faede-zfbdt = gv_zfbdt.
      faede-zbd1t = gv_zbd1t.
      faede-zbd2t = gv_zbd2t.
      faede-zbd3t = gv_zbd3t.
      faede-bldat = gv_bldat.
      call function 'DETERMINE_DUE_DATE'
        exporting
          i_faede = faede
        importing
          e_faede = faede.
    *    if sy-subrc eq 0.
      duedate = faede-netdt. <<<<<< ------

  • Fixed day limit to calculate Due date for payments

    Dear Gurus,
    My Management wants to regulate its cash flows and want to use terms of payment in such a way that customer invoicing should be due on whole month evenly
    Proposed payment plan is that
    if invoices are created with 01 to 15th of the month, term of payment should be 40 days due net
    if invoices are created with 16 to 25th of the month, term of payment should be 30 days due net
    if invoices are created with 26 to 30th of the month, term of payment should be 25 days due net
    so according to above scenario, plan should be
    Invoice date     Payment terms     payment due date
    9/1/2011     40     10/11/2011
    9/15/2011     40     10/25/2011
    9/16/2011     30     10/16/2011
    9/25/2011     30     10/25/2011
    9/26/2011     25     10/21/2011
    9/30/2011     25     10/25/2011
    Requirement,
    Please advice how to cater it through OBB8 or should we have to look towards ABAP solution
    BR
    Sajida

    Hi
    Create the payment terms like
    1)
    Payment Terms           Z01
    Day Limet                    15
    In Payment Terms TAB
    Term      Percentage            No,of.days
    1             0.00                          40
    2)
    Payment Terms           Z01
    Day Limet                    25
    In Payment Terms TAB
    Term      Percentage            No,of.days
    1             0.00                          30
    3)
    Payment Terms           Z01
    Day Limet                    30
    In Payment Terms TAB
    Term      Percentage            No,of.days
    1             0.00                          25
    This will resolve your issue,we can create multiple levels with same payment term with different day limit
    Thanks
    Kameshwar Rao

  • Formula to calculate due date considering only business days

    Hello,
    I have a form which contains two fields: 'Start Date' and 'Due Date'.  The 'Due Date' field is automatically set , it's always 4 more days than the 'Start Date' field. 
    The problem is: Those 4 days must be only business days... e.g., if 'Start Date' is on Friday then the 'Due Date' should be set on the next Thursday. Saturday and Sunday are ignored. Anyone has any idea of how to make this formula? I need to put it into
    a calculated SharePoint column.
    Thanks in advance.

    Hello,
    you can use this calculated formula for Due Date:
    =IF(WEEKDAY(StartDate+4)=7,StartDate+6,IF(WEEKDAY(StartDate+4)=1,StartDate+5,StartDate+4))
    Be aware that it treats holidays and national bank holidays as business days unless they are on a weekend. 
    cheers, teylyn
    teylyn,
    Thank you for your example. However this formula doesn't seem to be entirely correct, right? Because
    according to the excel spreadsheet you sent, when the Start Date is May 29th (Thursday), Due Date
    will be on June 2nd (Monday) taking so only two days rather than four.
    Maybe a little change in this formula and we will be fine.

  • Formula to calculate due date considering only business days (Middle East)

    I have a form which contains two fields: 'Start Date' and 'Completion Date'; the 'Completion Date' field is automatically set, it's always 3 more days than the 'Start Date' field.
    The problem is that these 3 days must be only business days.
     - if 'Start Date' is on Sunday then the 'Completion Date' should be set to next Wednesday
     - if 'Start Date' is on Monday then the 'Completion Date' should be set to next Friday
     - if 'Start Date' is on Tuesday then the 'Completion Date' should be set to next Sunday
     - if 'Start Date' is on Wednesday then the 'Completion Date' should be set to next Monday
     - if 'Start Date' is on Thursday then the 'Completion Date' should be set to next Tuesday
     - if 'Start Date' is on Friday then the 'Completion Date' should be set to next Tuesday
     - if 'Start Date' is on Saturday then the 'Completion Date' should be set to next Tuesday
    Friday and Saturday should be ignored as 'Completion Date' (weekend in Middle East).
    Anyone has any idea of how to make this formula? I need to put it into a calculated SharePoint column.
    Thanks in advance for your help.

    Hi
    check my post
    http://www.romeodonca.ro/Lists/DB_IT/Adding%20a%20number%20of%20working%20days%20to%20a%20specific%20date
    If you need more details let me know
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Is it possible to calculate AR Due Date via OM Order Date ?

    Hi everyone,
    Our customer enters Payment Terms at Order Entry (OM).
    Example:
    Order Date : 02.01.2009
    Payment Term : 60 Days Net
    Shipment Date : 04.01.2009
    AR- Transaction Date : 04.01.2009
    Due Date has been calculated as : 05.03.2009
    This means that system considers Transaction Date for calculating Due Date. Is it possible to calculate due date by Order Date ?
    Thanks in advance
    Cagri
    Edited by: Cagri EGEMEN on Jan 6, 2009 5:13 PM

    No, sorry, that sort option is still missing.
    You may want to write feedback to Apple, to request this feature:
    Apple - Mac OS X - Feedback

  • Due date not calculated in F-28

    Hello,
    Can anyone tell me if in standard SAP, in F-28 (incoming payment) why the due date (or payment date) is not calculated ?
    I fulfilled posting date and document date (both 01/09/2009) and payment terms also (Z100 - 90 days end of month), but after saving the document and when i check it in FB03, i found that payment date (or due date) still 01/09/2009 and not 30/11/2009.
    Can someone explain why and in which cases SAP dosn't calculate the due date ?
    In advance, thank you for help

    Hi,
    The transaction F-28 - Incoming payment, in general it is used for receiving payments.  Then what is your requirement to calculate due data from posting date of this document.  Are you referring to value date in the bank item?  The due date will be calculated from baseline date in invoice, in this case you need to check the baseline date in the invoice (open item), right?
    Correct me, if my understanding on your requirement is wrong.
    thanks,
    Kumar

  • How to use due date in credit management

    hi,
    i want to calculate my credits according to net due date
    how can i use due date in credit management?
    thank you

    Not sure what do you mean by "use due date in credit management". 
    If  you want to calculate due date per billing document, for example, for such as customer statement, you may use "BSID-ZFBDT + BSID-ZBD1T" (Baseline date + Cash disc day 1).

  • Calculation of due date based on Business Days for FICA documents

    Hi All,
    I am working on project where SD - FICA integration is in picture. We post some charges through SD and FICA document gets posted on relevant Contract Account.
    Normally we create Sales Order using transaction VA01 and then we do Billing for this Sales Order through VF01. After billng is done, FICA document automatically gets generated.
    We have following requirement to be fulfilled.
    For the SD bills posted as above, I want to calculate due date of these bills based on Business Days for FICA document generated (SAP Standard calculate due date based on Calander days). We can use factory calander for calculating business days in relevant function module.
    I have checked in the system and it seems that event 1330 ( FM - ISU_DUE_DATE_DETERMINE) is not working in this scenario. Is there any other FM which I can use?
    Can anyone help me on this?
    Regards,
    Pradeep

    Hello Praeva ,
    The event 1330 has a sample FM FKK_SAMPLE_1330. It doesnt even have a Standard Function Module.
    You need to create a Installation-Specific FM and put your code to determine the Due Date based on the logic.
    Rgds
    Ram Kumar.

  • Due Date calculation

    Dear Gurus,
    Is there any std report is available which calculates due date for payments considering payment terma maintained in the purchase order . It should calculate due date from the date of GRN.
    Rgds,
    Saurabh

    Hi Saurabh,
    Check the following reports -
    S_ALR_87012078 - Due Date Analysis for Open Items
    S_ALR_87012084 - Open Items - Vendor Due Date Forecast
    Regards,
    Mike

  • DUE DATE FOR CREDIT MEMO

    Hello,
    I have a question about credit memo -due date.
    Using MIR7, MIRO for credit memo  the due date for net payment is the same with baseline date.
    e.g. document date:18/07/2007
    posting date:18/07/2007
    baseline date:18/07/2007                         terms of payment are 30 days
    the system issue due date : 18/07/2007 but correct is 18/08/2007
    What can I do to calculate due date correct for credit memo ? (baseline date + terms of payment) ?
    Thanks.

    Hello
    Check the settings in "Terms of Payment"
    Check what you have checked in "base line date calculation', I think you need to enter 1 in the box additional months.
    Next in the default date setting, check if you ticked "posting date "
    Reg
    *assign points if useful

  • F-32 Due Date issue

    In SAP ECC6.0, we use F-28 to apply payments from customers.  We do not apply that payment to an invoie and leave the payment on account.
    The accounting clerk then clears customr open items (invoices and payments) using F-32.  For partial payments, they claear the original invoice nad payment documets and use residul amount as a new open item.
    The problem is that if we put the original baseline date on the residual item, the due date does not get calculated as per payment terms.  The due date becomes baseline date.  If the original invoice's baseline date is Apr 30, payment terms is 15, the original document has due date of May 15.  However, in residual, when they enter baseline date as Apr 30, terms as 15, the due date remains Apr 30.  To counter this, we have asked them to put the baseline date as due date of the original document.  When that happens, due date is right but the aging is wrong.
    Help...

    Check customer tolerance group configuration. Mark field "payment term from invoice" as checked in residual section.
    This will transfer baseline date and terms from original item to residual item and calculate due date accordingly.

  • Due Date Calc

    Hi Experts,
    I am an ABAPer. I am doing an interface to block/unblock a customer based on his credit limit (KNKK table) for a specific Co Code and block him on
    KNB1-SPERR.
    My Requiremnt : I need to calculate due date for a customer whose payment is in arrears or overdues?
    Please tell me how to do this?
    Thanks
    Dany

    Hi Dan,
    hope this link can help you :
    BSIK

Maybe you are looking for

  • Beginning Balance of Accumulated Repair Cost and  Budget Control

    Hi All, My client has two requirements which I have problems working on in SAP. 1. How do we put the beginning balance of accumulated repair cost of each equipment? Example Equipment A had $ 40, 000 worth of repairs prior to the company's use of SAP,

  • Purchased Quicktime MPEG2. No audio.

    I've just purchased Quicktime MPEG2 playback component for my Mac OS X, and downloaded MPEG Streamclip, and I'm getting no audio from the DVD I imported into imovie. What do I do now?

  • Strange problem after installing iTunes 8.1.1

    I have two accounts on the same iMac. iTunes Music folder is in the Share Folder so both account can acccess it. After upgrading to 8.1.1 one account does not shows up the library nor the Apple TV connected. When logging in to the other account it sh

  • Irregularly Shaped Windows

    Many applications use windows that are not perfect rectangles. For example, Windows Media Player has several "skins" that can make it circular, square, or whatever, some popups look like oval speech bubbles, etc. How can I create an irregularly shape

  • Slow opening archived citadel database on first read

    I have archived a citadel database using the archive vi. I then copied this database to another computer. when I try to read data from this archived database, it is taking a long time to return the first set of data (5-10 minutes). New attempts to re