QM Defects tables

Hello,
I'm working a report that needs to list all defects for the characteristics of an inspection lot.  I can see those defects by entering the t-code QF03, then type the inspection lot (30000000060), the screen shows a list like the followings.  But I can't find the table that stores those defects.  I have a list of QM Tables but doesn't see the defects in them.  Could you please shed some lights on it?  Thanks.
30000000060
  0800  Offline
      9002  02 Vin Tag
            VT   Vin Tag Defect
      9004  04 Caulking
            20   Voids, Gaps or Holes
            21   Smeared Caulking
            22   Not Smooth and Uniform In Appearance

Hi,
Check the following tables..
QALS
QALT
OR
Check the table names starts with QA*
Thanks,
Naren

Similar Messages

  • Need an help to maintain catalog structure for objects parts,defects,causes,activities and coding in one z table

    Hi Experts,
    I am trying to create a z table with the same fields repeating for the development in PM module.
    I want to have Catalog structure (Catalog,Code group,Code) for objects parts,defects,causes,activities and coding in one z table.Firstly I have created these fields by selecting it from QPCD table.Then as I want the same functionality as it is in IW21 (PM Notification) I created the fields by referring to VIQMFE, VIQMUR , VIQMEL and VIQMMA as in IW21.
    1) However, I am not able to maintain the values.Once I select catalog structure for object parts and then when I am selecting it for defects the search help is still taking the object parts value in it and not allowing me to get the relevant data and also to maintain the data.
    I feel the problem is of check table as all the fields are referring  to the same check tables TQ15 , QPGR and QPCD but I am not getting the exact solution.
    Please find attach the screen shot of the table I have created and also the error I am getting while maintaining the values.
    Please do the needful.
    With Regards,
    Sonali Deshmukh

    Hi All...
    I got the solution.
    Thank You.
    With Regards,
    Sonali Deshmukh

  • Table for defect or damage code deletion field.

    Dear All,
    We have developed Z-Report in quality for recording defect.
    I used viqmfe table for defect recording and field is fecod-damage code.
    But my problem is after deleting defect in qa32,in z-report the defect is remain as it is.
    I have already search defect deletion field, still ihave not got this field.
    Pls suggest.
    Thanks
    Shabbir

    Hi ,
    Please checQMFE, QMSM,QMAA, QMIH & for all deletion indication entries
    you need to get the corresponding flag for fiedl like  KZLOESCH .
    Ramesh

  • Delete 'Defective sessions' to make Table APQD free

    Hi All,
    We checked and found that We have one table APQD in our ECC 6.0 system which is taking 39.54 GB space.
    We found OSS Note 36781 - Table APQD is very large which says to run report RSBDCREO.
    We ran report RSBDCREO and it only deleted 10 entries out of 9.771.379 entries then we checked Note 18307 - Batch input
    logs and reorganization which says report RSBDCREO deletes processed sessions (that is, sessions that have been processed successfully) and their logs from the system.
    Only these sessions are deleted, but no 'Sessions still to be processed' or 'Defective sessions' and so on.
    We have lot of defective sessions in our system and we need to delete them.
    Please suggest the way to delete 'Defective sessions' also from table APQD.
    Regads,
    Shivam Mittal

    Hello Shivam,
    Please use program RSBDCTL6 in order to clean all Batch Inputs.
    After first clean, you can replace RSBDCREO or leave as second step in your job.
    SAP Note 970025 - Batch input RSBDCTL6 enhancement
    Regards,
    Jairo Pedroza

  • Tables for Defect type and its description while defect recording for a MIC

    Dear Experts,
    Kindly suggest the tables name  in  system by which we can get Defect type and its description that we have used while  performing defect recording for a MIC in system at the time of result reording for an inspection lot.
    Thanks in advance for your inputs ...
    Best regards ,
    Nitishj

    hii,
    Check
    QPAC - Inspection catalog codes for selected sets
    QPAM - Inspection catalog selected sets
    QPMK-CODEQUAL- Defect code grp for rejection at MIC level
    Link above table field name with QAVE for UD code & QAMR for Results recording
    Edited by: Lokesh K on Sep 29, 2010 10:43 AM
    Edited by: Lokesh K on Sep 29, 2010 10:45 AM

  • Tables for Damage Codes, Cause Code & Defects

    Dear Masters,
    I require the tables that store the damage codes, cause codes and defects assigned to a particular maintenance notification.
    I require this in the form of printing a Maintenance order.
    This is a kind of urgent. Please do help. Thanks in advance.
    Chin2.

    Dear Friends,
    Thanks for your quick reply, I had my problem solved with your replies
    Thanks once again
    Chin2

  • Defect codes table

    Hi All
    Kindly help me in identifying Table where transactional data of defects get stored.
    Thanks
    Prahlad

    Hi
    Catalog QPCD Inspection catalog codes 
    Catalog QPCT Code texts 
    Catalog QPGR Inspection catalog code groups 
    Catalog QPGT Code group texts 
    Master Data QPAC Inspection catalog codes for selected sets 
    Master Data QPAM Inspection catalog selected sets 
    Regards
    Sujit

  • Jdev 11g defect: Error creating partition table diagram

    I'm running Jdev 11.1.1.0.2 on JDK 1.6.0_06
    When attempting to drag partitioned table from DB connection onto a DB Diagram I'm getting the following exception. Anybody got similar experience?
    Also every time I create new diagram or off-line DB JDev starts spinning at 40 - 50 % CPU and gets stuck, so I have to "kill" the process and restart it. After which it works fine. Could it be some JDK compatibility issue?
    May 13, 2009 4:09:54 PM oracle.ide.db.transfer
    SEVERE: Prepare failed
    java.lang.NullPointerException
         at oracle.javatools.db.ora.OracleTableBuilder.getOracleTablePartitions(OracleTableBuilder.java:584)
         at oracle.javatools.db.ora.OracleTableBuilder.buildNonBaseProperties(OracleTableBuilder.java:406)
         at oracle.javatools.db.ora.OracleTableBuilder.fillInObject(OracleTableBuilder.java:76)
         at oracle.javatools.db.AbstractDBObjectBuilder.buildObject(AbstractDBObjectBuilder.java:36)
         at oracle.javatools.db.dictionary.DictionaryDBObjectBuilder.buildObject(DictionaryDBObjectBuilder.java:55)
         at oracle.javatools.db.AbstractSchemaObject.checkInitEx(AbstractSchemaObject.java:229)
         at oracle.javatools.db.AbstractSchemaObject.checkInit(AbstractSchemaObject.java:144)
         at oracle.javatools.db.AbstractSchemaObject.checkInit(AbstractSchemaObject.java:267)
         at oracle.javatools.db.AbstractSchemaObject.copyToImpl(AbstractSchemaObject.java:64)
         at oracle.javatools.db.Table.copyTo(Table.java:81)
         at oracle.javatools.db.AbstractDBObject.copyTo(AbstractDBObject.java:90)
         at oracle.jdevimpl.offlinedb.transfer.OffToOffPolicy.copyForTransfer(OffToOffPolicy.java:192)
         at oracle.jdevimpl.offlinedb.transfer.OnToOffPolicy.copyForTransfer(OnToOffPolicy.java:134)
         at oracle.ide.db.transfer.TransferManager.prepare(TransferManager.java:158)
         at oracle.ide.db.transfer.TransferManager.prepareAndTransfer(TransferManager.java:418)
         at oracle.ideimpl.db.transfer.TransferRunnable.run(TransferRunnable.java:79)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:643)
         at java.lang.Thread.run(Thread.java:619)

    Hi nfk,
    Are the tables in the question reference-partitioned?
    I am able to reproduce the exception when copying to project the online reference partitioned tables to offline , and I have logged a bug for it.
    Please give the details of the tables like partition type if your scenario is different.
    As for the other issue , I have not seen any performance issues with DB diagram ..I have tried on jdk1.6.0_06 and jdk160_11.if it is reproducible, please add your machine configuration.
    Many Thanks,
    Geetha
    Edited by: user647112 on May 15, 2009 5:19 AM

  • DEFECT: Sql Server table displays wrong primary key columns.

    This is what Sql Developer shows on the Keys tab of a table display pointing to a table in Sql Server 2000:
    FK_ConsolidationAccount_AccountType     Account_Id     1     FOREIGN KEY
    FK_ConsolidationAccount_AccountType      AccountType_Id     1     FOREIGN KEY
    FK_ConsolidationAccount_AccountType      ParentAccount_Id     1     FOREIGN KEY
    FK_ConsolidationAccount_ConsolidationAccount     Account_Id     1     FOREIGN KEY
    FK_ConsolidationAccount_ConsolidationAccount     AccountType_Id     1     FOREIGN KEY
    FK_ConsolidationAccount_ConsolidationAccount     ParentAccount_Id     1     FOREIGN KEY
    PK_ConsolidationAccount     Account_Id     1     PRIMARY KEY
    PK_ConsolidationAccount     AccountType_Id     1     PRIMARY KEY
    PK_ConsolidationAccount     ParentAccount_Id     1     PRIMARY KEY
    This is the correct information for that table:
    FK_ConsolidationAccount_AccountType      AccountType_Id     1     FOREIGN KEY
    FK_ConsolidationAccount_ConsolidationAccount     ParentAccount_Id     1     FOREIGN KEY
    PK_ConsolidationAccount     Account_Id     1     PRIMARY KEY

    Take a look to the action:
    ORA-02437: cannot validate (string.string) - primary key violated
    Cause: attempted to validate a primary key with duplicate values or null values.
    Action: remove the duplicates and null values before enabling a primary key.
    Nicolas.

  • System unable to read table in Adhoc Query

    Hi Experts,
    I am trying to extract a report based on Infotype 0022 through Adhoc query. Even after maintaining data for IT0022 for a few employees the system is unable to read the educational details of those employees.
    I am unable to trace the defect . can anybody please tell me what could be the reason. I have checked the table PA0022, there the data is been stored.
    Thanks & Regards,
    Smitha

    Hi paul and experts
    actuall im reading data from 0022 infotype .  im using  macro
    rp_provide_from_last p0022 '11' pn-begda pn-endda.
    no data found for this.
    but in pa30 for that particular employee data is there.
    please help me out of this.
    thanks a lot

  • Appalled by the lack of customer service - NEW PHONE is DEFECTIVE

    I was leaving for California at the end of July and needed a battery for my Galaxy Note 2. There were none to be found. Verizon agreed to allow me early upgrade to the Galaxy Note 3. After daily phone conversations with customer service, I finally got my phone 4 days after it was to be shipped next day air. I had to pay $75 California tax and a $15 next day fee. I live in Massachusetts and although we are known as "Taxachusetts" - it would not have been that much if sent to my home. Needless to say, I get the phone and it is unable to hold a charge (not being used) for more than 8 hours. I called customer service at least 10 times for a matter of at least 8 hours and have no resolution. I cannot get a new phone because I am beyond the 2 week deadline - "Really?" at that point I had the phone for 3 1/2 weeks. I have a phone bill sitting on my table for $418.00 (to include equipment) - I will not pay for this phone until they send me a new one. I do not think that is unreasonable, yet, each of the 10 customer service and supervisors I spoke with told me that is not possible - no one could do that for me...Look, all I want is a phone that works and VERIZON WILL NOT ASSIST ME WITH THIS SITUATION!!! I have been a customer for a long time and am absolutely appalled by the lack of customer service!!! I am asking those on here for help.  What carrier should I move to?  Evidently Verizon does not need my service - and I am happy to share with my "Friends and Family" what a deceptive company this is.  So what do you all suggest?

     It's as my original messages states.  After taking the iPhone5 to a verizon store and being told is was a known defect with the screen, we sent the phone back and received a refurbished phone.  After weeks, we were sent an email with a picture imbedded that would not display.  It stated the phone had internal damage.  We certainly would not have returned the phone had we not been instructed to do so by Verizon or if it was damaged.  We requested to send the refurbished IPhone back - we would have rather paid for a brand new phone than $300 for a refurbished one.  We were told we could not.   Beyond this - the support was unreal.  The first person we spoke stated there was zero record of our original call to support to return the phone although our detailed calling bill showed a 35 min call.  Three calls later and no one was able to show us the damange, prove it was our phone, etc.  I'm not convinced this isnt some sham to get more money to be honest.  We've been with you for 10 years.  I do not want to pay for a refurbished phone especially when a verizon tech instructed us to send the original back due to a defect. 
          From: Verizon Wireless Customer Support <[email protected]>
    To: flash sam <[email protected]>
    Sent: Tuesday, October 28, 2014 4:16 PM
    Subject:  - Appalled by the lack of customer service - NEW PHONE is DEFECTIVE
    #yiv7047612359 img
    |  
    |
      | 
    A message from the Verizon Wireless Community
      |
    |   |
    Appalled by the lack of customer service - NEW PHONE is DEFECTIVE
    created by Verizon Wireless Customer Support in Verizon Wireless Services - View the full discussion                  There's no need to consider canceling service with us flashsam. This is certainly not the wireless experience we want you to have! Let's take a look and see what options are available and keep you as a happy wireless customer. If you can send us a private message then we can look into this.
    Thank you…
    ArnettH_VZW
    Follow us on Twitter @VZWSupport    Reply to this message by replying to this email -or- go to the message on Verizon Wireless Community Start a new discussion in Verizon Wireless Services by email or at Verizon Wireless Community


    © 2014 Verizon Wireless
    Verizon Wireless
    One Verizon Way
    Mail Code: 180WVB
    Basking Ridge, NJ 07920
    Not interested in these emails anymore, or want to change how often they come? Update your email preferences by visiting https://community.verizonwireless.com/user-preferences!input.jspa.
      |
    We respect your privacy. Please review our privacy policy for more information
    about click activity with Verizon Wireless and links included in this email.
      |

    |

  • How can I create my own tag name while creating a partition table.

    I have X4500 running Solaris 10. I have formatted a disk and created partition table as given below.
    Specify disk (enter its number): 0
    selecting c0t0d0
    [disk formatted]
    /dev/dsk/c0t0d0s0 is part of active ZFS pool zpool1. Please see zpool(1M).
    FORMAT MENU:
    disk - select a disk
    type - select (define) a disk type
    partition - select (define) a partition table
    current - describe the current disk
    format - format and analyze the disk
    fdisk - run the fdisk program
    repair - repair a defective sector
    label - write label to the disk
    analyze - surface analysis
    defect - defect list management
    backup - search for backup labels
    verify - read and display labels
    inquiry - show vendor, product and revision
    volname - set 8-character volume name
    !<cmd> - execute <cmd>, then return
    quit
    format> partition
    PARTITION MENU:
    0 - change `0' partition
    1 - change `1' partition
    2 - change `2' partition
    3 - change `3' partition
    4 - change `4' partition
    5 - change `5' partition
    6 - change `6' partition
    select - select a predefined table
    modify - modify a predefined partition table
    name - name the current table
    print - display the current table
    label - write partition map and label to the disk
    !<cmd> - execute <cmd>, then return
    quit
    partition> print
    Current partition table (original):
    Total disk sectors available: 1953508749 + 16384 (reserved sectors)
    Part Tag Flag First Sector Size Last Sector
    0 usr wm 34 4.00GB 8388641
    1 usr wm 8388642 2.00GB 12582945
    2 usr wm 12582946 200.00GB 432013345
    3 usr wm 432013346 175.00GB 799014945
    4 usr wm 1166180386 375.43GB 1953508748
    5 usr wm 799014946 175.00GB 1166016545
    6 usr wm 1166016546 80.00MB 1166180385
    8 reserved wm 1953508749 8.00MB 1953525132
    partition>
    I am unable to specify my own tag name. How can I change the tag name to one of my interest.
    I need to create 3 partitions as told below
    partitions:
    /earth
    /mars
    /work
    /earth and /work should be roughly equal in size, /mars should be twice the size of the others, if that is possible. If not 3 partitions of equal size will do.
    Please, help me .
    Thank you.

    Exactly 1TB? Slightly under/slightly over?
    Traditional Solaris disk labels are in VTOC format, but this format cannot describe disks larger than 1TB. So EFI labels must be used on disks larger than 1TB. Setup is slightly different.
    Are these physical disks or LUNs from a SAN array? If they are array LUNS, it is often the case that they don't have a Sun label of any type. So...
    #1 Apply a Solaris label
    If the LUNS don't have a label (when selected in 'format', it gives a warning that no label is present and offers to apply a label immediately). When run non-interactively, format assumes "yes" for any questions. So all you'd have to do is select every disk to have it apply labels to any unlabled disk. Run 'format' once and find the highest number (maybe it's 50 for you). Create a text file that looks like this:
    disk 1
    disk 2
    disk 3
    disk 50Then feed that to format like this:
    # format -f /tmp/disklist or whatever you've named the file.
    #2 Apply the partition layout to all disks you want.
    You asked if you should do the same procedure, but I don't see that you've actually done anything above other than print out the existing layout. Take one of your 48 drives and partition it the way you want manually (set the slices to the sizes that you want). Then you can copy the layout of that disk to others. You only want to do this between disks/LUNs of the same size. As an example, if you've explicitly partitioned c1t0d0 and you want to apply this to c1t1d0, do this:
    # prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2Repeat for all of your other disks.
    Darren

  • Bad query plan for self-referencing CTE view query and variable in WHERE clause. Is there way out or this is SQL Server defect?

    Please help. Thank you for your time and expertise.
    Prerequisites: sql query needs to be a view. Real view is more than recursion. It computes location path,  is used in JOINs and returns this path.
    Problem: no matter what I tried, sql server does not produce 'index seek' when using variable but does with literal.
    See full reproduction code below.
    I expect that query SELECT lcCode FROM dbo.vwLocationCodes l WHERE l.lcID = @lcID will seek UNIQUE index but it does not.
    I tried these:
    1. Changing UX and/or PK to be CLUSTERED.
    2. query OPTION(RECOMPILE)
    3. FORCESEEK on view
    4. SQL Server 2012/2014
    5. Wrap it into function and CROSS APPLY. On large outer number of rows this just dies, no solution
    but to no avail. This smells like a bug in SQL Server. I am seeking your confirmation.
    I am thinking it is a bug as variable value is high-cardinality, 1, and query is against unique key. This must produce single seek, depending if clustered or nonclustred index is unique
    Thanks
    Vladimir
    use tempdb
    BEGIN TRAN
    -- setup definition
    CREATE TABLE dbo.LocationHierarchy(
    lcID int NOT NULL ,
    lcHID hierarchyid NOT NULL,
    lcCode nvarchar(25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    lcHIDParent AS lcHID.GetAncestor(1) PERSISTED,
    CONSTRAINT PK_LocationHierarchy_lcID PRIMARY KEY NONCLUSTERED (lcID ASC),
    CONSTRAINT UX_LocationHierarchy_pltID_lcHID UNIQUE CLUSTERED (lcHID ASC)
    -- add some data
    INSERT INTO dbo.LocationHierarchy
    VALUES
    (1, '/', 'A')
    ,(2, '/1/', 'B')
    ,(3, '/1/1/', 'C')
    ,(4, '/1/1/1/', 'D')
    --DROP VIEW dbo.vwLocationCodes
    GO
    CREATE VIEW dbo.vwLocationCodes
    AS
    WITH ru AS
    SELECT
    lh.lcID
    ,lh.lcCode
    ,lh.lcHID
    ,CAST('/' + lh.lcCode + '/' as varchar(8000)) as LocationPath
    -- to support recursion
    ,lh.lcHIDParent
    FROM dbo.LocationHierarchy lh
    UNION ALL
    SELECT
    ru.lcID
    ,ru.lcCode
    ,ru.lcHID
    ,CAST('/' + lh.lcCode + ru.LocationPath as varchar(8000)) as LocationPath
    ,lh.lcHIDParent
    FROM dbo.LocationHierarchy lh
    JOIN ru ON ru.lcHIDParent = lh.lcHID
    SELECT
    lh.lcID
    ,lh.lcCode
    ,lh.LocationPath
    ,lh.lcHID
    FROM ru lh
    WHERE lh.lcHIDParent IS NULL
    GO
    -- get data via view
    SELECT
    CONCAT(SPACE(l.lcHID.GetLevel() * 4), lcCode) as LocationIndented
    FROM dbo.vwLocationCodes l
    ORDER BY lcHID
    GO
    SET SHOWPLAN_XML ON
    GO
    DECLARE @lcID int = 2
    -- I believe this produces bad plan and is defect in SQL Server optimizer.
    -- variable value cardinality is 1 and SQL Server should know that. Optiomal plan is to do index seek with key lookup.
    -- This does not happen.
    SELECT lcCode FROM dbo.vwLocationCodes l WHERE l.lcID = @lcID -- bad plan
    -- this is a plan I expect.
    SELECT lcCode FROM dbo.vwLocationCodes l WHERE l.lcID = 2 -- good plan
    -- I reviewed these but I need a view here, can't be SP
    -- http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/05/17/non-recursive-common-table-expressions-performance-sucks-1-cte-self-join-cte-sub-query-inline-expansion.aspx
    -- http://social.msdn.microsoft.com/Forums/sqlserver/en-US/22d2d580-0ff8-4a9b-b0d0-e6a8345062df/issue-with-select-using-a-recursive-cte-and-parameterizing-the-query?forum=transactsql
    GO
    SET SHOWPLAN_XML OFF
    GO
    ROLLBACK
    Vladimir Moldovanenko

    Here is more... note that I am creating table Items and these can be in Locations.
    I am trying LEFT JOIN and OUTER APLLY to 'bend' query into NESTED LOOP and SEEK. There has to be nested loop, 2 rows against 4. But SQL Server fails to generate optimal plan with SEEK. Even RECOMPILE does not help
    use tempdb
    BEGIN TRAN
    -- setup definition
    CREATE TABLE dbo.LocationHierarchy(
    lcID int NOT NULL ,
    lcHID hierarchyid NOT NULL,
    lcCode nvarchar(25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    lcHIDParent AS lcHID.GetAncestor(1) PERSISTED,
    CONSTRAINT PK_LocationHierarchy_lcID PRIMARY KEY NONCLUSTERED (lcID ASC),
    CONSTRAINT UX_LocationHierarchy_pltID_lcHID UNIQUE CLUSTERED (lcHID ASC)
    -- add some data
    INSERT INTO dbo.LocationHierarchy
    VALUES
    (1, '/', 'A')
    ,(2, '/1/', 'B')
    ,(3, '/1/1/', 'C')
    ,(4, '/1/1/1/', 'D')
    --DROP VIEW dbo.vwLocationCodes
    GO
    --DECLARE @Count int = 10;
    --WITH L0 AS (SELECT N FROM (VALUES(1),(1),(1),(1),(1),(1),(1),(1),(1),(1)) N (N))-- 10 rows
    --,L1 AS (SELECT n1.N FROM L0 n1 CROSS JOIN L0 n2) -- 100 rows
    --,L2 AS (SELECT n1.N FROM L1 n1 CROSS JOIN L1 n2) -- 10,000 rows
    --,L3 AS (SELECT n1.N FROM L2 n1 CROSS JOIN L2 n2) -- 100,000,000 rows
    --,x AS
    -- SELECT TOP (ISNULL(@Count, 0))
    -- ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) as Number
    -- FROM L3 n1
    --SELECT Number as itmID, NTILE(4)OVER(ORDER BY Number) as lcID
    --INTO dbo.Items
    --FROM x
    ----ORDER BY n1.N
    --ALTER TABLE dbo.Items ALTER COLUMN itmID INT NOT NULL
    --ALTER TABLE dbo.Items ADD CONSTRAINT PK PRIMARY KEY CLUSTERED (itmID)
    CREATE TABLE dbo.Items (itmID int NOT NULL PRIMARY KEY, lcID int NOT NULL)
    INSERT INTO dbo.items
    VALUES(1, 1)
    ,(2, 3)
    GO
    CREATE VIEW dbo.vwLocationCodes
    AS
    WITH ru AS
    SELECT
    lh.lcID
    ,lh.lcCode
    ,lh.lcHID
    ,CAST('/' + lh.lcCode + '/' as varchar(8000)) as LocationPath
    -- to support recursion
    ,lh.lcHIDParent
    FROM dbo.LocationHierarchy lh
    UNION ALL
    SELECT
    ru.lcID
    ,ru.lcCode
    ,ru.lcHID
    ,CAST('/' + lh.lcCode + ru.LocationPath as varchar(8000)) as LocationPath
    ,lh.lcHIDParent
    FROM dbo.LocationHierarchy lh
    JOIN ru ON ru.lcHIDParent = lh.lcHID
    SELECT
    lh.lcID
    ,lh.lcCode
    ,lh.LocationPath
    ,lh.lcHID
    FROM ru lh
    WHERE lh.lcHIDParent IS NULL
    GO
    -- get data via view
    SELECT
    CONCAT(SPACE(l.lcHID.GetLevel() * 4), lcCode) as LocationIndented
    FROM dbo.vwLocationCodes l
    ORDER BY lcHID
    GO
    --SET SHOWPLAN_XML ON
    GO
    DECLARE @lcID int = 2
    -- I believe this produces bad plan and is defect in SQL Server optimizer.
    -- variable value cardinality is 1 and SQL Server should know that. Optiomal plan is to do index seek with key lookup.
    -- This does not happen.
    SELECT lcCode FROM dbo.vwLocationCodes l WHERE l.lcID = @lcID-- OPTION(RECOMPILE) -- bad plan
    -- this is a plan I expect.
    SELECT lcCode FROM dbo.vwLocationCodes l WHERE l.lcID = 2 -- good plan
    SELECT *
    FROM dbo.Items itm
    LEFT JOIN dbo.vwLocationCodes l ON l.lcID = itm.lcID
    OPTION(RECOMPILE)
    SELECT *
    FROM dbo.Items itm
    OUTER APPLY
    SELECT *
    FROM dbo.vwLocationCodes l
    WHERE l.lcID = itm.lcID
    ) l
    -- I reviewed these but I need a view here, can't be SP
    -- http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/05/17/non-recursive-common-table-expressions-performance-sucks-1-cte-self-join-cte-sub-query-inline-expansion.aspx
    -- http://social.msdn.microsoft.com/Forums/sqlserver/en-US/22d2d580-0ff8-4a9b-b0d0-e6a8345062df/issue-with-select-using-a-recursive-cte-and-parameterizing-the-query?forum=transactsql
    GO
    --SET SHOWPLAN_XML OFF
    GO
    ROLLBACK
    Vladimir Moldovanenko

  • Defect notification based on the operation

    Hi,
    We have task list operations and inspection characteristics attached to different operation. We are creating the inspection lot from the PM order release which has got task lists attached. We are doing the result recording through QE51N and recording the results as well as defects.
    We want one defect notification to be for all the defects recorded for the inspection characteristics of one operation. If defects are recorded for the inspection characteristics attached to the second operation, system should create second (another) notification. Please hep.
    BR
    Manoj

    Eduardo, thanks for your response!
    After spending a few more hours wrestling with the bus, I came up with a solution! :)
    So, I implemented dynamic routing as described here: http://edocs.bea.com/alsb/docs25/userguide/modelingmessageflow.html#wp1081507
    I used the following XQuery expression to extract operation name from the message: fn:local-name($body/*)
    Here is the expression for extracting routing address from the routing table:
    <ctx:route><ctx:service>{$routingtable/row[logical/text()=fn:local-name($body/*)]/physical/text()}</ctx:service></ctx:route>
    I am happy with this approach. But I wonder if there is a simpler way. Is XQuery the only way one can extract the operation name from the message in this case?

  • Error in Integration of Defect Module of HP QC with SolMan Ehp 1

    Hi,
    We are using QC version 10 patch 12 and connected with SolMan Ehp 1 for testing.
    We are facing a problem in integrating the defect module of QC with Service desk of SolMan.
    The required settings are done in SPRO -> SAP Solution Manager -> Scenario-Specific Settings -> Third Party Integration -> SAP Quality Center by HP -> Integration Defect Management.
    SPRO -> SAP Solution Manager -> Scenario-Specific Settings -> Third Party Integration -> External Service Desk
    We have also implemented the SAP note 1289155.
    We are not using the Standard message type SLFN instead we have ZLFN.
    See the bellow error message in QC during field maping.
    The number of required defect fields in Quality center is different from the number of required support message fields in Application: u201Ceclsh112; WAS; 100u201D. Make sure the number of required fields is equal in both systems before you continue.
    Can any one suggest on this.
    Thanks in advance.
    Praveen

    Hi Praveen,
    Try this it should solve the issue.
    It seems that there is something wrong with your configuartion for the external service desk.
    If possible could you remove the external service desk from in
    Transaction ICTCONF and redefine it again?
    Once you have done that please do the following steps:
    - Go to the Solution Manager project
    - Open the dialog to connect to a QC project
    - Confirm the dialog.
    This will update the assignment with all technical details.
    You can check the results in the Site Admin. There navigate to the corresponding QC project and check the content of table BLUEPRINTS. There should be exactly 1 entry with the relevant information for the service desk integration (see attached "BLUEPRINTS(QC).doc").
    Hope this helps.
    Thanks,
    Raghavendra.

Maybe you are looking for

  • Pages PDF documents does not open in another computer?

    Pages documents which I export to PDF does not open in another computer (Mac or PC). my computer is macbookpro and earlier everything worked fine. Pages is 4.05 version. Thanks!

  • How can I set the window options for command-N?

    Hi, I have let the Mac OS-X software update run (Java and a few other things), and now when I want a finder window by clicking on the smiling blue face or with command-N, I get a stripped window with only the volumes but no tool bar nor the folders s

  • How do I get my music from my iphone into itunes library

    I have tried everything I can see to get my music from my iphone to my itunes library? I've just got a new iphone 4 and want all my music put onto my new phone but again I don't know what else to do.

  • Need a filter to only pull 3 quarters worth of info

    Hi All! We currently run a report that shows how many "visits" the sales reps make to certain accounts. I use the "calender week" option to be able to figure out the goal they are suppose to have weekly and then show how many visits they actually hav

  • Unsupported File Type: Broken Reference

    I am trying to add a movie to iDVD and it tells me "Unsupported File Type: Broken Reverence". I have recopied the movie to my files, but still receive this message. All the other clips that I made with iMovie HD have loaded fine. It is just this one.