Routine in MM Pricing - Base Value

Dear friends,
I want pass values from Tax Procedure to MM pricing procedure. Here the requirement is to calculate discount after considering the excise. The excise value resides in Tax Procedure(TAXINN) and the discount value is in MM Pricing Procedure(ZLOCAL).
Even if i pass the value through subtoal KZWI6 the value gets cleared while moving to another procedure.
Kindly suggest.
Regards,
Praveen Lobo

Dear friends,
I want pass values from Tax Procedure to MM pricing procedure. Here the requirement is to calculate discount after considering the excise. The excise value resides in Tax Procedure(TAXINN) and the discount value is in MM Pricing Procedure(ZLOCAL).
Kindly suggest.
Regards,
Praveen Lobo

Similar Messages

  • Creation of a new Formula Routine for condition base value calculation

    hello people,
    i am stuck up in a situation where SAP has itself said that nothing can be done.
    but i know you all can guide me to some way or the other
    see, the scenario is like this
    1. i have to calculate the base value for a pricing condition.
    which will follow the formula
    net value + excise duty + freight
    2. in standard routines two things are normally bieng used
    xkwert for the value that has to be finally calculated(taking reference of routine 004)
    komp-netwr for the net value
    3. i have to calculate the excise duty by adding up all the base values of existing pricing conditions like JMOP, JEC1 etc that i have which i saw in internal table
    XKOMV on debugging
    4. now freight is to be calculated from all the values of condition types that are in KOMP which is a structure and no internal table is defined in standard main program
    now ppl
    can you guide me by looking at the standard program
    what is this xkwert field and where it is assigning the value.
    how to get field from other structure and table.
    please guide as to how to approach the problem.
    thanks and regards
    Nitin

    HI,
    the scenario u r talking abt is condition based value formuls of VOFM transaction.
    here the data is retrieved as 'X' structures and will hold normal tables with respective names. and in this case all the pricing data is in KOMV ie XKOMV
    Final amount including tax
    form frm_kond_basis_004.
      xkwert = komp-netwr + komp-mwsbp.
    endform.
    always calulation is done in xkwert field and final value is stoerd in xkomv.
    *.................. text ............................................. *
    Condition base value formula to get the assessable value of the     *
    saleable material from j_1iassval. If the value is not maintained   *
    then the selling price will be taken as the base                    *
    TABLES: J_1IASSVAL.
    DATA XXKOMV LIKE KOMV .
    XXKOMV = XKOMV.
    SELECT SINGLE * FROM J_1IASSVAL WHERE J_1IWERKS = KOMP-WERKS AND
                                         J_1IMATNR = KOMP-MATNR.
    IF SY-SUBRC EQ 0.
        IF J_1IASSVAL-J_1IVALNDP NE 0.
        XKWERT = J_1IASSVAL-J_1IVALNDP * KOMP-MGLME / 1000.
        ENDIF.
        IF J_1IASSVAL-J_1IVALASS NE 0.
        XKWERT = J_1IASSVAL-J_1IVALASS * KOMP-MGLME / 1000.
        ENDIF.
    ELSE.
       XKWERT = XXKOMV-KAWRT .
    ENDIF .
    XKOMV = XXKOMV .
    ENDFORM.
    and as far as ur  req select allthe condition type data and sum and take the average value and pass it.

  • Condition Base Value Routine

    Hello all,
    I am currently facing an issue where we have created a Custom Condition Base value routine for a Tax Condition type.
    In our scenario, we have Sales Tax condition type ZZTX which has the following parameters:
    Cond. class       D Taxes
    Calculat.type     A Percentage
    Cond.category  D Tax
    Rounding rule       Commercial
    Also since its a tax condition type, it is set to D - cannot be modified manually.
    Also in the pricing procedure, the condition type is pointing row 301 to pickup the condition value basis. This is for the normal scenarios. However when a particular condition is satisfied (which is coded in routine 902 for ZZTX) the code in 902 is supposed to change the condition base value for ZZTX.
    800     0     ZZTX     Tax for Sales     301                       10          902     MWS
    This functionality is not working at this point. When I debug, I can see the code appending the calculated value to the condition base value for ZZTX.
    However on the screen, I still see the condition base value being picked up from row 301.
    I need some input from you guys so as to find it the condition type zztx should have some parameters set to allow the change or is there a problem in the 902 routine ?
    Kindly advise
    Thanks
    Vin

    Hi Vin,
      Please check with your ABAP expert if he has done below to fetch calculated value to hold it correctly,
       l_val_190    TYPE kwert,   l_val_210    TYPE kbetr,
    I guess it is to do with Data type only in your 902 routine
    Hope this will solve your probelm,
    Regards,
    Siva

  • Alternative formula for condition base value -correct  routine

    Hi ,
    We need  correct standard routine number in "Alt. formula  for condition base value " in transaction V/08 pricing control .
    Requirement As follow :
    We have one header freight condition which is header condition and group condition in V/06 condition type setting . Lets Say " ZFRIG " the value in this condition should equally approtionate to all the items in SO .
    Ex: ZFRIG = $100 in SO header
    item 10 = ZFRIG should be  $20
    item 20 = ZFRIG should be  $20
    item 30 = ZFRIG should be  $20
    item 40 = ZFRIG should be  $20
    item 50 = ZFRIG should be  $20
    Suitable standard  routine solution  will be appreciated.
    Thanks in Advance
    Sunil

    Hi ,
    Without any Routine it adds $100 to all the line iteam , so total fright discount becomes $500.
    Thanks and regards.
    Sunil

  • How to display modified condition base value in Pricing Procedure?

    Hi everyone:
    I used a formula to change the condition base value (via the VOFM transaction) of various price conditions that are assigned to the same material. In this way, I can distribute the total quantity of the item line in smaller quantities for each price condition.
    Now the problem is that in the conditions tab of the sales order, I can not see the Condition Base Value of each Price Condition, and that's a little confusing.
    Did Anyone know's a way to show the modified Condition Base Value in the Pricing Procedure of the Condition Tab?
    Thanks a lot,
    Ginno Giuffra

    Thanks JJ:
    Yes,  I can found the modified base value in the condition details, but I still need to show it in the Pricing Procedure scheme.
    It is curious that the table options does not allow you to add that field to the escheme.
    Does anyone knows a user exit wich can modifye the table?
    Thanks again,
    Ginno Giuffra

  • Sub total column in MM pricing and Base value for tax

    Hi,
      In MM pricing in M/08 for the condition we can use subtotal filed for multiple conditions if we use same subtotal fileds the value of all condition will be added in the define subtotal filed,  so this is only effect of subtotal  or it has also some othere effect,  second think which I want to know  in PO after PBXX we have some custom condition for Surcharge % (Item) whatever % we maintain in this  the tax amount is calculated on the addition of PBXX and  Surcharge % (Item,  this is oK as per our requirement,  but in M/08  for  Surcharge % (Item ) the subtotal field os blank,  also  in OBQ3 Fi pricing  for the Condition BASB  the column for Alternative formula for condition base value ALSO Condition formula for alternative calculation type are also blank  then How system found the BASB  value as the adition of PBXX and  Surcharge %, what is nasic rule behind this  for the BASB value calculation.
    regards,
    zafar

    Hi,
      Thakns for your reply, In our existing system, in tax procedure 362/363 is not maintain, so in case this is not maintain,  which value is considered as the base price.
    regards,
    zafar

  • CONDITION BASE VALUE / ALT CALCULATION TYPE Pricing

    Dear All,
    I have a scenario where in I want the condition base value for calculating the value for a condition type to be based on
    Gross weight -  Net weight value of a material.
    Is it possible and if yse how do I acheive the same.
    Deepak

    Deepak,
    Alternative Calculation Type:
    Normally if you want to calculate a value you have to use a calculation type for determinating the value. This calculation type is either addition, subtraction or multiplication. Similarly SAP also has got a default calculation type in the control data of the condition type. There you have the options of either Qty based , Fixed Amount Based or Percentage based.  
    Here what happens is suppose if you define Your condition type that calculates the base price of a material on Qty based. Then the calculation will be done based on the quantity of the material. If the customer orders 10 Nos and you have maintained a unit price of 100 Rs for each material then the value determined is 1000 INR. Similarly if the discount condition type , you maintain the calculation type as %. This means if you maintain the value of 10  % in the condition record. Then this percentage is taken as the calculation type  and the condition value is determined.
    In some cases you have to forego the default calculation types and use the customer specific method for calculating a value. For ex if you are calculating the Freight charges for a Material . it depends on so many criteria like, the weight, volume  and also the minimum amount etc etc, in those cases, you forego the default value and then use the alternative calculation type in calculating the condition value against the particular condition.
    Alternative Condition Base value :
    If you have to calculate any value then you have to have a base value for it. For ex if you want to calculate the  discount of 10 % for a material then you have to have a base value on which this 10% is calculated. Normally you take the  condition value of the base price of the material to calculate the value.
    Now you don't want to take the base value and take other values as base value which are derived on some formulae. So you create a routine which will do the mathematical operations in the routine and derive you a value which is now used as the base value for calculating the condition value for a particular condition type.
    Reward poitns if u finds this helpful....
    Regds
    MM

  • Scale base value calculation ( Pricing!!)

    Hello,
    I have issue, when I am creating a credit memo request (Va01 – order type is customized) with reference to billing document. All the items and prices are copied properly. But the scale base value is not copied properly. In the credit memo request (order) for each an every item the scale base value is as same as condition base value. But in the invoice (billing document) the scale base value is added with the pervious item scale base value.
    Actual by functionally the scale base value of item should be added with pervious item scale base value (if the items are same).
    In code the FM PRICING_COPY is copied all the details correctly and then in the FM PRICING this mismatch is happening.
    The scale base value is not getting added with the pervious scale base value.
    I have found the condition control ( KOMV-KSTEU ) for that item is ‘D’ (Fixed) in the credit memo request (order) but in the billing document the condition control is ‘A’ (Adjust for quantity variance) .
    I want to know what is significance of this condition control field (KOMV-KSTEU).
    I didn’t get much information on this field by doing F1 on this field!!!
    Please give some inputs….
    Thanks in advance,
    Siva.

    Hi,
      Goto transaction VOFM and in the blue menu bar click on Requirements in the blue menu bar at the top of the screen.
      Here you can include your new requirements.
    Regards
    Karan

  • Pricing - Requirment / calculation type / base value

    Dear Friends,
    Thnaks for the support and guidance provided by you for my previous posts
    In Pricing Procedure we give Requirment, Calculation type and Alternative formula for condition base value, I would like to know where do we exctly define all this?
    Or are they standard? If standards where we can see how they works?
    Regards
    Vishal

    Hi,
    go through the below Examples for better understanding ..
    Example: 1
    Condition Type: PR00
    Requirement 2 Item with Pricing
    Purpose:
    This is an example of a pricing requirement.  This requirement is met if the document item category is relevant for pricing and no previous condition in the pricing procedure has set the condition exclusion flag. This requirement can be assigned to condition types in the pricing procedure to avoid unnecessary accesses to the database when an item is not relevant for pricing or a condition exclusion indicator has been set.
    Example: 2
    Condition Type:  Net value
    Calculation Type: 2 Net value
    Purpose:
    This is an example of a condition value formula.  This type of formula can be used to influence the value shown for the condition in pricing.  A condition value formula is assigned to a condition type or value line in the pricing procedure.
    Formula '2' sets the value equal to net value that has been calculated so far for the item in the pricing procedure.  It contains the amount excluding taxes.
    Example: 3
    Condition Type: R100
        Alt.Condition Base Value: 28 (100% Discount)
    Purpose:
    This is an example of a condition base value formula.  A condition base value formula can be used to influence the basis the system uses when computing a pricing value.  A condition base formula is assigned to a condition type in the pricing procedure.
    Formula '28' sets the rate of the condition to a 100% discount.  This formula was delivered with condition type R100 to support free goods functionality.
    Reward if it is useful,
    Chandramohan

  • Excise base value for CVD Calculation in Import depot pricing?

    Hi,
    In case of Import procedure the condition base value which is copying to excise should be sum of assessable value + Basic customs but it is not happening..
    kindly suggest me on the same..
    regards,

    Hi
    for  custome invoice valu will be
    1) IN CVD
    2) ECESS on CVD (%)
    3) SHECESS on CVD (%)
    4) additinal
    5) IN Basic customs
    6)Custom's Edu Cess
    7)Sec ECESS ON Customs
    out of these
    1 t0 4 will be in excise invoice
    1)chek in po tax code 0
    2)chek following setting in spro-
    Logistic general-tax on goods movement-account determination-specifiy exciseaccounts per trasnction and psecify excise gruopper transction chek IP here for you Grop setting
    3) chek condiiton type with accuralse and account key is there or not
    GRPO IP CR CLEAR
    GRPO IP DR MSUSP
    GRPO IP DR ONHOLD
    GRPO IP DR PLAAED
    GRPO IP DR PLAAT1
    GRPO IP DR PLABED
    GRPO IP DR PLACESS
    GRPO IP DR PLAECS
    GRPO IP DR RG23AED
    GRPO IP DR RG23AT1
    GRPO IP DR RG23BED
    GRPO IP DR RG23ECS
    GRPO IP DR RG23SED
    EWPO IP CR CLEAR
    EWPO IP DR PLAECS
    EWPO IP DR RG23AED
    EWPO IP DR RG23AT1
    EWPO IP DR RG23BED
    EWPO IP DR RG23ECS
    EWPO IP DR RG23SED
    Regards
    Kailas ugale

  • Condition Type JSRT not picking Condition Base Value in Pricing Procedure

    Hi Friends,
    In a procedure System is not picking condition base value for condition type JSRT. I have checked the tax procedure and found alternative Cal Type is 17 and is working fine for Domestic vendors.
    Friends i need your help in sorting out this issue. Pls suggest what I can check in order to sort out this issue.
    Rgds, Krishan Raheja

    Hello!
    In TAXINN the base value for the condition JSRT is picked up from step 100.
    I suggest that you change the "From" value to 100 instead of whatever you may be using
    Then test the transaction once again.This will not affect your normal service tax calculation either. So please make this change & try using S1 for planned delivery cost.
    Hope this helps !
    Cheers!
    Plauto
    Edited by: Plauto Abreu on Feb 11, 2011 9:03 PM

  • CIN: Alteration of base value for CST in TAXINN

    Hi,
    In our business process there is a requirement that CST should not be calculated only on Basic Price + Excise Duties (BEDEcessSEcess) rather base value for CST should be Basic Price + Excise Duties (BEDEcessSEcess) + 2 Additional Surcharges as mentioned below:
    Basic Price     100.00
    BED (10%)     10.00
    Ecess (2%)     0.20
    SEcess (1%) 0.10
    Additional Surcharge1     4.00
    Additional Surcharge2     6.00
    Base for CST 120.30 (100100.20.14+6)
    CST (2%)     2.41 (2% of 120.30)
    Total Value     122.71
    The tax procedure being used is TAXINN
    Is there any standard routine or subtotal available so that by using this in PO Calculation Schema and TAXINN the base value of CST can be modified as desired?
    Please provide some useful ideas.
    Thanks in advance
    Edited by: Sapdear on Aug 29, 2011 8:22 AM

    Hi,
    The additional surcharges are condition types in the calculation schema of PO whereas CST is being calculated in Tax Procedure TAXINN so how "From" and "To" functionality can work. The surcharges are getting calculated in PO Pricing and CST in tax procedure TAXINN (both at different places)
    We want to use a tax code (BED10%Ecess2%SEcess1%+CST2%) to calculate Excise Duties and CST by additional surcharges taking into account.
    Can any one provide some idea to resolve this issue?
    Thanks in advance

  • How to change what is used for the condition base value

    I have a new condition type that I want to always get its conditon base value from a list price total in the pricing procedure.
    Do I need to do this in a routine?  If yes, can you give more details on what should be in the routine.
    Thanks

    The new condition(ZXXX) which should always have the base value amount of the list price -
    Settings
    ZXXX in transaction v/06- when defining this condition you have a field under Master data - to use it as reference condition type
    over here you can mention the condition for the list price. than it should work.
    Hope this helps
    Cheers
    jasmeet

  • Alternative formula for condition base value in cross-application

    Hi,
    I need inputs regarding an issue as:-
    In "TAXINJ" Tax pricing procedure, for a ZXXX  excise related condition type the alternate condition base value (Alternative formula for condition base value) must be of  YXXX condition type of MM Purchase pricing Procedure.
    How to acheive Alternative formula for condition base value in cross-application area as both condition type belongs to different Application area i.e.  ZXXX belongs to TX and YXXX belongs to M.
    One way or only way is thro' routine but I do not know How it works? 
    Thanking you.
    Prashant

    routine is only the best way for u in this case
    u will have to use subtot may be 6 or 4 in MM pricing procedure
    and write a routien in Tax procedure, i n that u will have to write a code where in ur sustem will featch this value in sub total and act a a base for ur cond type in Tax proc for ue condition type.
    what is your excat requirement
    there might be other work around that can help u around
    hope this works
    or write t routines one in MM and Other in Tax proc for ur issues

  • Condition Base value becomes Zero

    Hi all,
    we created one routine to restrict usage of some condition types for Purchase  Order . These are manual condition types .
    Created one Rotuine in VOFM --Pricing.Wrote code in FORM KOBED_904 perform.Assigned routine in the M/08 Tcode for those condition types and in routine logic restricting condition types based on sy-subrc value.
    when i enter another manual condition type in header for which the routine is not assigned the condition base value of the condition type to which the routine as assigned becomes zero. hence the condition value also becomes zero.
    if i enters same in item level it is working fine.
    Regards,
    Ajay

    Hi,
    If u didnt assign routine also please check the sy subrc inside the routine and come  out.
    Regards,
    Nandha

Maybe you are looking for

  • Windows 7 64bit Raid 1 Data Storage setup with UEFI and 6TB drives

    i just bought a GigaByte MB with UEFI bios, 1 SSD 128GB drive for the OS (boot up), and 2 6TB drives for use in a raid 1 setup for the data storage. I have been able to install win 7 64bit using the UEFI dvd drive.  I have been able to define the 6TB

  • Date question in Oracle

    hi how to insert (text) time: 09:44:02 and date:11/09/2007 to date filed in Oracle ? i have field Tdate (date) and Ttime (date) in oracle thanks in advance Edited by: GoldSoft on 16:33 22/08/2011

  • RFC-enabled authorization checks for specific tables?

    I am developing an Excel application which calls several BAPIs and RFC-enabled FMs, most notably RFC_READ_TABLE.  While I will provide security at the FM level by checking S_RFC for these FMs, I need to find a way of restricting access for users to s

  • Possible to send files to 3rd party program?

    I'm trying to add a "Send to Flickr Uploadr" context menu to bridge, but I've hit a snag in getting the files to the Flickr Uploader program. <br /><br />I've tried using openWith(), but i don't think that it does what I want it to do. But the docume

  • Please clear instructions for getting camera raw working for CS5 (PC)

    I've worked for 2+ hours with a support person online and read through camera raw instructions in this forum and have re-installed CS5, downloaded and installed the camera raw plug-in multiple times and just run out of options.  I see in the this for