FM to calculate discount based on Payment Terms (for Accounting document)

Hi-
I am refering to Cash discount calculated on an accounting document.
Discount is calculated based on Payment Terms. [ Baseline date: date from which discount period starts; Cash discount terms ; Cash discount percentage rates.]
Is there a standard SAP FM that i can use in my custom program calculate discount ???

Hi,
Try this.......
CALL FUNCTION 'ISU_S_DISCOUNT_PROVIDE'
EXPORTING
x_rabzus = st_discount_hdr-rabzus
x_ab = wa_discount_item-ab
x_wmode = '2'
IMPORTING
y_obj = xy_obj
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
OTHERS = 4.
Regards,
Jyothi

Similar Messages

  • Report that display payment terms for account receivables customers

    Hello To all,
    Please can you help us to find a standard report that list account receivables customers with their payment terms.
    Regards.
    Zied.

    Hello,
    Thank you for your response but user has not authorisation to access to SE16 and we need a report to do this.
    Or may be we can create a query that use KNB1 table.
    Regards.
    Zied.

  • Change payment terms for customer documents

    Hi Guys,
    Is it possible to change for several customer documents the payment terms?
    I tried to do using FBL5n but I couldn`t do it.
    Thanks
    Daniel Dorta

    Hi,
    You can do the mass change in FBL5N.
    Please select the line items you would like change (Open items). You will see a small check box against each document number.
    Then click on mass change button - Please see mass change button available.
    Give the payment terms that you want change.
    Say OK
    Regards,
    Ravi

  • FB10 - Default payment term for Credit memo

    Hi,
    I have question regarding the Payment terms in FB10- Credit memo entry (KG).
    You must be aware that when we use F-43 or FB60 for posting Vendor Invoices (Document type KR), the payment terms on the screen will be "*", which means it should be picked up from the Master data. Similarly for posting Vendor Credit Memos (Doc type KG) using F-41 or FB65, the payment terms field is blank, which means 'Immediate payment'.
    In case of FB10, Fast entry transaction code for both Vendor Invoice and Vendor Credit memo, the Payment terms for KR document is *. But for doc type KG (Credit memo), payment terms field is not blank. Instead, it is shown as *. Why is it? How can we make this blank for KG document postings. Please advise. Kindly revert in case you have any questions.
    Regards,
    Vinod

    HI,
    Please check the note 17410 for explanation.
    Regards
    Ravinagh Boni

  • How to calculate  Payment not yet due based on payment terms

    Dear All
    i need to calculate the payments which are not yet due based on payment terms in the ageing report of payables.
    FOR Ageing : i used this n this works but i want calculate the payment payment which is not yet due based on payment terms.
    SELECT ail.amount amt, ail.corrected_inv_id inv_id,
    aiv.vendor_id ven_id
    FROM ap_invoice_lines_v ail, ap_invoices_all aiv
    WHERE 1 = 1
    AND ail.invoice_id = aiv.invoice_id
    AND aiv.invoice_type_lookup_code IN ('DEBIT', 'CREDIT')
    AND ail.corrected_inv_id IS NOT NULL) mem
    WHERE 1 = 1
    and inv.invoice_id=paid.invoice_id(+)
    and aida.invoice_id=inv.invoice_id
    AND to_char(to_date(aida.accounting_date) + due.due_days) BETWEEN to_date(:p_invdate) - 90 and to_date(:p_invdate) - 61
    AND ven.vendor_number BETWEEN NVL (:p_supplier, '00000')
    AND NVL (:p_supplier, '99999')
    Regards
    Shaizy
    Edited by: user11298424 on Aug 7, 2012 7:53 AM

    sorry Francis,
    this will run:
    REPORT zforum101 .
    TABLES: faede, bsid, bsega, t052.
    PARAMETERS : p_zterm LIKE t052-zterm DEFAULT '1400'.
    PARAMETERS : bldat TYPE sy-datum DEFAULT '20060801'.
    SELECT SINGLE * FROM  t052
           WHERE  zterm  = p_zterm.
    CLEAR faede.
    MOVE-CORRESPONDING t052 TO faede.
    MOVE: t052-ztag1 TO faede-zbd1t,
          t052-ztag2 TO faede-zbd2t,
          t052-ztag3 TO faede-zbd3t.
    MOVE bldat TO faede-bldat.
    faede-koart = 'D'.
    CALL FUNCTION 'DETERMINE_DUE_DATE'
         EXPORTING
              i_faede = faede
         IMPORTING
              e_faede = faede
         EXCEPTIONS
              OTHERS  = 1.
    bsega-netdt = faede-netdt.
    WRITE bsega-netdt.
    A.
    pls reward useful answers
    Message was edited by: Andreas Mann

  • How to block sales order and Delivery order based on payment terms ?

    Hi  experts ,
    I have an sceneria to block the sales order and delivery based on payment terms ?
        For eg )  Customer payment terms  is Z001 which is 5 % discount within 30 days , No discount within 60 days.
                        My requirement here is a)   if open item exceeds 30 days , delivery to be blocked
                                                               b)  if open item exceeds 60 days , Sales order to be blocked..
    Pls give me a solution....

    HI Kakas,
    If possible in configuration , pls let me know .
    payment terms is     5 % within 30 days if customer pays
                                     No discount  within 30 to 60 days if customer pays.   
    Here , i need to control , sales order to be allowed and delivery not to be allowed  for a customer if any open invoice within 30 to 60 days and sales order to be blocked if  open invoice exceeds 60 days..
    Is this possible in Credit management ?.. 
    pls let me know...
    with Regards
    S.Siva

  • Enhanced Vendor Payment Terms for multiple discounts days

    Hi
    There is requirement of multiple discount days in a single vendor payment term.
    Standard SAP provides only 2 discounts for a payment term.
    Now we need as many as 30 discounts per vendor payment term.
    How do we achieve this?
    We are using 4.6c SAP version....
    Very urgent please help..
    Regards,
    Krishna prasad

    Hi Krishna,
    Did you find the answer?
    I too have a similar problem; if you could find the answer yourself please help.
    Regards,
    KKG

  • Payment terms for Customer Invoice with a credit line item

    Hi all,
    We have a business scenario where we create customer invoices on a weekly basis. The payment terms for these items are a certain payment discount if paid within 365 days. Included in these invoices are credit items which relate to refunds that are due to the customer.
    Below is a scenario for Customer XXXX:
    Invoice 1 Baseline date 12.01.2007
    Invoice 2 Baseline date 08.02.2008
    Invoice 3 Baseline date 15.02.2008
    I have set up a payment run for this customer to direct debit their items. In my scenario I only want to pick up the first two invoices.
    Therefore I set up the payment run to pick up those items which are due up to 09.02.2009, setting the next payment run posting date to 10.02.2009. I would expect the system to pick up only the first two invoices.
    What the system does is that it pays/collects the first two invoices in total, but then selects only the credit items of invoice 3. I would expect it to ignore Invoice 3 altogether.
    In another example if I had the same invoices, but invoice 3 did not have any credit items involved, then it does ignore invoice 3 as
    expected.
    I need to understand why for the credit items within a customer invoice are treated differently in relation to payment terms.
    Thanks
    Natalie

    In the customer master assign a different credit memo term than the payment term.
    Try changing the credit memo term for 3rd Invoice as such it do not fall in your selection criteria.

  • Payment terms for Invoice plan

    Hello All,
    I've a Partial Invoicing plan for my equipment purchase. The first milestone payment is along with Purchase order. Means need to pay immediatly.
    My PO is having payment terms - Payment 90days after end invoice month. This payment term is ok for all milestone payments. But for the first one, I need to pay immediatly.
    Is it possible to have different payment terms / bye pass payment terms for the first milestone?
    I don't want to use downpayment option for this.
    RaviChandran

    Hello.. Thanks for your feedback.
    But in IV, normally due date is calculated from baseline date. Base line date will be defined by IV creation/posting date (Based on IMG setting). So by making the START Date for invoice Plan as Past Date will not work.
    SS

  • Payment Terms for Customer

    Hi Guys
    We have few payment terms for our company. Now we want to restrict payment terms based on the customer number
    For example Payment term Z0001 for customer group 001 .....
    Is it possible to restrict by doing some configuration
    The next is we want to block few payment terms. Is it possible to block a payment terms
    Warm Regards
    Bala

    Hi
    The payment block is fine, i can either add a new payment block reason or i can assign the existing block reason and i can proceed
    But what ever you have said will not control my user with the solution we have give, then the system will run if my user did things on correct process
    I suppose we can do a validation, for this customer group this payment terms are allowed.
    Something like that.
    Hope it will work, can you put your valid suggestion
    So at any point of time, it cannot be done by any standard configuration - hope iam right
    Warm Regards
    Bala

  • How can we maintain multiple payment terms for a customer

    how can we maintain multiple payment terms for a customer?

    Hi,
    You can leave the Payment terms field in the sales area data tab blank. and you can enter the payment terms at line item level while creating the sales order. By that you will achieve multiple payment terms for the same customer in the same sales order. but the invoice will be split by standard SAP based on the payment terms.
    Also difference between the "Payment Terms" field in Company code tab and the sales Area tab is.
    Company code tab payment terms are used only for the documents that are posted directly in FI module. for example credit and debit memos posted directly in FI and as a leading practice this should always be "payable Immidiately"
    Sales area Tab payment terms are the one which are copied on to the sales order header data which are valid for all the line items unless you specifically mention different payment terms at line item level.
    Regards,
    Shantanu

  • Payment Terms for Credit memos

    Hi,
    Please explain to me what is the significance of payment terms in credit memo. I understand that credit memo are sort of returns (sales returns or purchase returns). I am able to understand the payment terms for an invoice (which would determine the due date for the receivables and payables). But I am not able to understand the use of payment terms in credit memo...
    Please assist.
    Thanks in anticipation
    Satya

    Hi Satya
    A credit Memo without an Invoice Reference is always due on the Baseline Date (the Exceptions to this are Credit Memos which have an explicitly-stated Value Date):this Logic was introduced starting  from Release 3.1I.
    Details in Note 79871 and 84137.        
    As a result, it is due immediately at baseline date.                  
    Summary:                                                              
    1. Credit Memo with Invoice Reference have the same Terms of Payment  and Baseline Date as the Invoice.                                                                               
    2. For the Credit Memo without Reference to an Invoice, there are 2 methods available for choosing the due Date :                      
    a) The Due Date for Net Payment (RFPOS-FAEDT) is identical to the  Baseline Date for Payment (BSEG-ZFBDT). The Period for Net Term or the Term of Payment is not taken into Account. This is the Default.
    b) Or the Credit Memo is due based on the Payment Terms. For this, you must enter the Indicator "V" in the Credit Memo Field BSEG-REBZG  "Invoice Ref", in addition to the specified Payment Method.        
       You can modify this Field for the Credit Memos already posted.     
       => the above Details are documented in the Help F1 behind the  "Invoice Ref" Field.                                                                               
    Hope it answer your question                  
    Kind Regards
    davide

  • Payment term change in document

    Guys,
    Here is an interesting puzzle for you. We ran F110 to make payment to one of our vendor which gives us 2% discount on 10days.We found out that we are  out of  discount period so I changed the payment term from Z10 to Z30 in the vendor invoice to force the sysetm to do a discount and I ran the F110 , we got the discount. But now I see that same invocie is still showing up in MRBR-Release block invoices where as I already made the payment to vendor by writing check.and no invoice is outstanding on vendor's a/c.Any idea why this inovice is showing in MRBR with status as blocked.I guess change of payment term is legitimate so sap allows it. Any suggestion to get rid of that block invoice in MRBR.Thanks
    Regards
    Shaun

    hi
    yes its possible to change payment terms in master data and in document before payment.
    You can restrict the payment terms changing by document change rule if you want.
    So if in your case document change rule has not restricted payment terms change it is possible to change it.
    Rewards points
    thanks
    s ap

  • How can we block, a particular payment term for a particular vendor.

    Dear Experts,
    How can we block, a particular payment term for a particular vendor.
    BR.
    Chandra

    Hi Chandra,
    If you want to block payment term for "particular vendor" then you need to define a validation rule.
    As per my understanding, the link provided by Owen will block term for all vendors.
    Regards,
    Ankit K. Agarwal

  • Payment terms for a particular sales order

    Dear Gurus,
      I want to trigger a particular payment term for a particular sales document type.
    i.e., when i create a sales order with this particular sales document type the desired payment term should be copied into sales order by default. Is this possible.. please suggest.
    thanks
    suri

    Dear Suri
    As you would be aware, by default, Payment Term will flow in sale order from customer master.  However, if you want to have a different payment term to flow automatically, then you have try with any of the following user exits.
    User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
    User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAK
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Using Database views in source qualifier

    Hi, I have a view in my database which when ran from SQL developer returns me around 1202527 records. But using the same view, when I write source qualifier in the Informatica Mapping (straight forward mapping without any filter etc), the number of r

  • BAPI_PRODORD_CHANGE in a loop - Error CO469

    Hi all, I´m trying to update a few production orders in an own report. The order numbers are stored in an internal table. The processing is done on a loop. The problem is, that i always/sometime get an error CO469, which says that on of the productio

  • Needs help in developing project in java

    hello sir, i'm the fianl year student.i have got a computing related fields project. our project Director told told us make any type of project that has a worth in market.so i'm confusing to take decision please suggest me better it's question of my

  • ITunes 7.5 - cannot purchase anything

    Hi, I am having issues trying to make a purchase from the iTunes store for the last 48 hours. I can access my account ok online and review my personal info, but cannot make a purchase. i get a message that states that there is a problem with the iTun

  • Package libgnomekbd missing in gnome3 package?

    Hi, all I installed a fresh version of arch and got gnome working on it. After logging in and setting up my keyboard, I tried to open the keyboard-layout, but just got the exception, that the command gkbd-keyboard-display was missing. After installin