6-sigma,Cp,Cpk,Pp,Pk calculation for SPC Analysis in MII

Hi,
1) Are there any built in functions or calculations available in MII to get the 6-sigma,Cp,Cpk,Pp,Pk for SPC/SQC Analysis?
2) Is it possible to enable the periodic calculation of control limits?
In past if anybody implimented the above scenarios in MII, please let me know.
I'm using MII 12.1.4.
Thanks in advance.
-Suresh
Edited by: Suresh Hiremath on Feb 17, 2010 8:17 AM

Hey i think u need to use following code (EST_CP instead of Cp)
var Cp=document.SPCAPP.ChartObject.getStatasticsItem("EST_CP");
Alternate way as follows
First u can get all standard params like mean, standard, lsl and usl using following codes
var x= document.SPCAPP.getChartObject().getStatisticsItem("MEAN");
var sigma = document.SPCAPP.getChartObject().getStatisticsItem("STANDARDDEVIATION");
var lsl= document.SPCAPP.getChartObject().getStatisticsItem("EFFECTIVE_LSL");
var usl= document.SPCAPP.getChartObject().getStatisticsItem("EFFECTIVE_USL");
then
     if(usl=="" && lsl!="")
                                          var Cp = "NA";
          var Cpl  = Math.round(((x - lsl)/(3*sigma))*100)/100;
          var Cpu = "NA";
          var Cpk = Math.round(((x - lsl)/(3*sigma))*100)/100;
          var Cpm = "NA";
          var Cr = "NA";
          if(usl!="" && lsl=="")
          var Cp = "NA";
          var Cpl ="NA";
          var Cpu = Math.round(((usl - x)/(3*sigma))*100)/100;
          var Cpk = Math.round(((usl - x)/(3*sigma))*100)/100;
          var Cpm = "NA";
          var Cr = "NA";
          if(usl!="" && lsl !="" )
          var Cp = Math.round(((usl - lsl)/(6*sigma))*100)/100;
          var Cpl = Math.round(((x - lsl)/(3*sigma))*100)/100;
          var Cpu = Math.round(((usl - x)/(3*sigma))*100)/100;
          var Cpk = Math.min(Cpl,Cpu);
          var Cpm = Math.round(((usl - lsl)/(6*Math.sqrt((Math.pow(sigma,2) + Math.pow(x-((parseFloat(usl)+parseFloat(lsl))/2),2)))))*100)/100;
          var Cr = Math.round(((6*sigma)/(usl - lsl))*100)/100;
Regards
Som

Similar Messages

  • Obtaining QM Historical Data for SPC Analysis

    Can someone please advise me if ECC 700 has a standard BAPI/RFC to return historical QM data.  I have searched through BAPI Explorer and didn't not see anything which would fill this requirement.
    What I did find was the following document, [SAP QM Productivity Pack for SAP xMII (Starter Kit)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0b0cf92-af8b-2a10-d8a5-f1e115fa5f7e], which provides detailed code to create an custom RFC. Before proceeding down this path, I wanted to confirm that I did not miss something.
    Thanks,
    Michael Teti
    Senior Solutions Consultant
    SeeIT Solutions, LLC

    Michael,
    Here is the link.  This is considered old tech, but I have not gotten anyone's specific input on why it should not be used.  There may be reasons.  I have used it twice, once just playing around and with only one caveat, it was pretty easy to implement. 
    [SQ01 Queries|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/390b889b-0e01-0010-e4af-c9a062b9b880]
    The document covers 5 or so RFC calls.  You will need to check the field names since they are defined internally and do not use the table column names (of course).  Probably the only thing left out of Sam's document.  One of the RFC calls will give you the internal field names.
    You will also need to create your own query in SQ01 in SAP prior to doing the other stuff.  I think there is a way to do it via the BAPI calls, but I could never get it to work the one time I spent half a day trying.  It might have been a permissions issue, so if you want, go ahead and play around. 
    Good luck,
    Mike

  • Automatic calculation for batch characteristic

    Conversion factor is a batch characteristic which is to be calculated based on the other batch characteristics values entered by the user at the time of confirmation.
    I have maintained the objectdependency in the batch class (023). The dependency type maintained is "Procedure".  The batch class is assigned to material master. The formula is as follows
    $self.conversionfactor=((($self.actthickness-0.067)*$self.density)
    ($self.paintgsm$self.metalgsm))*$self.width/1000
    The formula is appearing in 2 lines in the dependency editor. There is no syntax error. As well as the dependency status is also "released".
    But at the time of confirmation, if the values of the other characteristics are entered, no calculation for the characteristic conversion factor is done by the system.
    Can anybody please guide on this???
    Regards,
    Manish

    thanks a lot

  • Interest calculation for vendors

    Hello gurus,
                     In interest calculation for vendors, In interest on arrears calculation(vendors) t-code (obv9) Here wht we have to configure the steps, like Infirst step i had given,,
    Account symbol             Currency                 G/l Account
    0002                                  inr                       40009(interest)
    Then second step wht i have to give for vendors,, if it is  general ledger we will give 2000(g/l a/c paid).
    My question is wht we have to give in second step......For Vendors...
    Regards,
    Assign Points.

    Hi,
    vendors and customers interest is p type.and it is item interest calculation. The t.code f.2a, f.2b. Try with this.
    If helpful assign points,
    Rams

  • BEx report -two different calculations for a result for one key figure how?

    All,
    Maybe someone could help me with the following, we have a requirement to setup for one key figure two calculations for result rows. One result (average) for one level, and on a higher level -grand total have a (sum), as for our business it makes sense to do it this way. We have setup average for this KF, we get correct results (see below values 7,5 & 6,5) however for the grand total (across multiple products) so for one level up we need to have a different calculation. How could we achieve this?
    Here is an example:
    location     product          inventory     
    AAAA     11111          5     
    AAAA     11111          5     
    AAAA     11111          10     
    AAAA     11111          10     
    AAAA     Result          7,5      ---> average
    AAAA     22222          5     
    AAAA     22222          6     
    AAAA     22222          7     
    AAAA     22222          8     
    AAAA     Result          6,5       -
    > average
    AAAA     Result (across products)          14      ---> here I want to have a sum of averages

    This could be achieve only IF you upload a hierarchy for product inventory with different levels, wherein each level show subtotals and finally grand total will be shown at the end of the results.

  • Calculation for subcontracting item of type N (non stock) as it for type L(Stock)

    Hi Gurus,
    I have a Requirement for calculating the cost for Subcontracting  Non stock items N as it is getting calculated in standard functionality for subcontracting items of Type L.
    This will be done in CK11n ( used to calculate the standard cost estimate of the product) for header as well as component materials.
    please suggest the user exit or Badi where i can change.
    Please refer the below logic-
    BOM for the material 2000500 as Header and 1LPL0835298AB as a component and this component has an assembly with 7008508 as a component and this component is an Sub contracted item and this has an assembly with component 1LBA182151-3.
    Price calculation for the material 7008508 (Item Category as N). Since this is sub contracted item the price will picked from field EINE-NETPR.
    In EINA, pass the material (MATNR=7008508) to fetch the list of info records (INFNR) created for that material.
    Then it has to input those info records to EINE table along with Purchasing organization (EINE-EKORG=PT02).
    From the output of EINE table, it should compare the price (EINE-NETPR) of the PIR and should take the least price from those PIR`s.
    If the currency is other than PLN, then it should be converted to PLN based on conversion charges.
    For Material (MATNR=1LBA182151-3), it should pass the material number to table MBEW along with valuation area (BWKEY = WERKS).
    From the output, it should check the Price control (VPRSV) ‘V’ or ‘S’
    If ‘V’ the price will be picked from the field “VERPR”
    If ‘S’ the price will be picked from the field “STPRS”
    Also from the output, it should check the Price unit (PEINH) ‘1’ or other than ‘1’. If it is other than ‘1’ it should divide the VERPR or STPRS by PEINH. Then this is the price of the Material “1LBA182151-3”.
    The material (MATNR=1LBA182151-3) should be passed to table “MARA” and will take the Base unit of measure from that table “MEINS”.
    Br,
    Surya

    Hi Surya,
    Please put breakpoints in any of the below BADI's and check if any of them will trigger for your
    requirement:
    VALUATION_CK                            BAdI for Valuation in Product Costing
    CK_KALAMATCON2_CI                       BAdI for CI Fields for Table KALAMATCON2
    COSTINGRUN_CK                           Edit Costing Run
    COST_APPORTION_CK                       Maint Apportionment Structure Joint Production: Dist Rules
    CO_PROD_COSTING_CK                      Cost Management for Joint Products (Costing, Target Costs)
    DATA_EXTENSION_CK                       For Data Enrichment in Product Costing
    DYNPRO_EXTENSION_CK                     BAdI for Interface Enhancement in Costing
    ORDER_COSTING_CK                        Enables Header Data Changes in Preliminary Order Costing
    QUANTITY_STRUCT_CK                      Enables Quantity/Structure Changes in Costing
    SUR_STOCK_TRANSF_CK                     Overhead on Materials with Stock Transfer Between Plants
    Thanks
    Sri

  • How to prevent BPC from automated calculating for hierarchies / nodes?

    Hi experts,
    I am looking for a practicable way to prevent the system from automated calculating for hierarchies, and especially for nodes within hierarchies?
    Let's say, I have ENTITIES (AS A HIERACHY) in rows and ACCOUNTS in COLUMNS. Now I want the system to block adding up the values for one specific account on node XY. Instead of the sum of all base member entities, the cell for account XY should be left empty.
    Is there a practicable way to deal with this?

    Hi Stefan,
    you can prevent the system to calculate a node by editing the Formula Property  in the Dimension.
    You can insert 0 or null to the Formula field for the specific element.
    But in this case the values from your leaf elements lying under your node wont be calculated  even in higher hierarchy nodes.
    For ex.: with the following structure
    -A
    ---A1
    A11
    A12
    ---B1
    B11
    B12
    If you set A1 to 0, the top node A will only be calculated by values of B1
    Regards
    Jörg

  • How to address HP Printer Software Update 3.0, iTunes 12.0.1 update that sits in the App Store, 'Calculating' for days with no install?

    The App Store indicates there is a Software Update that appears to include the HP Printer Software Update 3.0 and iTunes 12.0.1
    Unfortunately, the software update fails to install. Instead, it just sits there 'Calculating' for days with no progression on the status bar of the overall update.
    The update buttons of both the HP Printer Software Update 3.0 and iTunes 12.0.1 are both greyed out, with no progress bar.
    Not sure of what the issue is, there is no warning or error dialog box that appears or any indication of an application that may be interfering with the install.
    Any advice? 
    MacBook Pro (17-inch, Early 2011) 2.3 GHz Core i7, 4GB RAM

    Thanks for the suggestion. I wanted to install the individual updates but because I had settings to automatically download and install updates, whenever I opened the App Store, the system would try to download and install, preventing me from canceling the update to execute each application update one at a time.
    After changing the settings from automatically downloading and applying updates, followed by a restart. I was able to open the App Store and run each individual update.
    Thanks again.

  • Fixed 30 Days calculation for any month..Not working fine when Split Occurs

    Hello Everybody,
    I am stuck with an issue..which is creating problem when there is a split..in Normal Conditions it's working fine...Kindly help me out on the same.
    We have to calculate the Salary on 30 Days fixed basis and not on calender days...
    <b>eg  For January Salary will be calculated based on 30 days and not on 31 days and for Feb also on 30 days not on 28/29 days.....</b>      Every thing is working fine for normal payroll i.e without any splits..
        <b>But if there are any splits  in the month then calculation for 2nd split goes wrong ....</b>
        Eg.  person is hired on 02feb 2007 and he got re-org on 17 feb 2007 with basic as rs.10000
      As per Clients requrement it should be calculated as  :
    for period 2nd Feb 2007 - 16th Feb 2007 : 10000 * 15/30  : Working Fine in SAP
    for period 17th Feb 2007 - 28th Feb 2007 : 10000* 14/30 :  Not Working  Properly  <b>In SAP calculation is done  as 10000*12/30</b>
    <b>We want it to calculate as 10000* 14/30</b>
    Kindly let me know wat can be done :
    1 How can i write PCR..if that needs to be change
    2. If user exit then how shall i go about the same
    if some body has any 3rd option let me know...
    Regards,
    Ketal Parikh

    Hi ,
    Solved the issue by writing rule.
    Regards,
    Ketal
    Edited by: Sikindar on Jul 3, 2010 10:28 PM

  • What determines the price and tax calculation for consignment stock?

    Hi All,
    anyone knows how the price and tax are calculated for consignment stock? in other word, among the info record , contract or material master, what determines the price and the tax calculation for consignment stock?
    please advise, your input will be rewarded.
    thanks,

    First preceeding is taken by contract and then info records of consginment

  • Depreciation calculation for Indian Tax Depreciation Area - Fixed Assets

    Can any one of you kindly advice how to setup the Multi levels methods and Period controls for Tax Depreciation key in Indian Tax Depreciation area.
    My Leading ledger Fiscal year: Jan u2013 Dec (Year dependend)
    And Non-leading ledger (India) Fiscal year: April u2013 March (Year dependend)
    I was able to post correct depreciation for leading and non-leading ledger Depreciation areas with a stated percentage. But the calculation of Tax depreciation area is incorrect.
    As per client requirement, Tax depreciation area is setup only reporting purpose and no Depreciation posting.
    Required Depreciation Calculation for Tax Depreciation Area:
    For Acquires & Additions,
    Rule1:
    If it is >=180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation as stated percentage. Eg: 10%
    Rule2:
    If it is <180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation of 50% on stated percentage. Eg: Stated percentage is 10%, then it should be 5%.
    Early responses will be appreciated.
    Thanks much for the help.
    Regards,
    Bapu

    Hi JBC,
    please search this Forum, I think basic questions about Indian tax depreciation have been asked dozen of times in this Forum here. You should find some answers in earlier threads.
    Regards,
    Markus

  • Depreciation calculation for Indian Tax Depreciation Area

    Can any one of you kindly advice how to setup the Multi levels methods and Period controls for Tax Depreciation key in Indian Tax Depreciation area.
    My Leading ledger Fiscal year: Jan u2013 Dec (Year dependend)
    And Non-leading ledger (India) Fiscal year: April u2013 March (Year dependend)
    I was able to post correct depreciation for leading and non-leading ledger Depreciation areas with a stated percentage. But the calculation of Tax depreciation area is incorrect.
    As per client requirement, Tax depreciation area is setup only reporting purpose and no Depreciation posting.
    Required Depreciation Calculation for Tax Depreciation Area:
    For Acquires & Additions,
    Rule1:
    If it is >=180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation as stated percentage. Eg: 10%
    Rule2:
    If it is <180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation of 50% on stated percentage. Eg: Stated percentage is 10%, then it should be 5%.
    Early responses will be appreciated.
    Thanks much for the help.
    Regards,
    JBC

    Hi JBC,
    please search this Forum, I think basic questions about Indian tax depreciation have been asked dozen of times in this Forum here. You should find some answers in earlier threads.
    Regards,
    Markus

  • CONTRIBUTION MARGIN (PLAN) CALCULATION FOR PRODUCTS (PER UNIT, LOCATION WIS

    Requirement of a Report to calculate Contribution Margin (Plan) - For Calculating Contribution Margin.
    2 Key figures need to be arrived (per unit/cv of product, locationwise) are Net Sales Realisation (NSR) and Total Variable Cost (TVC).
    a) To arrive at NSR (Plan), all the combinations of upcoming discounts and Free Goods schemes which are going to be in force for the coming month for a product, need to be adjusted in the Net Sales Value to get NSR value per unit of Product (SKU / CV), locationwise
    The NSR is the result of adjusting Discounts, Excise and Schemes to the List price of a product.
    b) TVC is the result of adding Total Material Cost(TMC) + [(LabourPower) conversion cost]Freight.
    Calculation of material cost takes into account the LCC (Landed cost chart) price of the materials, which is a future price.
    The Total variable Manufacturing Cost (TMC+Conversion cost) can be calculated using Costing Run (CK40N), using LCC price.
    In COPA Reporting the values like List price, Discounts, Excise, Free Goods Schemes and freight flows from Billing Documents (SD) because of condition types mapping in to value fields in COPA, which are components for calculating NSR (Actual), based on the Actual sales.
    We want to understand how do the Plan values (List price, Discounts, Excise, Free Goods Schemes and freight) per unit of Product, location wise, flow to the Value fields in COPA Planning,  so that the Contribution Margin (Plan) can be calculated for each product per unit , location wise.
    Contribution Margin = NSR u2013 Total Variable Cost.

    Then you hit a bug in your version of Oracle. You may want to investigate and update to a newer version. I get the following error when trying to register your schema in 10.2.0.1
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00246: invalid QNAME "***_voting_flag"
    This error is consistent with Spy 2008 as well (I didn't try Xerces but I've got two that agree so it's good for me).

  • What are the custimization steps to run interest calculations for customers

    Hi,
    I need a full custimization steps to configure the interest calculations for customers. i created interest indicators, g/l accounts and account determinations also. but no interest is calculating for customers and customers are having no of days to calculate the interest. So please guide me on this regard.

    Hi,
    Configuring the Interest Calculations Procedure
    This configuration allows you to charge interest on overdue customer accounts.  Interest can be calculated by using the line items or overall account balances. SAP keep tracks of the date of the last interest run and stores it in the customer master record.
    First create an Interest Indicator.
    OB46 - Interest Settlement Calculation Type
    Int Calc. Type
    P - calculate interest based on line items.
    S - calculate interest based on account balances.
    Secornd, make it avaliable to the interest run program.
    OB82 - Interest Terms
    Third, determine the interest rate that will be used by the calculation.
    OBAC - Define Reference Interest Rates
    OB83 - Enter the Reference Interest Rates Value
    Fourth, assign the interest indicator to the reference interest rate.
    OB81 - Define Time Dependent Terms
    Finally, determine the how and to which accounts the interest program will post.
    OBV1 - Prepare Interest on Arrears Calculation
    Please check out the following link also:
    http://help.sap.com/saphelp_erp2004/helpdata/en/41/37b8e7455b11d182b40000e829fbfe/frameset.htm
    Hope this helps.
    Please assign points as a way to say thanks.
    Regards,

  • Service Tax Calculation for Condition Types

    Dear Experts,
    In an Import Purchase Order for Coal, along with the Basic Price of the Coal, the following Conditions are also entered, in the Condition Types maintained in the Import Pricing Schema
    -        Water front royalty
    -          Port Dues
    -          Berth Hire Charges
    -          Port terminal charges
    -          Surveyor charges
    Each of these conditions may have a separate Vendor, hence the Purchase Order creator will select each condition and assign the required vendor.
    Each of these conditions is subject to Service Tax, Educational Cess and Higher Secondary Educational Cess, the User want that separate service tax calculation be made available in the pricing schema for these individual conditions and the relevant vendor be assigned to these condition.  the service tax on individual conditions be paid to the relevant vendor along with the basic value for the condition.
    Separate Condition Types (15 nos.) for each of the above conditions for Service Tax, Educational Cess and Higher Secondary Educational Cess can be prepared and added in the pricing schema, the user will have to enter the percentages in the relevant conditions.
    The user wants that the Service Tax be automatically calculated for these conditions, instead of manually entering the same. Please guide how can this be achieved.
    Thanks in advance.
    AJ

    Hi,
    For this you have to maintain the all your charges in your pricing procedure along with each charge you have to maintain 3 condition types for service and chesses.
    Ex:
    step counter cond.type des.                   from                 to
    1 1 P000 Gross Price        
    1 2 P001 Gross Price        
    25 0 JM00 Water front royalty                 1    
    26 0 ser1 service                                  25    
    27 0 edu1 educationcess                      26
    28 0 edu2 se.edu.cess ;                        26
    29 0 jm01 Port Dues                                1
    30 0 ser1 service                                   29
    31 0 edu1 educationcess                       30
    32 0 edu2 se.edu.cess                           30
    like this you have to built your pricing procedure in a m/08. after that for you want the service tax automatically so for that you have to put the accesses sequence in you service condition types (ser, edu1,edu2).in m/06.
    After that you have to maintain info record for that material and import vendor. in me11 in that in condition tab you have to maintain percentage for ser, edu1, edu2 . the system will  calculate the service charges automatically.
    Thanking you,

Maybe you are looking for