Unit price calculation

hi ,
the system is calculating unit price from the summation of each
condition values ,after that total sum multiplied by condition pricing unit and divided by sales quantity gives the value of the
unit price.
The problem is if  same material is sold in different sales order with different quantities the unit price varies in decimal places.
how can the problem be rectified

You may use rounding DIFF conditon for the same

Similar Messages

  • Unit Price Calculation on Smartform

    Hi Friends,
       I am in a need to calculate and print unit price in Smartform, I am not supposed to make any changes in Driver Program. Here, the fields FKIMG(total quantity) and NETWR(Total amount) are selected from table VBRP and stored in an internal table itab. now this itab is passed to smartform tables interface. So my itab only have 2 fields FKIMG and NETWR.  I need to calculate Unit Price = NETWR / FKIMG.
    The out put required is like this,
      Total Qty       Unit Price      Amount
      20                 100                2000
      05                  300               1500
      08                  200               1600
    How to do this in smartform--- please help me.
    Regards,
    Ajoy

    Hi Ajoy..
    In case of SMARTFORMS we can add the Logic using PROGRAM LINES Node.
    Steps:
    1. Create a <b>variable</b> in the Global data Tab in Global Definitions of Smartform.
        Eg:  V_UNITPR TYPE VBRP-NETWR
    2. Create a <b>Program lines</b> node above the Text node where the Unit price has to be displayed.
        Input Parameters: VBRP-NETWR  and   VBRP-FKIMG
        Output Parameters: V_UNITPR.
        Code:
                     V_UNITPR = VBRP-NETWR  /   VBRP-FKIMG.
    3. Check the Program lines node and Display the Field V_UNITPR.
    <b>Reward if Helpful.</b>

  • Referencing annual prices for monthly units * price calculations

    Hello,
    We have a PLANNING application that has the following dimensions.
    Z_Account,Z_Time,Z_Company,Z_Version,Z_Driver,Z_DataSrc,Z_Driver,Z_Produ
    ct,Z_Customer. We have plan sales quantities by product and customer for
    every month in the year against an account called 'SalesUnits'
    (combination is Z_Account = SalesUnits, Z_Time = 2009.JAN to 2009.DEC,
    Z_Driver = None,Z_Customers = various customers, Z_Product = various
    products, Z_Version = Forecast, Z_DataSrc = Manual, Z_Company = various
    companies). However, sales prices are planned for and entered on an
    annual level.
    For this we store the sales prices for the combination
    Z_Account = "DriverAccount", Z_Time = 2009.INP, Z_Driver= "SalesPrice",
    Z_Customer = NoCustomer, Z_Product= various products,Z_Company = various
    companies,Z_Version = Forecast, Z_DataSrc= Manual. The requirement is to
    write script logic that multiplies sales quantities of each
    product/customer/ month by the price of the product/year and write the
    values to another account (SalesRevenue) for each product/customer/month
    combination.
    How would one go about writing the script logic for above?
    We tried the following ways. However, we get errors either during
    validation or during execution of the script.
    Try 1: In this case we created a property called 'Input_Year' in the
    time dimension and stored the value 2009.INP as property for all the
    months 2009.JAN to 2009.DEC
    *XDIM_MEMBERSET Z_Account = SalesUnits,DriverAccount,SalesRevenue
    *XDIM_MEMBERSET Z_Product = AllProducts
    *XDIM_MEMBERSET Z_Customer = AllCustomers
    *XDIM_MEMBERSET Z_DataSrc = Manual
    *XDIM_MEMBERSET Z_Drivers =ALL_ACT
    *XDIM_MEMBERSET Z_RptCurrency = LC
    *XDIM_MEMBERSET MEASURES = PERIODIC
    *function PRO(%DIMENSIONNAME%,%PROPERTYNAME%)
    %DIMENSIONNAME%.Properties("%PROPERTYNAME%")
    *endfunction
    #INPUTYEAR=PRO(Z_Time,INPUT_YEAR)
    *WHEN Z_ACCOUNT
    *IS "SalesUnits"
    *REC(Expression = %Value% *
    ([Z_Account].[DriverAccount],[Z_Drivers].[SalesPrice],[Z_Time].[#INPUTYE
    AR],[Z_Customer].[NoCustomer]),Z_Account = "SalesRevenue")
    *ENDWHEN
    *COMMIT
    The above code could not be validated. Is there any way to include a
    variable as dimension member in a tuple in a REC statement? NB: The code
    works if we hard code [Z_Time].[2009.INP] in the tuple. However, we want
    to avoid hard coding of years, months and dimension items that would
    change frequently.
    -->continued in reply due to characters limit

    Hi Halomoan,
    Thanks for pointing me in the right direction. I had to tweak the code to get the quantity * price to come out with the right numbers.
    One issue still remains in that I cannot get the input year populated as a variable. The following code works if the year 2009.INP is hardcoded in the statement
    *DIM Z_TIME                WHAT=2009.INP; WHERE=>>>; USING=BAS(%Z_TIME_SET%);
    , but does not work if I use a *SELECT statement to populate the variable %INPUT_YEAR%.
    I used the script logic tester in the BI system to test the following logic and specified 2009.TOTAL for Z_TIME and 1000 for Z_COMPANY.
    *SELECT(%INPUT_YEAR%, INPUT_PERIOD, Z_TIME, [ID] =%Z_TIME_SET%)
    *XDIM_ADDMEMBERSET Z_Time=%INPUT_YEAR%
    *RUNALLOCATION
    *FACTOR=USING
    *DIM Z_ACCOUNT     WHAT=DriverAccount ; WHERE=SalesRevenue; USING=SalesUnits;
    *DIM Z_DRIVERS        WHAT=SalesPrice; WHERE=>>>; USING=NONE;
    *DIM Z_CUSTOMER  WHAT=NoCustomer; WHERE=>>>; USING=BAS(AllCustomers);
    *DIM Z_PRODUCT    WHAT=BAS(AllProducts); WHERE=<<<; USING=<<<;
    *DIM Z_VERSION    WHAT=ACTUAL; WHERE=<<<; USING=<<<;
    *DIM Z_DATASRC    WHAT=HISTORY; WHERE =<<<; USING=<<<;
    *DIM Z_COMPANY    WHAT=%Z_COMPANY_SET%; WHERE =<<<; USING=<<<;
    *DIM Z_PLANT          WHAT=NoPlant; WHERE=<<<; USING=<<<;
    *DIM Z_PRODUCTGROUP          WHAT=NoProductGroup; WHERE=<<<; USING=<<<;
    *DIM Z_CHANNELPARTNER          WHAT=NoChannel; WHERE=<<<; USING=<<<;
    *DIM Z_TIME                WHAT=%INPUT_YEAR%; WHERE=>>>; USING=BAS(%Z_TIME_SET%);
    *ENDALLOCATION
    Any idea on how to get a variable populated from the property value of a member as defined by a %{Dimension member
    }_SET%?

  • Material Ledger-Periodic Unit price-Overhead cost calculation

    Dear Friends,
    My client using ML periodic unit pricing for reporting purpose.
    Costing analysis with Standard price,I can  be able to trace out how O/H would be calculated and derived into cost analysis.But with periodic unit price, the O/H figures are differnt from  cost analysis with standard price.Iam unable to trace out how O/H is getting calculating in case of Periodic unit pricing.My client would like to know why the O/H rates are differnt and from where we are derving in case of periodic unit price.
    Could some one tell where I can find out the configuration setting for O/H rates maintenence for periodic unit pricing. 
    Thanks & Regards.
    Ram

    HI  Ajay,
    Thanks for your reply.
    I can find the O/H rates as you said but none of the O/H rates are matching with periodic Unit price cost analysis.
    The main question was how O/H rates with periodic unit price are differnt from  O/H rates  with standard price ?.I greatly apprceciate for your answer.
    Thanks,
    Ram

  • Total calculation based on unit price and UDF field values

    Hi All,
    This is for a construction related company. Please find attached screen shot for details.
    My scenario is when we are creating sales order my client wants to calculate the total amount based on unit price towards the UDF fields defined. For example user will give the unit price  per sqft in Unit price ie 2800 as per screen shot column and constructed area in Sqft in he will enter the area like cons area in sqft =1500. So this 1500 need to calculate with unit price and will display in total. So in Total field it should show like 2800*1500= result. Like wise other amount values in udf needs to be calculated and displayed in total field  .
    Is this possible in SAP B1. Please help me with your valuable suggestions.

    Hi,
    Try this:
    SELECT ($[$38.U_Price.number]* $[ORDR.U_CArea.number)+ $[ORDR.U_EBexp.number]+ $[ORDR.U_RO.number]+ $[ORDR.U_Maintenance.number]+ $[ORDR.U_CorpFund.number]
    Thanks & Regards,
    Nagarajan

  • Open PO LSMW Quantity conversion error in net price calculation

    Hi gurus,
    I encountered an error as I was tring to upload purchase orders - "Quantity conversion error in net price calculation". What does this mean and how do I fix this?
    Please help
    Thanks

    Hi Jürgen,
    Where in the Material Master can I find the conversion ratio between both units?
    Also, I am trying to upload POs for Spare Parts and that's when I get the error. But when I try to use other materials like FGs, everything is ok. I can proceed with the upload without any problem
    Please help

  • ME21N--Quantity conversion error in net price calculation

    Hi MM experts,
    Issue: while creating PO, when attempting to add the net price for line item. but system removes the cost and gives the follow error message says "Quantity conversion error in net price calculation".
    The system was not able to convert the order unit into the purchase order price unit. Possible reasons:
    i) the conversion results in a net price that is too high, or
    ii) the conversion factor for the units has not been properly maintained.
    iii) Check whether the units of measure and their conversion factor are correct.
    I have checked material master>unit of measure> 1 PL = 22 KG maintained.
    Can you please tell me how to resolve this issue?
    Appreciated early response.
    Thanks in advance.
    Suresh

    Hi Suresh,
    Please check on Material Master Data - Accounting 1 tab - Price Unit
    Moshe

  • Quantity Conversion Error in Net Price Calculation

    We are currently using SRM 5.0 ECS where we created a material PO and had a problem with the product not having the language E maintain in the material master. This caused the PO to have status of "error in process"  Once we fixed this issue and tried to reprocess the PO we're not getting the following error message in the Application Monitor:
    No Instance of Object type PurchaseOrder has been created. External Reference
    Puchase Order still contains faulty Items
    Quantity Conversion Error in Net Price Calculation
    Has anyone seen this or know what we can do to resolve this so that the PO gets replicated in R3?
    Thanks in advance.

    Hi Robert,
    Regarding this backend error E 212 06 Quantity conversion error in net
    price calculation.         
    This error is because in the PO Order price unit is empty. And          
    quantity is null. So, please enter the quantity and order price unit          
    for this PO and order the PO again. Or you can retransfer the      
    PO manually using the FM BBP_PD_PO_TRANSFER_EXEC. (for this fm you need       
    to input the PO header guid, which you will get it from tx.BBP_PD             
    by providing PO number and object type as BUS2201).
    This has worked for other customers.
    Hope this helps,
    Kind Regards,
    Matthew

  • Quantity conversion error in net price calculation in BAPI_PO_CREATE1

    I'm creating PO from BAPI_PO_CREATE1 .here i'm getting follwing error
    quantity conversion error in net price calculation.
    plz guide me to remove it.

    Are you using quantities directly entered by the user while calling the function to do the net price calculation? If that is the case, you should use FM CONVERSION_EXIT_ALPHA_INPUT to convert the quantity from the external format into the internal one!
    Another possibility is that some customizing is missing for converting quantities in different unit of measures (like the quantity in pieces is known, but the pricing calculation is being done on kilos.. but the convertion between these 2 unit of measures is missing).
    Good luck!

  • Error in net price calculation, item 000010 (Please correct)

    Hi
    Can you tell me error and correction for the same ? It occurs during creation of Std.PO. whom RM1000 prcing procedure is assigned.
    Error in net price calculation, item 000010 (Please correct)
         Message no. 06213
    Diagnosis
         Possible causes:
         o   The net price is negative.
             Check the prices and conditions entered.
         o   An error has occurred during currency translation.
             Check whether the foreign currency is defined in the system.
         o   The unit of measure of an item is not allowed.
             Check the units of measure entered.
         o   An internal error has occurred during the price determination
             process.
             A mandatory condition type is not defined in the system. Please
    In the analysis under item details condition tab I got message 301 as Acess 0002 12 is missing.
    Acess seq. 0002 is assigned to condition type PB00.

    I know this thread is very old but I had the same issue and found the solution.
    Enter the SubTotal in the pricing scheme for condition P101 (in my Case 9 - Copy values to KOMP-BRTWR (gross value)).
    Than it works for my case.
    Hope this helps.

  • Creating order form and need Java Script to calculate unit price and quantity in Acrobat Pro.

    Hi,
    I am creating order form in Acrobat Pro , and I have
    code
    Order Quantity
    Unit price $
    201
    500
    $ 0.52
    201
    1000
    $ 0.36
    202
    300
    $ 0.26
    202
    500
    $ 0.2
    How make Subtotal and Total price with Java script.
    I do not know how to write java script.
    Anyone can help me?
    Thanks,

    Thanks for your response. I have 2 quantities and 2 Unit price for each code, I know a simple sum in calculation it works for 1 unit price and quantity.  Can you please let me know how to do it? One of the expert sent m this:
    //change field names as needed
    var qt1 = this.getField("qt1").value;
    var up1 = this.getField("up1").value;
    var qt2 = this.getField("qt2").value;
    var up2 = this.getField("up2").value;
    event.value = (qt1 * up1) + (qt2 * up2);
    I put this in total text field (calculation tab , Custom script) , but it  did not worked.
    I appreciate it if anyone can help or give me  suggestion.

  • Cost Price Calculation

    Hello Gurus,
    How to calculate the cost price of an Article in Retail, how does the system calculate it?
    I did try looking for SAP note for help. However I couldnu2019t find one. Would appreciate your responses. 
    Thank you for your time in advance.
    Regards,
    Gareth.

    Hi Gareth,
    If by cost you mean the moving average price the system deos the calculation as mentioned below
    MAP = (Current stock value + Receipted stock value) / (Current stock quantity + Receipted stock quantity).
    For e.g. if you had 5 quantities of material X with unit price as $10 your current stock value is $50.
    now if you take a GR 10 quantities of the same material wih unit price $15 your receipted stock value will be $150.
    The MAP in this case will be: (50150) / (510) which is $13.33.
    Regards
    Kaizad

  • Actual Price Calculation (KSII)

    hi,
    I am not able to get the actual prices for my production order.
    I maintained certain settings for actual price calculation in OKEQ.
    Does it is mandatory to run the MFN1 (Revaluation of actual prices) before the KSII.
    Srinivas

    Hi Sateesh,
    Please find below the process for calculation of Actual Activity Prices:
    1. Define Splitting structure, rules (method). I am sure you would have done this
    2. Assign the splitting structure to Cost Centers. I hope you would be done this as well
    3. Actual values (Costs and quantitative details) will get collected to cost centers in the following way:
         - Quantities will get collected to Cost Centers once the confirmation of activities are done for the        production order.  Please make sure that "Record Quantity" check box is selected for the relevant secondary cost elements. 
         - Values will get collected from FI to the primary cost elements
    you may check whether the values have been properly collected to the cost center using the cost center reports
    4. Execute cost Split using - KSS2
    5. Then calculate Actual activity unit price - KSII
    6. Once the prices are successfully calculated, you can check the prices in KP26
    7. after this process is completed then you can revaluate you production orders using the actual activity prices
    I hope i made is clear.
    Let me know if you need further details in this regard
    Surya

  • Actual Activity Price Calculation

    Dear Gurus,
    1. I have defined activity type say "Power" through KL01
    2. Maintained the planned price through KP26 for the cost center which is going to use this activity type. say 
        cost center is "CCTR1"
    3. Now there is something as actual activity price calculation at period end
    4. When i execute through KSII i get the actual price which is the debited cost elements of the "CCTR1"
        divided by the Activity Type "Power"
    5. The debit balance of cost elements in "CCTR1"  is Rs 10000 and activity type consumed through process  
        order is 200 KWH, hence the Actual price comes to Rs 50 Rs/KWH. While the planned price in KP26 is
        Rs 6/KWH
    How logical is this....
    With Regards,
    Amit

    Hi Amit,
    Let me give some insight into the Activity price calculation and cost obsorption from Cost Center to Prodcution
    1. Normally we incur the production cost through FI like Direct Labor, Power, Indirect Labour and other indirectct production overheads
    2. This cost is posted to Production Cost Centers
    3. Now this cost need to be obsorbed to product cost using either Activity costing through Routing or Overhead costing using costing sheet.
    Since you question is for Activity costing, let us focus only on activity price and absorption to Product Cost
    1. All the direct cost that can be tracked with certain reasonability with activity types can be absorbed through activity costing to product costing
    2. Now in your case, take for example - the industry you are working is power intensive, then we can track the consumption of Power using activity costing
    3. At the first instance, you need to forcast the activity quantities for the month (based on the production planning)
    4. Based on this, you forecast the cost that would be incurred for the expected output
    5. Calculate planned Acvitiy Unit price and update it in KP26. The updation can be manual or automatic (using Cost Splitting and Price Calculation in case of Activity independant cost planning)
    6. For all the activity confirations to the production/process order, the cost obsorption will take place based on the planned price
    Actual
    7. The cost of the power will be booked in FI and posted to Production Cost Center for the month.
    8. The actual Activity quantity will be booked from Production confirmation for the month
    9. At the end of the month, you need to do the actual price calculation.  This calculation will be based on the TOTAL COST BOOKED FOR THE MONTH TOWARDS POWER FOR THAT COST CENTER DEVIDED BY TOTAL QUANTITY CONSUMPTION RECORDED IN THE COST CENTER
    10. Once this is done, You can revaluate the activity quanitities booked on each of the production order.
    This is how the activity cost aborption will take place in product costing
    Please let me know if you need further details in this regard
    Surya

  • Cost splitting and Actual price calculation

    Dear all,
    What is the difference between cost splitting and actual price calculation?
    Thanks & Regards,
    Ar

    Hi,
    KSS2 (splitting) is fixed cost splitting based on defined splitting rules. Fix cost splitting means, although the cost are activity unindependent (=FIX) they are splitted to each actual activity unit,... (based on the splitting rule you use)
    This is/can be a prerequisite for calculating actual activity rates, which is done by KSII (actual price calculation).
    best regards, Christian

Maybe you are looking for