Adding a routine in Alternate Calculation type

Hi All,
I want to add a new routine in the alternate calculation type. Please guide me as where can i see all the routines in SPRO.
SAPXPT

Hi,
I have tried with VOFM on condition value and it is ok. But it does not reflect on the amount side.
In fact my initial question seems to be wrong.
My requirment is basically after getting the cost by EK02, which is the cost per piece. I want to disrtribute extra 200 amount on the per piece cost. For example
Sales Order Quantity = 1000
EK02 / piece = 40
Condition value becomes = 40 X 1000 = 40,000
Adding extra 200 = 200 / 1000 = 0.2
So new cost / piece = 40 + 0.2 = 40.2
Condition value becomes = 40.2 X 1000 = 40,200
Can this be configured in SD.

Similar Messages

  • Alternate Calculation Type?

    Hi
    In SAP SD-Pricing, suppose I have Alternate Calculation Types for my condition records in a procedure.
    I want to know the exact flow, like I know first the requirement will be triggered and then if it is satisfied then only we can go ahead .
    BUt in my case I want to know at what point of the code is Alternate Calculation Type triggered.Is there any way I can do it like putting a debug at a specific point.I did that by going in the Alt Calc Type but am still not clear about the exact flow.
    Please throw some light on it.
    Thanks

    Hi,
    The function module SD_COND_ACCESS determines the condition records..
    Put a break point in the FM..
    Thanks,
    Naren

  • Alternate calculation type and alternate base value

    hi all,
    please guide me the concept of alternate calculation type and alternate base value

    Hi,
    ALTERNATE CALCULATION TYPE:  
          This  function allows you use a formula as an alternative in finding the value of the  condition type,
    instead of standard condition technique. this can be used to  calculate complex tax structures. 
    ALTERNATE CONDITION BASE VALUE:
          The  alternative condition base value is a formula assigned to a condition type in  order to promote an alternative base value for the calculation of a  value.
    And Refer this link.
    http://sapsdforum.com/2007/09/05/pricing-alternate-calculation-type-alt-condition-base-value-and-requirements/
    Hope it helps you,
    Regards,
    Ravindra.

  • Use of alternate cal.type '7'

    Hi Friends,
                   What is alternate calculation type ' 7' used for ? Could anybody tell me with an example ?
    Regards
    Mahesh

    Hai Mahesh,
                Alternative caltype is used in pricing prcodure when u assigned contiontypes in PP, As all of us Knew.
    req--007 (Domestic Business)
    This requirement is met if the departure country is identical to the destination country.  This requirement can be assigned to a condition type in the pricing procedure or an access level in an access sequence that is only relevant for domestic sales or purchases.
    Within a sales or purchasing document, the tax can be calculated in the pricing procedure using a condition type.  In many cases, taxes may be calculated differently based on whether the transaction is a domestic transaction or an import / export transaction.
    <b>Using an access sequence, the user can define different ways to access tax information for the document item.  The user would assign pricing requirement '7' to those accesses which are only relevant for domestic transactions</b>.
    Pricing requirement '8' can be used to indicate an export / import transaction.
    *Hope it hleps U to understand.

  • Difference between alternative calculation type and alternative condition b

    What is the difference between alternative calculation type and alternative condition base value?

    Hi Nitin
    Alternative calculation type:
    Suppose my gross price (PB) is Rs.100 for some metal per kg and I want to calculate surcharge based on todays RBI index of commodity rather than simply giving some 2%. I want to account todays RBI index in determinig Condition value.
    It is possible to do that by little alteration of regular routine.
    Alternate Condition base value:
    I am procuring 5 different variety of pens at different quantities at varying rates from 0 to 25 in a sing le PO. And I get the total header value of 1000. I will get a discount of 10% if the PO value reaches 1000. I have to subsequently pass on the discount of Rs.100 now to all the 5 line items. In general SAP calculates it based on the values of each line item and proportionately distributes. However If i want this discount to be distributed according to the quantity of each pen. You can acheive this with little alteration of Routine.
    Hope this clarifies your doubt.
    If found helpful, Pls reward.
    Regards
    edwin

  • What is the use of Alternative Calculation Type =2 and 4

    Dear Friends
    In pricing procedure in gross value, Net value for Item and Net value has Alternative calucation type is 2.
    What is the use of it?
    Without using it these value line are also fetching net value then what is the work of it. Please give me detail information with its effects in pricing condition tab page in sales document.
    Thanking You
    Arun

    Arun biswal,
    Correct Biswal. We have at varoius stages within Pricing procedure the "net value" which is calculated. Not only the alternative calculation type "2" is used if you notice carefully they are stored as subtotals at various levels.
    For Ex Gross Value  --> Subtotal =1 --> Calc type = 2
    similarly for Net value for Item --> Subtotal =2 --> Calc type = 2
    Net value 2 --> Subtotal =3 --> Calc type = 2
    See, these are used to calculate the net value at various levels in pricing. The calculation Type has got a set of routines that will facilitate us in pricing. SAP has provided certain clauclated formulas or routines to facilitate us during calculation within pricing . Here the "2" is used for calculation without tax and store it as subtotal and display it or use it for further calculations.
    We can use this "netvalue" amount for further calculations. It is used for clarity purpose when you issue a statement to customer. (like Confirmation order) at various levels like discount amt involved, Freight involved, Rebate amount invloved.....
    Even without this Calc type or using sub total u can proceed....
    Finally we have  TOTAL  --> Subtotal =A --> Calc type = 4
    In the above line we have Calc type as 4, which means when you use TAX this calc type is used .
    Routines are used to facilitate your process....
    Regards
    Sathya

  • Unit of measure for calculation type C must be completed

    Hi All
    When releasing some contracts in SRM , we are getting the error message as above.
    The error message doesn't specify any particular part and the contract has more than 3000 parts.
    There are no conditions at header or item level.
    There is no Target quantity also. Just a Target value for the contract and prices for individual items are maintained.
    We are using extended classic scenario and the contract is manually created in SRM.
    I have checked the OSS notes for this error, but they are mostly for contract creation in Bidding and not for a manually created SRM contract.
    We checked the UOMs for all the contract parts with the UOMs ( Base and Purchasing) in ECC Material Master and they are OK.
    In our scenario , MM changes in ECC are replicated to SRM in real time
    Any pointers towards pin pointing the error will be rewarded!
    Regards
    Kedar

    Hi,
    We encountered this error message and resolved the problem by applying the following 3 SAP Notes:
    a)     Note #1022928 - Unit of Measure for Calculation Type C Must Be Completed
            (Previously Mentioned)
    b)     Note #1702484 - Unit of Measure for Calculation Type C Must Be Completed
    c)     Note #1517648 - Default Conditions Added for Product Category Item Type
    Although the contract required is similar to a "Limit" item, but had to be placed for bid, then the RFX PS Item Type was set to "Service" to receive the bid responses.  After accepting the bid response, then we created a contract from the bid response.  Since it was to be a "Limit" type contract, then we immediately removed the data from the following fields:
    Remove the Quantity
    Remove the Unit of Measure
    Remove the Price
    Remove the Price Condition
    After removing the values from these fields, then we switched the PS Item Type from "Service" to "Product Category".  We added the Guaranteed Minimum and account assignment data to encumber the funds.  We were able to "Release" the contract successfully.
    Bob Zinsmeister

  • I am doing pricing? How to introduce new calculation type ...

    Hi,
    As part of New condition type creation, I am in position to intrduce
    New calculation type is "X" - Time based by hrs
    New scale basis is "X"  - Time based by hrs
    It really very urgent, any oss note will also help.
    Laxman

    Hi Laxman,
    Instead of Defining New Calculation type
    U can Go for "Formula" (G) in the Calculation Type in the Defination of the Condition type and ask ABAP er to write the Code for u r Calculation type as a Routine and use that routine in the Pricing Procedure " Alternative Calculation Type"
    and also For Scale Basis Use the Formula Based Scale( G) in the definition of the Condition type. and Again Ask ABAPer To Write the Code to ur Calculation Base and use the routine in the defination of the Condition type in the View "Scales" " Scale Formula"
    This will Help you ..
    Let me Know U have Any Doubts in this ..
    Reward If Helpful..
    Regards..
    Praveen Kumar.D

  • Using two different calculation type  for one condition in purchasing

    hi
    purchasing price must be callculated as the mix of fixed and quantity calculation types, example is below;
    for material A whose purchasing unit of measure is quantity (piece) but base unit of measure is gr.
    1.from 1 gr to 500 gr discount must be 50 usd  as fixed,so 1 gr discount is the same with 499 gr discount.
    2. from 501 gr up to x, 0,10 usd per gr
    for example;
    if quantity = 10 and  total default gr from material 450, discount must be 50 usd as fixed.
    but during good receipt in migo 10 piece can be 600 gr so, price must be calculated as 600*0,10 = 60 usd.
    or vice versa,in purchasing order total gram can be gretaer than the gr which will be used in migo during good receipt .
    if quantity = 10 and  total default gr from material 600, discount must be 60 usd as scaled.
    but during good receipt in migo 10 piece can be 450 gr so, price must be calculated as 50usd as fixed.
    it s a little complicated.
    Thanks in advance.

    TW Typewriter
    If the coding is not written correctly, it would definitely affect the system performance.  This is not only for user exit but also will be applicable to routines.  So it makes no difference. 
    And is not difficult to get an access key to do this development
    Not in all cases.  In some projects, getting an Access Key itself is very difficult and it undergoes cumbersome process from client side.  So we have to take a decision on case to case basis whether to go with routine or user exit.
    G. Lakshmipathi

  • Alternate Calculation Key

    Dear Friends,
    I know that alternate calculation key is used in pricing procedure to calculate the price using formulas, now my quostion is where and how we define the formula.
    Please do reply soon
    Regards,
    Vishal
    [email protected]

    hi
    http://sap-img.com/sap-sd/what-is-alt-cal-type-alt-base-value-and-requirement-field-in-pricing.htm
    VOFM by using this fomula we maintained
    With regards
    Rajesh

  • 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

  • Manual Excise condition type with calculation type as FIXED AMOUNT

    Dear Gurus,
    I have used a manual excise condition (JMAN) in my pricing procedure the difference is that I've changed its calcultaion type to FIXED AMOUNT.
    And in the same pricing procedure I have also got a percentage based Excise condition (ZEXC).
    And in any transaction either of the one that is JMAN or ZEXC will be used.
    The Manual Excise condition is used basically when the raw material sale takes place. The requirement is as such that they should be able to enter the duty value in INR and not in percentage. Please go through the example below
    *(For Example I am procuring raw material of 100 kg worth 10000 at 8% of excise duty. Excise duty will be 800 for 10000rs. So it will be 8 rs per KG.
    And now suppose I am utilizing 80 kg for production and want to sell remaining 20 kg. the Excise duty charged should be 160 rs. considering the rate per unit is 8rs.)*
    In this case user wants to enter the value in INR and not in percentage.
    And normally for the finished goods the percentage based condition is used.
    Now what my issue is that how will I copy the value from JMAN to ZEXC at the raw material sale. otherwise my finished good sales is happening without any problem.
    For this should I use any routine to copy the values from ZMAN to ZEXC??
    Or rather is it possible that I could copy values from a condition type whose calculation type is FIXED AMOUNT to other condition whose calculation type is percentage.
    How should I go ahead with this??
    Please guide me.
    Any answers??
    Cant Do it this way??
    Thanks & Regards
    Anand.k
    Edited by: anand k on Jul 8, 2009 6:38 AM
    Edited by: anand k on Jul 8, 2009 1:04 PM

    Check the condtion value in condition type UTXJ . If the JMOD value is 10% of UTXJ then assessable value should have been maintained for the Material and Plant combination in J1ID. This is due to Routine 351 maintined in pricing procedure for the condition type UTXJ
    check and confirm
    Senthils

  • Different calculation types for one condition

    Dear all,
    I'm trying to find out, if it's possible to have a condition (in our case freight condition ZKOP) set up with two different calculation types?
    Definition of how it should be:
    - If the order value is below a specific amout, ZKOP is xxx.xx EUR.
    - If the order value is above a specific amount, ZKOP should be calculated as a percentage base of the order value.
    Please can you let me know if it's possible and how?
    Thanks in advance.
    Andreas

    TW Typewriter
    If the coding is not written correctly, it would definitely affect the system performance.  This is not only for user exit but also will be applicable to routines.  So it makes no difference. 
    And is not difficult to get an access key to do this development
    Not in all cases.  In some projects, getting an Access Key itself is very difficult and it undergoes cumbersome process from client side.  So we have to take a decision on case to case basis whether to go with routine or user exit.
    G. Lakshmipathi

  • Differance betwwen alternative calculation type & condition base value.

    dear expert
    wats the differance betwwen alternative calculation type & condition base value in pricing.
    vicky

    Hi,
    AltCty - Condition formula for alternative calculation type:
    It is an alternative formula for the condition type that can be used instead of standard formulas.
    For example, let us take the Profit Margin which can be both + / - , so here this routine will help us in generating the value which can be either + or -. Profit margin is not a condition type so it cannot be classified as +ve or -ve in the V/06.Ex.: 950 0 Profit Margin 11. So we assign 11 - Profit Margin.
    AltCBV - Alternative formula for condition base value:
    Formula for determining the condition basis as an alternative to the standard.
    It is used as a basis to calculate value of the condition type instead of using it from the "FROM" column.
    Ex.: Freight - KF00. Freight is calculated based on weight, volume etc. and not on the base price. In pricing there is no entry of weight from which the value can be referred like we do for discounts using base price. We have to get the value from the Material master. In this column we can mention the value as 12 - Gross Weight or 13 - Net Weight.
    During pricing, the system will consider the value that is mentioned in this column and determine the freight based on this value.
    Suppose we have Net weight: 100 kgs and Gross Weight: 150 kgs. And if we mention 13 in this column then the Freight condition KF00 will be calculated using the weight as 100 kgs.
    And both of them are routines written by APABers in VOFM.
    Reg,
    JJ

  • Requirement type, alternative calculation type and alternative base value?

    Hi guys pls can any body experts in pricing
    Can u pls explain requirement type, alternative calculation type and alternative base value?
    Not theory Any of Ur real time experience………

    <b>Requirement:</b>
    It is a routine that is written by an ABAP consultant according to the business requirement.
    By defining Requirement in condition technique we can restrict the access of condition type.
    To understand the concept, we will take the example of the Rebates. Rebates are to be included during the billing document processing and not in the sales document processing. As rebates are given on the delivered quantity and not on the ordered quantity (in case of cut-off period for rebates).
    For rebates we use the condition types BO01 to BO05, and in the Requirement column we give the value 24 which is "Only in Billing Document".
    This Requirement will ensure that these condition types will appear only during the billing document processing.
    If new Requirements are to be defined we follow the procedure given below.
    Go to T.Code: VOFM. - Maintain Requirements & Formulas
    Click on the "Requirements" in the top menu and then click on "pricing".
    We have a list of requirements, we can ask ABAP consultant to create new requirement based on the client requests.
    And we assign the application type like V - Sales/Distribution etc.
    <b>AltCty - Condition formula for alternative calculation type:</b>
    It is again a Routine that is written by ABAP Consultant.
    It is an alternative formula for the condition type that can be used instead of standard formulas.
    For example, let us take the Profit Margin which can be both + / - , so here this routine will help us in generating the value which can be either + or -. Profit margin is not a condition type so it cannot be classified as +ve or -ve in the V/06.
    Ex.: 950 0 Profit Margin 11.
    So we assign 11 - Profit Margin.
    If new routines are to be defined we follow the procedure given below.
    Go to T.Code: VOFM. - Maintain Requirements & Formulas
    Click on the "Formulas" and then on the "Condition Values".
    We have a list of routines, we can ask ABAP consultant to create new routines based on the client requests.
    And we assign the application type.
    <b>AltCBV - Alternative formula for condition base value:</b>
    Formula for determining the condition basis as an alternative to the standard.
    It is again a Routine that is written by ABAP Consultant.
    It is used as a basis to calculate value of the condition type instead of using it from the "FROM" column.
    Ex.: Freight - KF00.
    Freight is calculated based on weight, volume etc. and not on the base price. In pricing there is no entry of weight from which the value can be referred like we do for discounts using base price. We have to get the value from the Material master.
    In this column we can mention the value as 12 - Gross Weight or 13 - Net Weight.
    During pricing, the system will consider the value that is mentioned in this column and determine the freight based on this value.
    Suppose we have Net weight: 100 kgs and Gross Weight: 150 kgs. And if we mention 13 in this column then the Freight condition KF00 will be calculated using the weight as 100 kgs.
    Regards
    AK

Maybe you are looking for

  • Pdf thumbnails in Windows 7 64bit?

    How do I get my thumbnails to show up using Adobe Reader X and 64 bit Windows 7? Thanks

  • Plsql_optimize_level = 3 and native compilation in SQL Developer?

    SQL Developer: Version 3.1.06 (Build MAIN-06.82) Oracle: 11gR2 OS: Ubuntu 10.10 Whenever I compile a PL/SQL unit in SQL Developer (using 'Compile' button) it is compiled with the following settings: PLSQL_OPTIMIZE_LEVEL = 2 PLSQL_CODE_TYPE = 'INTERPR

  • A java's super Bug!

    If you get a float number that larger than 999999999, in java, you can't get the integer part of the number and show it with String. For Example: Float largeF = new Float(999999999.222); from 'largeF', you can not get a value of Long that equals 9999

  • Ios 6 suck. safari now is very slow.  why is that apple? pls fix it.

    Safari slows down after the updates

  • Stacked bar/null data bug.

    Hi All, Despite a number of posts reporting this bug in previous releases of Apex I am facing a simmilar issue as people before me... I am trying to generate a stacked bar graph for a given period of time. To make my point clear let me provide an exa