Varaince

hi
i need to fetch ebeln , ebelp, menge, dmbtr, bewtp from EKBE table.
after fetching based on ebeln and ebelp i have to find varaiance for dmbtr and menge.
for eg:
for a particular ebeln
ebeln         ebelp            bewtp    menge     dmbtr 
452111       0010              e          9              4000
                  0010             e           1              3000
                 0010               q          10             7000
                 0020               e           4               5000
                 0020               q            5              5000
                0030                e            4             6000
                 0030                q           4             7000
from above table
for ebelp 0010   ,  bewtp = e,  menge 91 = 10      dmbtr  40003000 = 7000    
                                       =q             10=q                        7000=q  no varaince
for ebelp 0020       bewtp = e,         menge =4      dmbtr =5000
                                       =q                   =5                =5000
there is a varaice in quantity(menge)
in the same way for ebelp =0030    there is varaice in price(dmbtr)
i have to show price and qyantity varaice in o/p as
thanks in advance.
ebeln         ebelp           menge     dmbtr 
452111       0010             0                0
                  0020            1                 0
                   0030           0                 1000  
please help me how to write code for this, its urgent.

HI
In COPA we need to decide on the Value field for the posting and create the PA transfer structure. Rest should be done in product costing by way of assigning the PA transfer structure in settlement profile wherein the receiver should be profitability segment.
Anand

Similar Messages

  • Varaince cant able to see in copa report

    Hi,
    previously my scenarios is MTO now for one division they have changed it MTS.
    i could able to settle prodution order through ko88 during settlement of production order variance is calculated without any error.
    i could not able see to these variance in copa report.
    and that to variance is coming in ke24 only when i select production order.
    during settlement of production order copa douctment is generating sucessfully.
    please help if i had missed any configuration.
    thanks
    kareem

    hi,
    i have not catch ur points here,
    production order selection characteristics means i have selected order characteristic in define segment leval charactersitics
    and record type in ke35 from record type to  to record type.
    when i select production order number in ke24 actual line i could able to see copa report that belong to varaince that which have settled during ko88 of production order.
    do i have missed  any configuration part please suggest me.
    thanks
    kareem

  • Price varaince

    Hi
    How do i get price varaince in material master.
    Tell any std t.code is there
    Rgds
    Srini

    hi,
    >You can also set special tolerances if the price in the >purchase order is flagged as an estimated price.
    Regards
    Priyanka.P

  • Price Varaince With ref to Purchase Order  for Good Receipt

    I want to set the Tolerance limit for GR using PO Price.I don't want to receive goods more than 500$ of PO Price ..In SPRO -MM- IM - Tolerance key for GR , There are two variance , one for Variance in the purchase order price quantity
    - Tolerance key B1 (error message)
    - Tolerance key B2 (error message)
    When i set them for 500 $ , it is not RE -appearing in the screen itself ..Any input ?

    Hi
    First Goto , OLMB----->Define Attributes of System messages--
    .> Activate, The message, Version 00, Application Area M7, Message No: 022 in to ERROR.
    Then, For the Line Item of  PO Price 10,000$, choose the line item -
    > In Item Detail----->In Delivery Tab----->Dont give any Over delivery tolerance and Unlimited delivery tolerance.
    For the Line Item of  PO Price 100$, choose the line item -
    > In Item Detail----->In Delivery Tab-----> give your required Over delivery tolerance  limit in %
    Your problem will be solved
    Reward if useful
    Regards
    S.Baskaran

  • Varaince settlement and costing sheet in REM and Production order

    for REM, repetetive manufacturing, what's the difference between REM and production order in terms of variance settlement and settlement profile design? what's the difference between process order and production order in terms of variance settlement and settlement profile design?
    for actual overhead(fixed and variable), can it be calculated automatically by costing sheet? user is very angry to input actual overhead by jounal entry. also how about plan scrap, how to define it in configuration? besides order confirmation, where can I input actual scrap?

    For variances, there is no difference between the 3 diferrent orders. The settlement profile can also be the same.  The real difference from a CO perspective concerns the calculation of WIP and the settlement rule.  Process orders and production orders normally use a full settlement rule (though periodic settlement is also possible) and WIP is calculated based on actual cost.  Repetitive orders only use periodic settlement and WIP is valued at target cost.
    From an overhead perspective, there is no difference between the 3 types of orders.  Overhead sheets are assigned through the costing variant and costs are applied through period-end process. 
    Plan scrap is maintained in master data, either in material master, routing (receipe for process orders), or bill of material.  Acttual scrap usually happens based on the quantity of components issued to the order during confirmation or by the amount of scrap reported during confirmation.  If you are backflushing components, as you normally would do for repetitive, then you can adjusted the consumed quantities by doing an additional goods issue to the order (movement type 261).
    thanks,

  • WIP job has Inv- Cost Varaince

    While Doing the assembly completion return transaction,its hitting the Inv-variance account and after recompletion also showing balance in Net activity in WIP Job value summary...how to adjust cost variance and how remove balance in net activity..?

    Welcome to Oracle Forums..
    What is the costing method you are using? Run the Bill of Material Cost report and see if there is any difference in the rolledup value and the frozen cost of the assembly on the job.. What ever difference you have there X Job Qty will be the total variance in your Job (after completion and closing it).
    To make this zero, you have to look at where the cost rollup for the assembly and correct any errors there..

  • Target Cost in the settled process order become zero after cost deletion

    Dear all,
    User has standard cost estimates created in Jan 2010 that valid until the end of 2010 for every material in the system.  user created a process order in April 2010. Target cost of the order was created based on the standard cost estimate and recipes as well as order qty.    The order was also confirmed and settled in April 2010 without problem. 
    However, after I deleted all old costing estimates before I did a costing run for all materials in May 2010, the old order was resettled and all Target cost is removed from the order.  I guess system try to look at April costing estimate but it is not there since it was deleted before I created the new costing estimate in May.  Therefore, all varainces are throwed into remaining variances since the target cost become zero.
    Other than mark the settled order for deletion or keep all old costing estimates,  I am just wondering is anyway in the configuration to prevent the system to recaculate the target cost again for the settlement so I can avoid the problem happens?
    Thanks.

    Hi,
    Target costs are only calculated after goods movements have occured on the order, the Target Costs are then calculated during the Variance calculation.
    Target costs will only be calculated after the first goods receipt has been posted to the order. Also you have to ensure that the information to calculate target costs exists on the system in particular in OKV6.
    This estimation is based on the customizing for the Target cost version in transaction OKV6 as in turn will the "real" calculation of the Target costs via the variance calculation.
    So in OKV6 the Target cost will be based on preliminary costing on the order, an alternative cost estimate or the current standard cost estimate. Importantly if the choosen option is not fulfilled e.g. no current standard cost estimate, the target costs will not be predicted or calculated.
    regards
    Waman

  • How to add a PERCENTAGE sign to the formula

    I was using %A in a fomula to calculate variance %age.
    Because %A is based on absolute value that eliminates the sign it wont work for us.
    I am planning to do direct calculation without %A to calculate pecent varaince but then I lose the % sign from the cell.
    I am sure you can help.
    I need to calculate %age and then also display % sign in the cell. For example the cell should show 20.00 % not just 20.00.
    If I get a prompt reply not only I will be thankful will also give full credit.

    Hi Ram,
    you can display the % sign in the query report
    In the formula select , instead of using percantage share , I think you can use either try with (%CT) or (%GT) and this will be available in percantage functions
    I have done for one my report and able to display % sign.
    kindly try with the above options if not able to achieve then let me know, I will provide the step by step doc.
    thanks

  • Purchase price variance line item - not to be posted in Parallel currency

    Hi All,
    Scenario:
    Transaction currency - SGD
    Local Currency - INR
    Parallel Currency 1 (LC2) - Group currency - USD
    Parallel Currency 2 (LC3) - Global Company currency - INR
    Import PO - MIGO - MIRO
    PO is raised in foreign currency.
    Material master price control is maintained in 'S'.
    While doing MIGO, I am getting following accounting entries:
    Stock a/c Dr.
    GR/IR a/c Cr.
    Price variance* a/c Dr.
    *The price varaince is because of difference in my material price as per material master and PO.
    If I go and check in FBL3N, I can see all the line items in Transaction, Local currency and 2 Parallel currencies.
    My query is, In SAP is it possible to avoid Price variance line item posting to Parallel currencies.
    To my knowledge I know that it is not possible to avoid a single line to post it to Parallel currencies.
    Thanks in advance.

    This is the answer from OSS
    Dear Customer,
    the system works as designed.
    When Material Ledger is activated, price differences are always
    generated under the circumstances you have described. The reason is
    that when material ledger is activated, price differences must not be
    included into the stock changes value, otherwise the system would
    not be able to calculate an actual price.
    When Material Ledger is activated, the customizing setting
    for handling price differences in the subcontracting process has no
    effect.
    Best regards,
    Santiago Lorite
    AGS Primary Support, Business Suite & Technology u2013 Logistics

  • Only remaining var. in version 0 - no target costs

    Hi!
    We are doing settlement for process orders, most of the process orders are created and goods receipts happened before standard cost estimation is released.
    So during varaince calculation (KKS2/KKS1) we are getting error message: Only remaining var. in version 0 - no target costs
    as we cannot cancel the goods receipts for process orders, we are doing settlements with remaining variance only.
    The variance will directly go to CO-PA, as we have activated the same.
    the example of one process order:
    Total goods receipt is : 44175.58     co-product 1
                                       3757.38     co-product 2
    total receipt              47932.96
    Materials Issued(GI)     20025.98     
    Activity Cost          11985.3     
    _Total Cost     _     32011.28     
    the variance is:            13764.86             co-product 1 ( as per settlement rule 95%)
                                      2156.82              co-product 2  ( as per settlement rule 5%)
                                      15921.68
    Once we have done the settlement there are 4 accounting documents posted for variance:
    1.     Cost of production a/c DR 3757.38
                        TO Variance A/C Cr 3757.38  ( value flowing to COPA)
    2.     Cost of production a/c DR 44175.58
                        TO Variance A/C Cr 44175.58 ( value flowing to COPA)
    3.     Cost of production a/c CR 1600.56
                       TO Variance A/C Dr 1600.56 ( value is not flowing to COPA)
    4.     Cost of production a/c CR 30410.72
                        TO Variance A/C Dr 30410.72 ( value is not flowing to COPA)
    So the net effect of variance account posting in FI is OK.
    But where as in CO-PA, variance is different, because only first two values ( total goods receipt value as variance amount) as above are passing to COPA.
    Now how can we rectify the variance values in CO-PA?
    We are using PA transfer structure A1 with the following assignments:
    10     Input price variance
    20     Mat Input quantity variance
    30     Mat Resource-usage variance
    40     Remaining input variance
    50     Mixed-price variance
    60     Output price variance
    70     Lot size-/fixed-cost variance
    80     Remaining variance
    90     Scrap
    regs,
    ramesh
    Edited by: Ramesh Balivada on Jul 28, 2011 6:41 PM

    Hi ramesh
    You need to live with this as you cant reverse the GR
    To check this henceforth, use badi Workorder_update and write abap code for the Method AT SAVE or AT RELEASE... Check if field MBEW-LPLPR is INITIAL
    br, Ajay M

  • Cost elements set in KEI1 A1 Settle Production Variances?

    Dear Experts,
    What kinds of cost elements would be set in KEI1 If the PA transfer str. is A1Settle Production Variances?
    10     Input price variance
    20     Input quantity variance
    30     Resource-usage variance
    40     Remaining input variance
    50     Mixed-price variance
    60     Output price variance
    70     Lot size-/fixed-cost variance
    80     Remaining variance
    90     Scrap
    Could i say "cost elements that we can see when we do KKS1 variance caluation?
    Or else?
    Thanks in advance.

    Hello,
    You NEVER assign cost elements to value fields for mapping the settlement in COPA. Instead of that what you do is in the source tab for the line (eg 10 Scrap) select the radio button called ' varainces on production orders' and input the appropriate variance category eg. eg SCRP. In value field tab you would assign the appropriate value field. There is no need to assign cost elements. When you execute variance calculation the information is captured in the following fields and the same flow to COPA when you assign the variance category to value fields.
    PRIV      Input Price Variance
    QTYV     Input Quantity Variance
    RSUV     Resource-Usage Variance
    INPV             Remaining Input Variance
    MXPV     Mixed-Price Variance
    OPPV     Output Price Variance
    LSFV     Lot Size Variance/Fixed-Cost Variance
    REMV     Remaining Variance
    SCRP     Scrap
    The variance calculation is not just a simple difference between the cost elements it is also related to quantity as well.
    Kind Regards // Shaubhik

  • Quantity variance in Invoice Vs. Three way match in PO

    Hi Experts,
    I am not able to find any differrence between quantity variance Vs. Three way match in PO.
    For example in our purchase orders for all the items we are having Two way match (PO-Inv, GR-Bsd Inv is not checked) but we have defined quantity varaince in Invoice. So when we are trying to post invoice for purchase order item for which goods reciept is not performed, system is blocking the invoice due to quantity variance.
    So i think if you have quantity variance at invoice level then system is going to check whether goods reciept is perfromed or not regardless of Two way or three way match.
    Please advise if my understanding above is correct.
    My second question is as we can define two way/three way match at various level (Supplier, Inforecord etc.). Is there anyway that i can define that quantity variance in Invoice should be for certain material groups only.
    Please advise.
    Regards,
    Kamal

    hi,
    when you set the qty variance, and try to post the invoice just after the PO, the system will show a message at IR ie. " Quantity delivered is Zero"...
    this message is warning message...
    The system will block the invoice item when the doc is posted, depending on how the tolerance key DW  is set(Qty variance to Gr qty = zero)...
    Hope it helps..
    Regards
    Priyanka.P

  • Variance between GL inventory account balance and OPM inventory value

    Hi everyone,
    I am using OPM actual costing method (PPAC), I have set profile option GMF: Book Allocations using current period basis to YES.
    Assume that we have a product x with openning balance Quantity = 20 TONs and Vale = 100$ (Unit cost = 5$).
    Assume that the production quantity in that period was 50 Tons and GL expense was 200 $ (material cost = 0), OPM will generate the following journal as GL Allocation subevent:
    Cr. ALC 200
    Dr. INV 200
    Assume that the usage quantity in that period was 30 TONs at 7$ as average unit cost.
    Cr. INV 210
    Dr. WIP 210
    Which means the closing balance in GL will be 100$ + 200$ - 210$ = 90$.
    But in OPM the inventroy value will be 40 TONs(Closing invntory QTY) * 7$(Average unit cost) = 280$.
    I have faced this problem in all products, Can anybody explain to me how can I resolve this varainces.
    Thanks

    I haven't worked on PPAC but I assume its only a cost method to build the cost. Once costs are build GL entry happens in the same way.
    You said that you first freeze the cost and then run subledger update report.
    Once you freeze the cost, what cost do you see for product x?
    Once you produce 20 TONS output; subledger update should generate entry as follows:
    Cr WIP: cost*20
    Dr INV: cost*20
    Now you mentioned about title ALC (GL Allocation). I haven't seen that title.
    Also at the period end we need to run revaluation of inventory for STND method, I am not sure if the same is required for PPAC. Try performing that in test instance to see accounting entries generated.
    I am sorry if I confused you or didn't understand your question. I have used mostly worked with STND method and just trying to extend my experience with PPAC.

  • Reg Price block and Qty block in MM Invoice docs Tolerence Keys adjustment

    Hi Friends,
    Related to MM Invoice documents gets blocked with Price block and Qty block,based on this FI doc also gets blocked with Payment block indicator"R".As per Std SAP we can remove these blocks thru MRBR. Right now my users are asking not required to remove these blocks with MRBR Tcode.
    So i checked the Tolerence Limits defined for the co code and Tolerence keys.
    As per my understanding Tolerence Keys "PP-Price variance",  "DQ-Exceed amount: quantity variance" need to adjust with upper llimits and Lower Limits.
    here i can see Upper and Lower check limit Tolerance limit 5.00%  for  Tolerence Key "PP-Price variance"
    Tolerence limit 0.01%  for  Tolerence key "DQ-Exceed amount: quantity :quantity variance         
    Instead of changing the Tolerence Limits can i select the DO NOT CHECK Radio button for the bothe Price and Qty block.
    If i selected the DO NOT check button what will happen,how it works.
    How i can maintain the Tolerence keys,is there any other Tolerence keys also need to maintain.  
    Please suggest me with your valuable inputs.  
    Brgds,
    RK
    Edited by: RK.SAP on Nov 17, 2010 7:02 AM

    hi,
    If you do not want to check the Invoice for tolerance keys like quantity variance and price varaince then tick on don't check .In this case system will not block any invoice and invoice will post Automatically without any error.
    Please check other tolerance keys in SPRO: OMR6
    One more blocking is defined in the vendor master also under payment transactions accounting screen.There you are defining the tolerance group for Invoice Verification.
    Regards,
    Amit

  • Production Variance to sales order...

    Hi Experts,
    It is possible to settele Production Variance to sales order item(MTO with valuted sales order).
    The production order is created with reference to sales order....
    Please someone tell me how can settele variance to sales order to view the total cost at sales order level
    Thanks,
    Chandu

    Hi,
    You can use VA88 to settlement of varaince to sales order.
    Thanks
    S.Subbiah.

Maybe you are looking for