No. Of Pooled Samples in QPV2

Hi Experts,
One of the required scenario for no. of pooled samples is:
If No. of Containers is < 81 , No. of Pooled Samples is 1
If No. of containers is  81 or above ,  No. of Pooled Samples is 2
How to set this in system. I am not able to put any if statement in Formula field in QPV2 (Pooled Samples TAB)
Thanks in Advance
Junaid

Whenever I've had this problem, it was due to my Hard Disk going into "energy saving mode" and needed time to rev up. Thus only the part of the EXS instrument thats loaded in RAM will play. There are two things you can try:
1. Make sure your energy preferences are set so your hard disk NEVER goes to sleep. Note this setting does NOT work for external HD's, so if you have your samples on an external HD move them to an internal drive and see if that fixes your problem.
2. Turn off Virtual memory preference in the options menu of the EXS player. Its my understanding that with this turned off, all samples will be loaded into RAM, and thus your HD will not be a problem.
Hope this helps!

Similar Messages

  • BC4J pooling sample

    Hi, I am trying to get an application module from the Web context (without using data bindings). Searching through this forum I found the following message:
    " An alternative approach that would provide tighter integration with the web container is to use the HttpContainer to acquire a SessionCookie and to then use that SessionCookie to acquire/release an AM. This approach is documented in the BC4J pooling sample that should be available here on OTN. "
    Does anyone knows where I can find that document ?
    Thanks in advance.

    If you download the 9.0.4 JDeveloper release from:
    http://www.oracle.com/technology/software/products/jdev/index.html
    the sample is included in there in the ./BC4J/samples/Pooling directory.

  • Primary and pooled samples

    Hi all,
    I posted a similar question before about the sampling procedure. But the request has been changed a bit. My client takes samples depending on the number of containers, lets call this the primary samples. The lab does not do the analysis on the primary samples, but they create pooled samples. They combine 5 primary samples to 1 pooled sample. They will do the analysis on this pooled sample. But they need labels for all the primary samples.
    An example. They receive 10 boxes, so 10 samples need to be created. The lab will create 2 pooled samples (10 / 5 = 2). So when enter results recording only the two primary samples need to be visible for the inspection lot, not all of the primary samples. How can this be done?
    Thanks for your help.

    Generally the when you create sampling drawing procedure with Primary & pooled samples both then the number of samples are created as per the "Pooled" sample defined.This is what std SAP.
    I don't understand what you mean by this...
    I think i already found the solution. I configured the sample drawing proc as follows:
    - Primary sample acc to formula TRUNC(SQRT(P2)+1)
    - Pooled sample acc to formula TRUNC(P3/5)
    The procedures is dependend on the number of containers.
    Edited by: Maarten_m4 on Aug 17, 2010 2:49 PM

  • How to compile connection pool sample java code

    I recently bought David Knox's "Effective Oracle Database 10g Security by Design", and have been working through his examples with client identifiers and how to leverage database security with anonymous connection pools.
    The database side of things I totally understand and have set up, but I now want to compile/run the java code examples, but don't know what is required to compile this.
    I'm running Oracle 10.2.0.4 (64-bit) Enterprise Edition on a Linux (RHEL 5) PC. Java version is 1.6.0_20. Relevant .bash_profile environment variables are as follows:
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    export CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
    When I try to compile, I get:
    oracle:DB10204$ java FastConnect.java
    Exception in thread "main" java.lang.NoClassDefFoundError: FastConnect/java
    Caused by: java.lang.ClassNotFoundException: FastConnect.java
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: FastConnect.java. Program will exit.
    The java source code of one of the examples is below. Is someone able to point me in the right direction as to how I get this to compile? Do I just have a syntax and/or environment configuration modification to do, or is there more to it than that to get this example working? Any help much appreciated.
    oracle:DB10204$   cat FastConnect.java
    package OSBD;
    import java.sql.*;
    import oracle.jdbc.pool.OracleDataSource;
    public class FastConnect
      public static void main(String[] args)
        long connectTime=0, connectionStart=0, connectionStop=0;
        long connectTime2=0, connectionStart2=0, connectionStop2=0;
        ConnMgr cm = new ConnMgr();
        // time first connection. This connection initializes pool.
        connectionStart = System.currentTimeMillis();
        Connection conn = cm.getConnection("SCOTT");
        connectionStop = System.currentTimeMillis();
        String query = "select ename, job, sal from person_view";
        try {
          // show security by querying from View
          Statement stmt = conn.createStatement();
          ResultSet rset = stmt.executeQuery(query);
          while (rset.next()) {
            System.out.println("Name:   " + rset.getString(1));
            System.out.println("Job:    " + rset.getString(2));
            System.out.println("Salary: " + rset.getString(3));
          stmt.close();
          rset.close();
          // close the connection which resets the database session
          cm.closeConnection(conn);
          // time subsequent connection as different user
          connectionStart2 = System.currentTimeMillis();
          conn = cm.getConnection("KING");
          connectionStop2 = System.currentTimeMillis();
          // ensure database can distinguish this new user
          stmt = conn.createStatement();
          rset = stmt.executeQuery(query);
          while (rset.next()) {
            System.out.println("Name:   " + rset.getString(1));
            System.out.println("Job:    " + rset.getString(2));
            System.out.println("Salary: " + rset.getString(3));
          stmt.close();
          rset.close();
          cm.closeConnection(conn);
        } catch (Exception e)    { System.out.println(e.toString()); }
        // print timing results
        connectTime = (connectionStop - connectionStart);
        System.out.println("Connection time for Pool: " + connectTime + " ms.");
        connectTime2 = (connectionStop2 - connectionStart2);
        System.out.println("Subsequent connection time: " +
                            connectTime2 + " ms.");
    }Code download is at: http://www.mhprofessional.com/getpage.php?c=oraclepress_downloads.php&cat=4222
    I'm looking at Chapter 6.

    stuartu wrote:
    When I try to compile, I get:
    oracle:DB10204$  java FastConnect.java
    Exception in thread "main" java.lang.NoClassDefFoundError: FastConnect/java
    Caused by: java.lang.ClassNotFoundException: FastConnect.java
    I will try to explain what is happening here.
    You are launching java telling it to run a class named 'java' in a package named 'FastConnect'
    and java says it cannot find that class.
    What you intended to do:
    $ # make the directory structure match the package structure
    $ mkdir OSBD
    $ # move the source file in the directory structure so it matches the package structure
    $ mv FastConnect.java OSBD/
    $ # compile OSBD/FastConnect.java to OSBD/FastConnect.class
    $ javac OSBD/FastConnect.java
    $ # launch java using the OSBD/FastConnect class
    $ java -cp . OSBD.FastConnectNote that the package 'OSBD' does not follow the recommended naming conventions
    you might consider changing that to 'osbd'.

  • Sampling procedure-Square root n+1

    Hi All,
    I need to calculate the sample size based on the Containers & Square  root n+1.
    How to configure the system & how to maintain the master data to get the sample size.
    User also insisted only the sample size has to be calculated, but he will enter only one composite result entry
    Regards
    Subbu

    Hi Subbu,
    you can use Physical Sample to control the sample Size.
    You must to define a Sample Drawing Procedure (QPV2) as relevant for Container Number, then assign the formula 'Square Root n1´ ( TRUNC(SQRT(P2)1) ) in the partial sample. In this scenario, I suggest you to configure the "Container number' as a mandatory field during the goods receipt once the system will need this information to calculate the sample. For a single result recording, you can define a pooled sample.
    I hope it can help you.
    Best regards,
    Robson

  • Result recording & display of multiple tests/analysis of single sample

    Hello Friends
    Here is my scenario;
    I receive 500 kgs of material in 5 bags. I want to draw sample of 1 kg from each bag. Thus I will be having 5 samples. I will perform the required tests on each sample. For testing I am consuming @250 gms of material. Out of 5 samples, I had to conduct the retest on 2 samples. I want to do the result recording of these tests/samples. In my understanding there will be 7 result recordings which will include 2 of Retest of 2 samples. I would like to display all the values recorded ( atleast for each samples ). Also, I would like to see the individual values and not the averaged out values the recordings.
    How can I take care of constraints due to pooled sample i.e. it allows only the result recording of pooled sample and not the subsequent samples.
    I would appreciate your detailed guidance on this issue.
    Regards
    mahesh

    Hello Lenin
    Normally, we use Sampling procedure with Fixed Sample as Sampling Type withAttributive inspection non confirming units as valuation mode. Determination Rule as 10 ( Fixed Sample ). Sample drawing Procedure followed is "draw from all containers". Irrespective of our present settings, I would appreciate if you let me know the settings to be made in order to map given scenario.
    Regards
    mahesh

  • Result Recording without release of physical sample

    Hi,
        SAP Gurus,
        I have one query regarding result recording for some lots.
       I have created one sample drawing procedure and assigned to inspection plan.
       In SDP I have maintained primary size factor 1, Fixed number 1, Acc.to smplng scheme-PM, Insp. severity-4.
       In pooled sample  size factor 1, Fixed number 1.
      At header level Consider No. of Containers Tick, Confirmation Required Tick, Used in Task List Tick.
    I have done One GR for raw material and assigned that inspection plan to the created 01 origin 01through QA02.
    One primary and pooled sample is created in CRTD status. I have not release the sample.
    When I go to QE11 for result recording system assigns the physical sample by default and branch me direatly to the result recording screen.
    My query is that, i have acivated confirmation required tick in SDP then system should not accept the sample which is in created status and should not allow me to do result recording. But system is skiping this and allowing me to do Result recording.
    Please let me know what necessary settings i have forgot.
    Thanks in advance,
    Harriesh

    Dear Shyamal,
                   The scenario i mapped is that, I need to release the sample manually. User should not go for RR without sample release.
    It is working fine also. But for few lots it is not asking the sample release. It ir skiping the sample status stage and directly going to RR.
    Please let me know way system is behaveing like this for few lots only.
    Thanks and regards.
    Harriesh.

  • Result Recording and Sample calculation

    Dear Experts,
    I have a concern regarding the sampling designed
    According to the sampling plan in local SOP the samples to be taken for all ZAPI and ZRAW as per below points.
    Withdraw sample from each container for Identification test. Here the sample size will very form material to material.
    Make a pool of sample according to No. of containers /5 for Other tests, like Assay,LOD,Potency,Microbiological tests etc...
    And there is Retention Sample.
    To meet this requirement, I have designed the sample management like this......
    There will be two partial Samples for Sample drawing procedure
    Partial Sample 010 has formula for Primary Samples :- P2.
    Partial Sample 010 has no Pooled Sample
    Partial Sample 010 has Reserved Sample; Fixed No 1;  along with Sample Size.
    Partial Sample 020 has Primary Sample IF P2>=5 THEN P2/5 ELSE P2 to meet the pooling of containers for other test than Identification.
    Partial Sample 020 has Pooled sample 1
    Partial Sample 020 has no Reserved Sample.
    No at the other end In inspection plan we have two operations;
    Operation 0010 ; Identification where all the MICs will be linked with Partial Sample 010 and Sample size for Identification test will be assigned along with Sampling procedure.
    Operation 0020; QC Laboratory where all the MICs will be linked with Partial Sample 020 and Sample size for Chemical and Micro Analysis tests will be assigned along with Sampling procedure.
    For an example for Material X:-
    Sample Size = 2gm, for Identification (ID) is maintained at respective MICs in Inspection plan
    Sample Size = 50gm, for Chemical and Micro Analysis tests  maintained at respective MICs in Inspection plan
    Sample Size = 150gm maintained at SDP for Reserved.
    If we receive a consignment 10 Containers for Material X. Then system will create sample as below.
    10 Primary samples from Partial Sample 010 of SDP each have sample size 2 and result needs to be recorded for each sample. This is very lengthy hence not acceptable to business.
    02 Primary samples from Partial Sample 020 of SDP each have sample size 25 and result not required to be recorded for it.
    01 Pooled samples from Partial Sample 020 of SDP each have sample size 50 and result needs to be recorded for it.
    01 Reserved Sample (There is no issue with this so not elaborating more)
    Total Sample size is 220 (20+50_150)
    {10*2=20 Primary Samples for ID
    2*25=50 Pooled Samples for Chem and Micro
    150 Retain Sample}
    Now the requirement is We don't want to record result for all 10 Primary sample from Partial Sample 010 but want to calculate the sample size as per above quantity.
    Kindly give me some guidance!!!!!!!
    Regards,
    Shyamal

    I think what you'll need to do is create a sampling procedure for each container type you expect to receive. So if you get BUOM KG's  in 55 gal drums, you'll need a sampling procedure for drums. If you get it in a 2000lb super sac, you'll need a sampling procedure for that.  And of course separate inspection plans for the drum material and one for the super sac material since the same characteristic will specify different sampling procedures.
    The sampling procedure will specify a sampling scheme for that container.  I.e. for the super sacs with normal inspection you would specify 0-2000 = 2 g sample.  2001-4000  - 4 g sample.  4001-6000 = 6 g.  etc. etc..
    When the sample size for the ID characteristic is figured out, it will be 10g or 20 g.  Whatever.  It is based on the total lot size.
    The sample drawing procedure will take the sample size of 20 g now, and apply that to the pooled sample.  That will be divided by the primary samples, (P2 = 10) for a set of 10 primary samples of 2 g each.
    A second alternative would be to create the inspection plan in the alternative UOM. Say super sacs.  You receive in 10.  You could create a large sampling scheme for this where a lot size of 1 = 2 g.  2 = 4 g, 3 = 6 g, etc...   While it would be a large sampling scheme, you'd only need one sampling procedure and one sampling scheme.  The inspection plan will see a BUOM of 20,000Kg but convert that to 10 super sacs.  The sampling procedure would see an inspection lot qty of 10 super sacs.  The sampling scheme calcualtes a sample size of 20 for a lot size of 10.  The sample size is applied to the pooled sample and then distributed to the 10 primary samples. 
    This should work for all container types.  If the plan was in drums, 20,000 kgs might calcuate out to 30 drums.  The sampling procedure looks up 30 to find that is 60 and returns a sample size of 60g. That is applied to the pooled sample and divided amoung the primary samples, (P2 = 30), for 2 g per primary sample. 
    FF

  • BC4J Connection Pooling issue

    On a jsp page I am doing the following:
    ApplicationModule returnAppMod = Configuration.createRootApplicationModule(appModName, configName);
    <use some ViewObjects>
    Configuration.releaseRootApplicationModule(p_am,false);
    It seems that everytime i call createRootApplicationModule(String, String);
    A new connection is created in the DB. I set the max pool size in the configuration file to 10. When i hit my page the 11th time i get the follow error.
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.pool.ResourcePoolException, msg=JBO-28102: A request was timed out while waiting for a resource to be returned to the resource pool, InvoiceModuleLocal.
         void oracle.jbo.JboException.<init>(java.lang.Throwable)
              JboException.java:344
         oracle.jbo.ApplicationModule oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(java.lang.String, oracle.jbo.common.ampool.EnvInfoProvider)
              Configuration.java:1144
         oracle.jbo.ApplicationModule oracle.jbo.client.Configuration.createRootApplicationModule(java.lang.String, java.lang.String, oracle.jbo.common.ampool.EnvInfoProvider)
              Configuration.java:1094
         oracle.jbo.ApplicationModule oracle.jbo.client.Configuration.createRootApplicationModule(java.lang.String, java.lang.String)
              Configuration.java:1073
         oracle.jbo.ApplicationModule fsweb.util.AppCon.createAppMod(java.lang.String, java.lang.String)
              AppCon.java:23
         void fsweb.ei.model.EIStandardStatementModel.initModel()
              EIStandardStatementModel.java:582
         void fsweb.ei.model.EIStandardStatementModel.setStandardAcctNum(java.lang.String)
              EIStandardStatementModel.java:171
         void _resources._reports._openbalances._EIStandardStatement._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              EIStandardStatement.jsp:66
         void com.orionserver.http.OrionHttpJspPage.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              OrionHttpJspPage.java:56
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              JspPageTable.java:317
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:465
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:379
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind.server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:797
         void java.lang.Thread.run()
              Thread.java:484
    ## Detail 0 ##
    oracle.jbo.pool.ResourcePoolException: JBO-28102: A request was timed out while waiting for a resource to be returned to the resource pool, InvoiceModuleLocal.
         java.lang.Object oracle.jbo.pool.ResourcePool.allocateResource()
              ResourcePool.java:709
         int oracle.jbo.common.ampool.ApplicationPoolImpl.findAvailableInstance(oracle.jbo.common.ampool.SessionCookie, oracle.jbo.common.ampool.ApplicationPoolImpl$SessionCookieInfo)
              ApplicationPoolImpl.java:669
         oracle.jbo.ApplicationModule oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(oracle.jbo.common.ampool.SessionCookie)
              ApplicationPoolImpl.java:1335
         oracle.jbo.ApplicationModule oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(oracle.jbo.common.ampool.SessionCookie, boolean)
              ApplicationPoolImpl.java:2062
         oracle.jbo.ApplicationModule oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(boolean, long)
              SessionCookieImpl.java:398
         oracle.jbo.ApplicationModule oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(boolean)
              SessionCookieImpl.java:369
         oracle.jbo.ApplicationModule oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule()
              SessionCookieImpl.java:364
         oracle.jbo.ApplicationModule oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(java.lang.String, oracle.jbo.common.ampool.EnvInfoProvider)
              Configuration.java:1135
         oracle.jbo.ApplicationModule oracle.jbo.client.Configuration.createRootApplicationModule(java.lang.String, java.lang.String, oracle.jbo.common.ampool.EnvInfoProvider)
              Configuration.java:1094
         oracle.jbo.ApplicationModule oracle.jbo.client.Configuration.createRootApplicationModule(java.lang.String, java.lang.String)
              Configuration.java:1073
         oracle.jbo.ApplicationModule fsweb.util.AppCon.createAppMod(java.lang.String, java.lang.String)
              AppCon.java:23
         void fsweb.ei.model.EIStandardStatementModel.initModel()
              EIStandardStatementModel.java:582
         void fsweb.ei.model.EIStandardStatementModel.setStandardAcctNum(java.lang.String)
              EIStandardStatementModel.java:171
         void _resources._reports._openbalances._EIStandardStatement._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              EIStandardStatement.jsp:66
         void com.orionserver.http.OrionHttpJspPage.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              OrionHttpJspPage.java:56
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              JspPageTable.java:317
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:465
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:379
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind.server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:797
         void java.lang.Thread.run()
              Thread.java:484It is as if the connections are not getting released backed to the pool and once the max is reached createAppMod times out waiting for a connection.

    Hi,
    Actually your request is timing out waiting on an ApplicationModule to be created in the ApplicationPool. Please verify
    that you are properly releasing the correct ApplicationModule -- the code snippet that you posted above:
    ApplicationModule returnAppMod = Configuration.createRootApplicationModule(appModName, configName);
    <use some ViewObjects>
    Configuration.releaseRootApplicationModule(p_am,false);
    indicates that you have assigned a reference to returnAppMod but then release the ApplicationModule referenced by
    p_am. Is this correct? You could also use the BC4J diagnostic output and/or the pool statistics (see the Pooling sample)
    to determine if ApplicationModule(s) are being release properly.
    Hope this helps.
    JR

  • Make Draw Procedure and Sampling Procedure Quantities Match?

    I need to set up an inspection plan where one item is taken from each container and combined into 1 pooled sample. The items in the containers are in eaches and the number may vary from container to container. Think 5 buckets filled with pebbles. I want to end up with a pooled sample that is a total quantity of 5, total containers to sample is 5 and sample size per container is 1.
    On my inspection plan, my Sampling Procedure is set for a fixed sample size of 1.
    The number of buckets may vary from shipment to shipment, so my Draw Procedure is set to have the number of primary samples be P2. However, when I set the number of pooled samples to 1, I end up with sampling instructions that say to take 0.2 pebbles from each of 5 buckets.
    I can set up the Draw Procedure to only have Primary Samples and my sampling instructions will show 5 primary samples but it will not indicate that they should be taken 1 per container.
    Setting my fixed sample size to 5 solves this particular problem but as my material may arrive in 6 containers next time, it is not a long term solution.
    It seems to me that I need to be able to set my sample size to also vary based on the number of containers. I can't do that using a pebble to bucket conversion, as this is not a constant number. Ideally I would like a Sampling Procedure with a sample size of P2.
    Is there a way to create a Sampling Procedure that varies based on the number of containers received? Or is there another option?
    Thanks,
    Deb

    You can achieve this by using Sampling Determination "300-Sample schema" If require modify Function Module "QDRS_SAMPLING_PLAN_SAMPLE"
    Thanx!!

  • Difference between Sampling Procedure and Sample-drawing procedure

    Friends,
    I am new to QM and started learning QM Module. My doubt is what is the difference between Sampling Procedure and Sample-drawing procedure?
    The reason for my doubt is, we can determine the sample quantity with Sampling procedure itself. then what is the need of sample-drawing procedure?
    Also describe primary, pooled and reserved samples.
    Regards,
    IMIMINT

    Hi,
    Sampling Procedure 
    Definition
    A procedure that contains the rules for determining the sample size for an inspection. The sampling procedure also specifies the type of valuation to use for results recording (attributive, variable, or manual).
    Use
    You assign a sampling procedure to each characteristic in an inspection plan to calculate the sample size.
    Sample-Drawing Procedure 
    Definition
    A master data object in which you plan the drawing of physical samples. In the sample-drawing procedure, you specify:
    Which categories of physical samples must be drawn
    How many physical samples must drawn
    The size of each physical sample
    Whether the drawing of physical samples must be confirmed
    Use
    The system uses the information in the sample-drawing procedure together with the information in the inspection plan to calculate the physical sample sizes, and to create physical-sample records when an inspection lot is created.
    Primary Sample : It is the sample drawn from the lot directly.
    Pooled Sample : It is the sample whcih is combination of 2 or more primary samples.i.e. primary sample sfrom say 3 differetn drums is mixed and tested.
    Reserved Sample :sample which is preserved for the testing in future.
    or in other words
    Primary samples (1st stage)
    Physical samples drawn directly from a material or batch that will be inspected or used to create pooled samples.
    Pooled samples (2nd stage)
    Physical samples to be created by mixing the contents of two or more primary samples from the same material or batch.
    Reserve samples
    Primary physical samples drawn from a material or batch reserved for future inspection.
    Vishal
    Edited by: VISHAL JONNALWAR on Feb 4, 2010 6:43 AM

  • Sampling Drawing Procedure

    Hi Experts,
    Can anybody please explain me in short,
    Primary sample
    Pooled sample
    Reserve sample
    Edited by: Raja S on Jan 29, 2009 7:23 AM

    Dear Raja
    Primary samples
    Physical samples drawn directly from a material or batch that will be inspected or used to create pooled samples.
    pooled samples
    Physical samples to be created by mixing the contents of two or more primary samples from the same material or batch.
    Reserved Samples
    Primary physical samples drawn from a material or batch reserved for future inspection.
    In each sample-drawing item, you must specify how many primary, pooled, and reserve samples should be created. For primary and pooled samples, you can:
    Specify a fixed number of physical samples.
    Allow the system to determine the number of physical samples automatically on the basis of a sampling scheme.
    You can specify only a fixed number of reserve samples.
    For primary and pooled samples, you can also enter a factor that instructs the system to create a greater quantity of physical samples than you need for the current inspection. For example, if you specify a factor of "3," the system creates sufficient quantities of physical samples for you to carry out three inspections.
    Hope this helps
    Regards
    gajesh

  • Quality management( difference between sampling procedure & sample drawing)

    Hi Experts,
    I am very new to quality management module & working in united states. i am trying to find difference between sampling procedure & sample drawing procedure.
    I see that sample drawing procedure is assigned to Inspection Plan & sampling procedure is assigned to characteristics, But i don't know the difference between these two, Please help me.
    Regards,
    Seshu

    Hi,
    SAMPLING PROCEDURE :
    A procedure that contains the rules for determining the sample size for an inspection. The sampling procedure also specifies the type of valuation to use for results recording (attributive, variable, or manual).
    Use
    You assign a sampling procedure to each characteristic in an inspection plan to calculate the sample size.
    Integration
    In a sampling procedure, you must activate the function for inspection points based on a sample-drawing procedure if you assigned a sampling procedure and a sample-drawing procedure to an inspection plan at the characteristic and header levels respectively.
    SAMPLE DRAWING PROCEDURE:
    Definition
    A master data object in which you plan the drawing of physical samples. In the sample-drawing procedure, you specify:
    Which categories of physical samples must be drawn
    How many physical samples must drawn
    The size of each physical sample
    Whether the drawing of physical samples must be confirmed
    Use
    The system uses the information in the sample-drawing procedure together with the information in the inspection plan to calculate the physical sample sizes, and to create physical-sample records when an inspection lot is created.
    Structure
    A sample-drawing procedure contains the following types of information:
    Header data
    The sample drawing header contains the following information fields and control indicators:
    Key that identifies the sample-drawing procedure
    Short text description for the sample-drawing procedure
    Authorization group that limits the access to the sample-drawing procedure
    Text for matchcode searches
    Long text indicator
    Indicator for calculating the number of physical samples on the basis of number of containers in the inspection lot (as opposed to the base unit of measure)
    Confirmation indicator to activate or deactivate the confirmation requirement
    Lock indicator to prevent the sample-drawing procedure from being used
    Usage indicator that shows whether the sample-drawing procedure is currently used in an inspection plan
    Sample-drawing item(s)
    A sample-drawing item contains specific instructions for creating physical samples with respect to a specific inspection lot container type and specific partial-sample numbers in the inspection plan. In a sample-drawing item, you can also specify:
    Which categories of physical samples you want to create (primary samples, pooled samples, and reserve samples)
    The physical sample container you use to draw each category of physical sample
    A factor to increase the quantity of physical samples to be created (for example, if you need to carry out more than one inspection)
    The number of physical samples to be created (fixed number or variable number based on a sampling scheme)
    Integration
    The sample-drawing procedure interacts with the following planning objects:
    Inspection plan
    You assign a sample-drawing procedure to an inspection plan to activate the functions for sample management.
    Sampling scheme (optional)
    If you want the system to determine the number of physical samples automatically on the basis of a sampling scheme, you can reference sampling schemes in a sample-drawing procedure.
    Hope it helps...
    Regards,
    Priyanka.P
    AWARD IF HELPFULL

  • How to achieve BC4J stateful management in a web app?

    I have a web application developed with JSP, Struts as the view / controller layer and BC4J as the model layer.
    I am not using the complete ADF framework. Just plain struts, JSP and BC4J.
    What I want to do is to have one struts action to set a
    query condition on a view object and execute the query.
    Then i release the application module. In another struts action I want to get the same application module with the
    viewobject query set.
    Pseudo for Action 1:
    try{
    Configuration.createRootApplicationModule("test.bc.AppModule", "AppModuleLocal");
    .. get view object
    .. build and perform the query on the view object.
    finally
    Configuration.releaseRootApplicationModule(am, true);
    pseudo for action2:
    try{
    Configuration.createRootApplicationModule("test.bc.AppModule", "AppModuleLocal");
    .. get view object with the query stored
    .. use the results.
    finally
    Configuration.releaseRootApplicationModule(am, true);
    I cannot make this work. If I put the am from action1 in the session object and retrieves it from the session in action2 it works. But I need to release the appmodule in action 1 since I have no guarantees that the user will run action2..
    I have read the paper of Steve Muench "Understanding Application Module Pooling Concepts and: Configuration Parameters"
    This document says:
    "ADF application modules provides the ability to snapshot and reactivate their pending state to XML (stored on the file system or in the database), and the ADF application module pooling mechanism leverages this capability to deliver a "managed state" option to web application developers that simplifies building applications like the example just given.
    As a performance optimization, when an instance of an AM is returned to the pool in "managed state" mode, the pool keeps track that the AM is referenced by that particular session. The AM instance is still in the pool and available for use, but it would prefer to be used by the same session that was using it last time because maintaining this so-called "session affinity" improves performance.
    I have set my bc4j configurations to
    releasmode = STATEFUL
    jbo.passivationstore = databse
    jbo.server.internal_connection= my jdbc connection
    But the appmodule returned in action2 is not the same as the one returned in action1.
    I am using jdev 9052 and deploying to oc4j 904 standalone.
    I guess I have to use som other commands for retrieving/ releasing the AM or set some properties on it, but I have not found any documentation for this.
    Any tips on how to achieve this bc4j session state to work in a plain struts , bc4j environment is appreciated.

    The Configuration.createRootApplicationModule() and companion releaseRootApplicationModule() API's are not for use in web applications. They are designed for use by simple command-line console programs.
    Using the BC4J application module pool programmatically in a web environment should be done like the JDeveloper 9.0.3/9.0.4 "Pooling" sample illustrates.
    In the JDev 9.0.3 or 9.0.4 version, see the sample project under ./BC4J/samples/Pooling
    Hope this helps.

  • BC4J ApplicationModule - best practice in Stateful web application?

    When writing a stateful web application that uses BC4J framework as the model, what is considered best practice in using the Application Module. Is it okay to store an AM instance in a HttpSession, or should we opt for the features explained in the BC4J Pooling samples, which uses the SessionCookie interface?
    Tips/Tricks/Pitfalls information welcome
    Thx,

    When writing a stateful web application that uses BC4J framework as the model, what is considered best practice in
    using the Application Module. Is it okay to store an AM instance in a HttpSession, or should we opt for the features
    explained in the BC4J Pooling samples, which uses the SessionCookie interface? Best practice is to store the SessionCookie (an ApplicationModule handle) as demonstrated in the pooling sample.
    This will allow many advantages including scalable state management support, timeout support, and
    failover / clustering support.
    Caching the ApplicationModule directly can be dangerous because:
    1. The AM is not serializable which could result in serialization exceptions if the servlet container were distributable.
    2. The AM does not responsd to timeout which could result in memory leaks if the AM is not explicitly returned to the
    pool at the end of each request.
    3. For stateful applications the memory consumed by each AM could be significant. Even if the AM were correctly
    released to the pool upon session timeout it would still have consumed that memory up to that point. Using the
    SessionCookie along with state managed release allows for scalable state management.
    Tips/Tricks/Pitfalls information welcome
    Thx,

Maybe you are looking for