Suuser exit - rebates

hi
one scenario : About rebates with free goods :
If cust purchase 10 printers in 3 months, i want to give 500/- rebate on each printer and i want to give 2 small printers to him after 3 months along with the credit note.
How to solve this.
regards
lakki

Hi Lakki,
There is no simple user exit solution for this. You need to go for some custom development for the same.
1. First you need to create a Free Goods master record in VBN1 in such a way that Min Qty 1 Max Qty 10 Free Goods 2.
2. Create a Z table for the accumulation of invoiced goods. This will get updated when invoice will be created for the customer for that sales order/delivery. Coulmns can be as follows.
- SalesOg., Sold-To/Ship-To, Material, FreeGoodsCondType, Qty Invoiced, Date Invoiced.
User Exit for Invoice is RV60AFZZ in this USEREXIT_NUMBER_RANGE.
You have to put additional logic here to check if any Free Goods are ther in this invoice. If yes then delete all the entries from 3 months till Today.
3. Create a rebate calculation routine in VOFM (Formulas -> Calc. Rule RebateKind. e.g. 901). Attache this routine in Free Goods Master Record.
Put a logic as follows.
Read Z-table for 3 months till today. Get count of Qty Invoiced. Move this Qty. Invoiced to l_frm-mglme.
  l_frm-nrmenge = ( l_frm-mglme / l_frm-knrnm ).
  l_frm-nrmenge = FLOOR( l_frm-nrmenge ) * l_frm-knrzm.
business rounding
  nachkomma = FRAC( l_frm-nrmenge ) * 10.
  IF nachkomma < maxrund.
    vorkomma = FLOOR( l_frm-nrmenge ).
  ELSE.
    vorkomma = CEIL( l_frm-nrmenge ).
  ENDIF.
  l_frm-nrrund  = l_frm-nrmenge - vorkomma.
  l_frm-nrmenge = vorkomma.
   l_frm-nrmenge is the calculated Free Goods.
I have just consider simple scenario, but while testing you will come up with new scenarios.
Thanks,
Mandar

Similar Messages

  • Error in Releasing to Accounting for Rebate Credit Memo

    Hi All,
    I have a requirement to post from a credit memo rebate settlement an A/P posting document rather than
    an A/R posting document (payment made against vendor rather than customer).
    I am using the standard SAP user exit EXIT_SAPLV60B_008 to convert A/R document to A/P document.
    In the internal table XACCIT, the following fields are changed in order to achieve the results above:
    Accounting document type (BLART)
    Posting Key (BSCHL)
    G/L Account & P&L Account (HKONT)
    Customer (KUNNR) - if filled, clear out
    Vendor (LIFNR) - get from KNA1 table
    Tax Code (MWSKZ)
    Payment Terms (ZTERM) - get from KNB1 table
    Tax Conditions (KTOSL)
    Branch Details (FILKD) - if filled, clear out
    The rebate credit memo have been generated but not able to release to accounting. When i try to release
    to Accounting via VF02, the following error is generated:
    'No Account is Specified for item 0000000001'.
    All substitution seems to be complete. Could you let me know the possible cause of this so that I can further investigate on this issue.

    No Account is Specified for item 0000000001
    Normally system will throw this type of error if the corresponding billing document / credit memo does not have the Account Assignment Group of that customer.  To check that go to VF02, key in the credit memo reference and execute.   There click from top menu bar "Goto => Header => Header".  There you can see a field "Account Assignment Group".  Check whether it is blank.  If so, press F and save.
    It could also be due to improper of G/L Account assignment in VKOA
    thanks
    G. Lakshmipathi

  • Sold to Party rebate

    Hi,
    We have a scenario where the Sold to and the payer differs. In this case we need to give the Rebate to the Sold to party and not the Payer.
    Standard SAP looks at Payer for the rebate. Could you help me with a work around?
    Is there an user exit, some modifcation which can be done wwhcih will link the rebate amount to the Sold to party, we will then manage this through a report.
    Any ideas, Tips are welcome.
    thanks in advance.
    Supreeth

    Remember, I need not see you personally but can assess individuals by the words used in their query. You used 'user exits' which usually advanced users are allowed to work on real life.
    OK lets forget the past.
    *I worked on your requirement and it worked for me. I am giving detail steps. It should work for you too. I am giving steps for creating rebate agreement based on customer / material. *
    - Go to IMG - SD- Billing - Rebate processing - condition technique for rebate processing
    - click maintain access sequences for example select access sequence B002.
    - click accesses
    - select access which has description 'customer / material'
    click fields.
    You can see field with label "payer".
    The reason why the system calculates rebates for payer is because of this field in access sequence.
    Now lets work on your requirement
    - Create a new condition type for e.g ZKAM (copy it from existing condition type say B002)
    - Create a new access sequence for e.g ZKAM (copy it from existing access sequence say B002). select copy so that it would copy all records.
    - select accesses and after that select access which has description customer / material
    - click fields
    - select the field 'KUNNR' with label 'payer'.
    - select the field catalog button at bottom and you would be in display view "fields" overview button
    - locate the field 'KUNNR' which has label name 'sold to party'
    - double click this field and you would be back in change view "fields" screen but now "sold to party is selected.
    - save it
    - now go back to condition type ZKAM and add your newly created access sequence ZKAM to it. 'Access sequence' field is at the top & save it.
    - Now select maintain pricing procedures. select your pricing procedure lets say standard 'RVAA01'.
    - select step which has condition type B002 (In SAP standard step number is 902).
    - copy it by using copy function. rename it to ZKAM and for example give step number as 906.
    - save it.
    - Define new agreement type ZKAM by copying existing agreement type 0002
    - In Assign Condition Types/Tables To Condition Type Groups, select condition type group 0002, using copying function copy it and change 'cntr' to 2 and 'cnty' to ZKAM and save it.
    - In Assign condition type groups to rebate agreement types, see whether your agreement type is assigned to condition type group '0002'.
    In Easy Access
    - In the customer master record, indicate that sold to party is relevant for rebates.
    - In the customer master record of sold to party, select sales area button, select partner functions tab, against payer field, indicate payer account number. This is as per your requirement.
    - Activate your sales orgn & billing types relevant for rebates.
    - Create rebate agreement type by using agreement type ZKAM. In conditions button select condition type as ZKAM and complete the data required.
    - create sales order for sold to party, deliver it, complete billing.
    - go back to your rebate agreement type and see whether rebate has been processed for sold to party.

  • USEREXIT to adjust the rebate credit memo request to your own require

    We are using function module SD_BONUS_CREDIT_NOTE_CREATE in one of our rebate program.
    This Functional provides the option to use USEREXIT to adjust the rebate credit memo request to your      own requirements.
    With Present form of  functionl module it take standard doc type to  create the  rebate credit memo request.
    So Question here which  are userexit we have in this FM  which can be used to create  the  rebate credit memo request to our requirement.
    Has any body used this FM before to this length..
    appreacite your help
    Thanks
    rao

    Hi Serma,
    I haven't use this FM. I only can advise you how to find user exits in this (any) FM.
    Open your FM via SE37 and then try to find in this Function Group any CALL CUSTOMER-FUNCTION 'xxx' ..., where xxx is a 3-digit number which refers to the relevant FM EXIT_<FG>_xxx.
    <FG> is the name of the Function group to which the FM belongs to.
    When you find such an EXIT-Function, take a look at the parameters. When you find parameters which satisfy your needs, go ahead and build your EXIT enhancement in the predefined ZX-Include (you can find this inside the FM EXIT_<FG>_xxx).
    I hope this helps,
    Heinz

  • Assign Source of Supply User Exit with Quota Arrangements in ME57 and ME56

    Hi there,
    We are using Quota Arrangements to define Vendor rebate levels and we have enabled User Exit EXIT_SAPLMEQR_001 to provide a more informative popup to replace standard Source of Supply popup as need to display current allocation quantities and % allocation fulfiled.
    This User Exit is invoked during Assign Source of Supply during PReq processing (More precisely during Assign Source of Supply in ME51n and Automatic Source of Supply in ME57 and ME56) which all works fine.
    When used in ME51n and Source of Supply Assigned and PReq saved, the allocated quantity against the valid Quota Arrangement (EQUK-QUMNG) is successfully updated with the relevant amount
    When using ME56 or ME57 to Automatically Assign source of Supply via the PReq list, the User Exit is invoked correctly and on selecting Vendor and saving the PReq is update correctly, however the allocated quantity against the valid Quota Arrangement (EQUK-QUMNG) is NOT updated with the relevant amount
    I have searched SAP Notes and debuged with limited success but cannot find evidence as to why this difference is happening - I assume that it has something to do with User Exit but any advice gratefully received if anyone else has experienced this issue?
    Ben

    Hello Jerry,
    source will be determine based on the following points:
    Outline Agreement
    Info record
    Quota Arrangement
    Source List
    For more information, <a href="http://help.sap.com/saphelp_47x200/helpdata/en/75/ee11b255c811d189900000e8322d00/content.htm">Click here</a>
    Hope this helps.
    Regards
    Arif Mansuri

  • Automatic final settlement of rebates without payment screen

    When we final settle SAP rebate agreements with payment screen (where we have to specify the final settlement amount) everything is working fine. But when we attemept to final settle the rebate agreement WITHOUT using the payment screen (all the accurals have to be paid to the rebate recepient), I am facing the following issues
    1. SAP gives a message saying credit memo request is created, but there is no credit memo request number in the pop-up screen
    2. When I do a VA03 it shows a default credit memo request number (doc number moves as per the number range), which I can not display the document because SAP gives error saying the document is not in the database.
    3. When I go back to the rebate agreement there are NO changes to it - status is still in "Open" (changed to 'B' during final settlement). I try again final settle it automatically without payment screen and face all the above problems again.
    But if I final settle the same rebate agreement using paymentscreen by specifying a payment amount everything works fine. Is it a bug in the program (or) am I missing something? Please let me know. Thanks

    Hi Dhanaraj
    Please check whether some user exits/enhancements have been implemented for your standard program?
    Also you can take help from ABAPed to check the program in debug mode for such behaviour.  Even after that if problem persists then you can call SAP on it.

  • User-exit that triggers everytime I change a line item and change condition

    Hello Experts,
    We are encountering an error wherein when we create a return order with reference
    to an invoice and we create multiple line items with the same material, the succeeding
    line items points to the wrong conditions in the reference invoice. Below is an example:
    Original Sales Invoice 3010002390
    Line Item No.     SKU          Quantity     Total Rebate Discount          Per Unit Rebate Discount
    10          100315          10               128.07                    12.81
    20          106666          10               128.07                    12.81
    30          100338          10               243.86                    24.39
    Return Order 1120000402  (repeatedly created with reference to the same sales invoice number)
    20          106666          1               12.81                    12.81
    30          106666          1               24.39                    24.39
    For Return Order line 30, it should have picked the price 12.81 instead it picked 24.39,
    which is the same line item with the original sales invoice.
    I am using user-exit 'USEREXIT_NEW_PRICING_VBAP' and it triggers everytime I change the quantity of a line item.
    But I tried to change the values in XKOMV and put 'U' in UPDKZ but it doesnt reflect when I view it.
    Hope you can help me guys. Thank you and take care!

    Thanks anyways...

  • Rebate  settlement for only cleared invoices

    Dear Guru's ,
    I gone through with the older threads and other sap notes, but as per the business requirement i need to settle rebate only the documents which are cleared in accounting is there any process which settles only for cleared documents (or) please suggest me the user exits or modifications .
    Thanks for your replies.
    chandu

    Hi Chandu,
    I am having the same business requirement, how did you finally achieved the objective of settlement against only cleared invoices.
    Your help is appreciated.
    Thanks,
    Raja

  • Manually create --- Rebate Credit memo

    Hi Gurus,
    How Can I create a Credit Memo manually which can fuction like a Rebate Credit memo in posting the credit to the G/L Accounts for rebate expenses.
    we donot want to use the  Rebate agreements. As of standard SAP we cannot create any rebate credit memo manually with VA01, you will get an error. The reason for this is -- In order to track all payments within the rebate agreement, they have to originate from that rebate agreement.
    Is there any possibility?
    Thanks
    Ram

    Yes, you can do but you will need to look for appropriate user exit where system is checking for the reference to rebate agreement and need to by-pass that check then you should be able to do this.
    See for the user exit which is getting called for rebates. Let me know if you are not able to find it.

  • Rebate accruals report customer wise for a financial year

    Dear Gurus,
    For your kind attention, i am here with submitting my requirement for resolution. Can any one let me know how to have total rebate accruals  amount against each customer ( in a sales are a)in a financial year. ( even settled rebate agreements -accrual amount also to be included in the report) .Awaiting your earliest response.
    Thank you in advance.
    Krishna

    Hi
    Try with tcode FBL3N for the accrual account. See if any field gives you the option to filter by customer. If it's not possible, populate any field for customer. See Note 301077 - User exits for the interface to accounting, EXIT_SAPLV60B_005.
    I hope this helps you
    Regards
    Eduardo

  • Posting Settlement:Vendor Rebate Arrangment, Purchasing MEB4

    Hi Fellow Abappers,
        I got a requirement to change the Vendor line Item text @ FB03 with the condition type description of the agreement used upon posting of Settlement vendor rebate at TCODE MEB4...
       I found several exits LWBON001, LWBON003, LWBON004 and LWBON005.. but upon reading the tables and structures, I think nothing is relevant in changing the VENDOR LINE ITEM TEXT at FB03...
    Hope you can help me here guys... thank you..

    Hi; 
    Extra thanks for your answers, below the results of the checks and some information.
    Arrangement type :   
    - The Arrangement Types, Purchasing is 2000 (Standard) with this parameters.
    - The Settlement schema in the arrangement type is RM5000
    - Credit-Side side settlement -  Partial settlement : BM31
      - Credit-Side side settlement -  Final settlement   : BM11
    Accrued revenues for settled agreements. : 
    - No more posting : no checked 
    - Diff. account key to proc. RM5001 (Subs. Sett (tax trigger))
    In OBYC.
    - B01 : account 419800.
    - B02 : account 609000.
    In PO I use RM0000 schema.
    Thank you for your precious help, because I do not advance in the project because of this error, is why I am asking your help at all.
    Best regards

  • User exit to control the sales order creation

    Hi All,
    I have a business scenario, where a specific account group customers Business doesn't want to sell the goods .SAP should not allow you to create a sales order.
    Which user exit will solve my requirement?
    could you please help me..
    Regards,
    SK

    Hi Prakash,
    Thanks for the reply. Actually these customers are created as a Agents and we are using these customers in Commission rebates. So at the time of Rebate partial credit memo, then these agents should be active otherwise system will give the error.
    So what i am thinking is, Standard sales order creation needs to be restricted so that users can not able to create standard order.
    So can you suggest is there any user exit can be used to prevent creation of standard order for these account group and order type xxx?
    Regards,
    SK

  • Rebate:condition requirement 24 not fulfilled

    Dear Sirs
    I am processing billing doc but rebate condition type is not activated at f2 billing type.
    I have maintained rebate condition type in pricing procedure.
    When i go through "Analysis" tab in sales order item condition level I found that there is message regarding rebate condition type was
    "condition requirement 24 not fulfilled" . I have gone through thread dated 2 feb 2011 raised by sapuser. I refer the same but not very much clear regarding the solution.
    solution suggested " when debuging it was found that pricing type changed from X to xx in copy control"
    now my queries are :
    1)  In which screen pricing type has to changed for copy control
    2)  What could be possible errors might come in case condition requirement not fulfilled in pricing procedure with reference to rebates  because there are about 5 types of rebates and all are having same requirement in pricing procedure
    Kindly help
    Regards
    KAPIL MORE

    Dear Ivano Sir
    Firstly extremely sorry to close these query so late and also thanks for giving me yours valuable time but henceforth i will see that i should give response to your feedback .
    Actually i have solve this query by debugging and understood.
    Could u please if possible kindly give me some inputs regarding user-exits.
    Regards
    KAPIL MORE

  • Enhancement for qa32 for rebate amount

    Want to do one enhancement before MIRO - Invoice
    Verification transaction for rebate amount for defects in material during
    quality inspection and usage decision .
    Presently our process of invoice verification is as follows,
    1. We do goods receipts and Do quality inspection.
    2. During quality inspection if their is any defects in material and we
    calculate rebate on that challan quantity and this rebate data is stored in
    Z-table which is used in payment slip.
    3. After this purchase dept receive challan for that material and Purchase dept
    include rebate amount in payment slip with material document number and forward
    to account dept.
    4. According to document received to account dept.
                a). Account post MIRO- Invoice Verification against challan quantity.
                b). for rebate amount raise debit note against same material document, purchase order
    and vendor manually.
    Now we want to do following enhancement,
                1. At the time of quality inspection and usage decision if their is any rebate for that
               document according to defects in material received, then it should be post MIRO
               rebate amount automatically in background with reference to Purchase Order
              and Material Document Number.

    Hi,
    You can use below user exits,
    QEEM0002 User exit add. functions after reading inspection features
    QEEM0003 User exit: add. functions after valuating insp. characteristics
    QEEM0004 User exit: add. functions after valuation of partial sample
    QEEM0006 User exit: add. functions after closing inspection char
    QEEM0007 User exit: add. functions after completing partial sample
    Sandip

  • User Exit for Amount Rounding in FI Postings

    Hi,
    Can any body tell the name of User Exit / BADI for FI postings, which helps me to round off the amounts while i post the transactions.
    Eg. If a enter an amount of 10,000.65 then while saving the document, it should roundoff the amount to 10,001.
    Pls advise.
    Thanks & Regards,
    Pavan.
    +919822336750.

    HI,
    see user exit for MEB4,
    Exit Name           Description
    LWBON001            Extend comm. structure MCKONA (busn. vols., rebate income)
    LWBON003            Change settlement data before creation of settlement doc.
    LWBON004            Simulation of LIS update for detailed statement
    LWBON005            Index entries for settlement documents, arrangement settlem.

Maybe you are looking for