Material selection from mmbe and pack it to Hu02.

Hi guys
Tell me the way to pack the material(In batches) from the stock mmbe to hu02.
I meant as soon as i select the material in mmbe02 the system automatically retrieve the data and through it to the relevant fields of the HU02 and finally i select the packing material and pack it.
Best Regards:Vijay Kumar
Edited by: vijay gemnnai on May 27, 2010 12:41 PM

Hi,
the most easiest and straight forward approach is
- Ckick the "Binding" tab at the bottom of the Visual Editor
- In the Bindings section click teh green plus icon and choose Generic Bindings | Attribute Value
- point the iterator selection to the iterator used by the table
- choose the column's attribute name from the list of attributes
- Create a method on the ApplicatioNModule IMPL class (should take single argument)
- expose it as a client interfaces so it shows in the Data Controls panel
- In the "Binding" tab, create a method binding for this exposed method
- point the method binding argument to #{bindings.column-attribute-name.inptValue}
So whenever you need to pass the value on to the AM, you just call the method binding
OperationBinding oper = (OperationBinding) bindings.get("name of method");
oper.execute();
Frank

Similar Messages

  • Delivery doesn't open from pick and pack

    Hi,
    In Picked Tab (Pick and Pack Manager) delivery button is active, but when you select a sales order for a specific BP delivery button doesn't open the delivery. Delivery Note can be created in Sales module based on the sales order.
    I assume there is something in the BP or items settings that doesn't allow the delivery to be created through pick and pack manager. Have you encountered this problem?
    Thank you!
    Cristina

    More testing... turning off ad block (and all extensions) did not fix the problem, nor did rebooting or reinstalling iTunes.
    Here are two links to the same app from two different sites. The first works, the second does not.
    Cafeteria Nipponica
    1. http://siteappfeed.getapp.cc/app/550067264 <-- this link opens an itunes.apple.com preview site and opens the app's page in iTunes itself.  Works perfectly.
    2. http://toucharcade.com/link/http://phobos.apple.com/WebObjects/MZStore.woa/wa/vi ewSoftware?id=550067264&mt=8   <-- this link goes to a blank page.  When links from this site have worked in the past, however, there was no visible "itunes.apple.com" page - it appeared to go directly to opening the page in iTunes, but may be doing more behind the scenes.

  • Views - SELECT from VIEW and SELECT from the query inside view definition returning different results

    Hi,
    I am facing this weird issue. Any help would be appriciated.
    I have view with the following definition:
    CREATE VIEW [marketing].[OpenedMails]
    AS
    SELECT
    ID_EmailAddress, 
    ID_Date_Opened, 
    ID_Contact, 
    ID_MailSendJobs,
    COUNT(ID_OpenedMails) AS OpenCount,
    CASE
    WHEN ROW_NUMBER() OVER (PARTITION BY CAST(ID_EmailAddress AS VARCHAR(10)) + ' ' + CAST(ID_MailSendJobs AS VARCHAR(10)) ORDER BY ID_Date_Opened) = 1 THEN 1 
    ELSE 0 
    END
    AS UniqueOpenCount
    FROM            
    dbo.Fact_OpenedMails
    where ID_Contact = 382340
    GROUP BY ID_EmailAddress, ID_Date_Opened, ID_Contact, ID_MailSendJobs;
    order by ID_MailSendJobs 
    When I run the the select statement in the view definition I get combination of both 1 and 0 for the 'UniqueOpenCount' column.
    But when I run the select from the view itself using the following query:
    SELECT [ID_EmailAddress]
          ,[ID_Date_Opened]
          ,[ID_Contact]
          ,[ID_MailSendJobs]
          ,[OpenCount]
          ,[UniqueOpenCount]
      FROM [marketing].[OpenedMails]
    I get equal amount of rows but only 0 values for the 'UniqueOpenCount' column which seems to be very weird to me. Why is this happening ? Can anyone help regarding how to solve this ??
    Result from the select inside view definition:
    Result from the select query directly from the view:
    Thanks in advance.
    Vivek Kamath

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. You failed. Temporal
    data should use ISO-8601 formats – you failed again. Code should be in Standard SQL AS much AS possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    Things like “ID_Date_Opened” are wrong. The affixes “id” and “date” are called attribute properties in ISO-11179 and data modeling. Since a date is a unit of measurement on a temporal scale, it cannot be an identifier by definition. My guess is this would be
    “open_date” if it were done right. And the only display format in ANSI/ISO Standard SQL is ISO-8601 (yyyy-mm-dd)
    An email address of -1?? Email addresses are VARCHAR(256), not numeric. There is no reason to cast them AS string!
    Your vague “mail_send_jobs” is plural, but columns hold scalars and cannot be plural by definition. The partition cause can hold a list of columns: 
    WHEN ROW_NUMBER() 
         OVER (PARTITION BY email_address, mail_send_job 
                   ORDER BY open_date)
         = 1 
    THEN 1 ELSE 0 END 
    This still makes no sense, but the syntax is better. You do not understand how ROW_NUMBER() works. 
    Would you like to try again with proper Netiquette? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Selecting from Views and ORA-0600

    Hi All,
    I am using Oracle 9i and was looking for some guidance on the issue I am seeing.
    I have this huge query in which some dataelements are obtained using sys_connect_by_path while the others are got directly. I have set this huge query set up as a view (GetDataView).
    I am now trying to query from the view. (I am using a stored procedure to get dataelements from the view and output as a xml).
    When I do a 'select * from GetDataView' , the results come back fine. Also, when I query the dataelements which are obtained directly (without sys_connect_by_path), they come back fine as well. However, when I try and get the dataelements which are obtained using
    sys_connect_by_path, I get the error :
    "An error was encountered while performing the requested operation:
    ORA-00600: internal error code, arguments:qkacon:qkaconGetPathOps:1],[,],[,],[,],[
    00600.0000 - "internal error code, arguments: %s,%s,%s,%s,%s,%s,%s,%s".
    I know that this is a known issue with Oracle 9i when using sys_connect_by_path but this huge query executes perfectly when I run it independently.
    It is only when I try to query the view for individual dataelements(which use sys_connect_by_path) that I get this error.
    Can you pls point out what the problem could be here? Also, can you pls suggest any workarounds that I could try.
    Thanks in advance,
    AD
    Query which uses SYS_CONNECT_BY_PATH for certain elements - This is set up as a View
    SELECT --nrtd dataelements (Non Relational Test Data)
    nrtd.ID, nrtd.DevelopmentSite, nrtd.ProjectStatus, nrtd.ProjectType, nrtd.Creator, nrtd.Business_Unit,
    nrtd.Division, nrtd.Strategy,
    --Special Case : First Generic from NewModels if FF, TD, PD, FFC, BD. PromisWaferIdentifier from WaferInformation if New Wafer or New Die
    nmwigen.SAPGenericID,
    nrtd.AssemblySite,
    rwid.FabSite,
    nrtd.packagetype, nrtd.directreleasestrat,
    nrtd.testsite, nrtd.packsite, nrtd.umbrellaproject_id, nrtd.keycustomers, nrtd.ProjectedReleasedate,
    nrtd.perfwwmfgnpcoordinator, nrtd.perfwwmfgoffshoretesteng, nrtd.packagedesignator, nrtd.leadballcount, nrtd.bodysize,
    nrtd.finishcode, nrtd.pkgnumber, nrtd.pkgstatus, nrtd.pborpbfree, nrtd.paddlex, nrtd.PaddleY,
    nrtd.BackGrind, nrtd.LeadFrameType, nrtd.PiecePart, nrtd.assypackoption,
    nrtd.testprocess, nrtd.contactorresreq, nrtd.highrfrequired, nrtd.PeakCurrent, nrtd.AssignedFocusFactory,
    nrtd.MfgReleaseReqStatus , nrtd.NumActuators , nrtd.NumBoards, nrtd.numcontactors,
    nrtd.IsQualPlanRequired, nrtd.QualNumber, nrtd.FailedQualProjectdisposition,
    nrtd.IdentifiedActionFromQualReview,
    --rtgd dataelements (Relational TestGrades Data)
    rtgd.ProductGrade, rtgd.SpeedSuffix, rtgd.PartClass,
    rtgd.MultiGrade, rtgd.EstTotalTestTimeGood, rtgd.EstTotalTestTimeBad,
    rtgd. ActTotalTestTimeGood, rtgd.ActTotalTestTimeBad, rtgd.EstOverAllYield,
    rtgd.EstYieldToGrade, rtgd.ActOverAllYield, rtgd.ActYieldToGrade,
    -- rnmd dataelements (Relational NewModels Data)
    rnmd.ActualFGMaterialNum, rnmd.PackOption, rnmd.IsReleasedMaterial,
    --rtpd dataelements (Relational TestPasses Data)
    rtpd.Contactor, rtpd.Handler, rtpd.TesterConfig, rtpd.NumTestSites,
    rtpd.TestTemp, rtpd.SpecialTest, --rtpd.SpecialTestCommByPassPerGrade,
    rtpd.EstTestTimeGood, rtpd.EstTestTimeBad, rtpd.ActTestTimeGood,
    rtpd.ActTestTimeBad,
    --rwid dataelements (Relational WaferInformation Data)
    rwid.WID, rwid.WaferDesignType, rwid.WaferSize, rwid.FabProcessCode, rwid.FabProcessStatus, rwid.FndryFabPlantCode, rwid.EstTapeOutDate,
    rwid.EstXWidth, rwid.EstGDPW, rwid.EstYLength, rwid.PowerDissipation, rwid.XWidth, rwid.YLength,
    rwid.OMSVendorName, rwid.GDPW, rwid.IsReleaseOnPizzaMask, rwid.FabMfgReleaseReqStatus, rwid.FabMfgReleaseReqComments,
    --rtpid dataelements (Relational TrimProbeInformation Data)
    rtpid.ProbeSite, rtpid.ProbeType, rtpid.DieDesignType, rtpid.probemfgreleasereqstatus,
    rtpid.probemfgreleasereqcomments, rtpid.isvendorpartonwfrordsht,
    --rtpgd dataelements (Relational TrimProbeGrade Data)
    rtpgd.ProbeGrade, rtpgd.EstProbeYield1, rtpgd.EstTotalProbeTimeGood, rtpgd.EstTotalProbeTimeBad,
    rtpgd.ActProbeYield, rtpgd.ActTotalProbeTimeGood, rtpgd.ActTotalProbeTimeBad,
    --rtppd dataelements (Relational TrimProbePasses Data)
    rtppd.TrimProbeSystem, rtppd.NumProbeSites, rtppd.ProbeTempReqd1, rtppd.ProbeTemp
    --Non relational TestData data elements. Alias Table 'nrtd'
    FROM (SELECT npip.id AS ID, npip.developmentsite AS DevelopmentSite, npip.projectstatus AS ProjectStatus,
    npip.ProjectType AS ProjectType, pt.Creator, ss.Business_Unit, ss.Division, npip.strategy_name AS Strategy,
    ffi.assemblysite, ffi.packagetype, ti.directreleasestrat AS directreleasestrat,
    ti.testsite, ti.PackSite, npip.umbrellaproject_id, npip.keycustomers, npip.projectedreleasedate AS ProjectedReleasedate,
    pt.perfwwmfgnpcoordinator AS perfwwmfgnpcoordinator, pt.perfwwmfgoffshoretesteng AS perfwwmfgoffshoretesteng, ffi.packagedesignator,
    ffi.leadballcount, ffi.bodysize, ffi.finishcode AS finishcode, ffi.pkgnumber, ffi.pkgstatus,
    ffi.pborpbfree AS pborpbfree, ffi.paddlex AS paddlex, ffi.paddley AS paddley, ffi.backgrind AS backgrind,
    ffi.LeadFrameType, ffi.PiecePart AS PiecePart, ffi.assypackoption AS assypackoption,
    ti.testprocess AS testprocess, ti.contactorresreq AS contactorresreq,
    ti.highrfrequired AS highrfrequired, ti.PeakCurrent AS PeakCurrent, vp.AssignedFocusFactory,
    vp.MfgReleaseReqStatus AS MfgReleaseReqStatus, vp.NumActuators AS NumActuators, vp.NumBoards AS NumBoards,
    vp.numcontactors AS numcontactors, qi.IsQualPlanRequired, qi.QualNumber, qi.FailedQualProjectdisposition,
    qi.IdentifiedActionFromQualReview
    FROM NPIProjects npip
    LEFT OUTER JOIN ProjectTeam pt ON pt.NPIProjectId = npip.Id
    LEFT OUTER JOIN sapws_strategies ss ON ss.Strategy = npip.strategy_name
    LEFT OUTER JOIN FormFactorInformation ffi ON ffi.NPIProjectId = npip.Id
    LEFT OUTER JOIN TestInformation ti ON ti.FormFactorInformationId = ffi.Id
    LEFT OUTER JOIN ValidationPlans vp ON vp.FormFactorInformationId = ffi.Id
    LEFT OUTER JOIN QualInformation qi ON qi.FormFactorInformationId = ffi.Id) nrtd,
    -- Relational data elements.
    --TestGrades DataElements. Alias Table 'rtgd'
    (SELECT NPIProjectID,
    (LTRIM(sys_connect_by_path(ProductGrade,';'),';')) ProductGrade,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| SpeedSuffix,';'),';')) SpeedSuffix,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| PartClass,';'),';')) PartClass,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| MultiGrade,';'),';')) MultiGrade,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| EstTotalTestTimeGood,';'),';')) EstTotalTestTimeGood,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| EstTotalTestTimeBad,';'),';')) EstTotalTestTimeBad,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| ActTotalTestTimeGood,';'),';')) ActTotalTestTimeGood,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| ActTotalTestTimeBad,';'),';')) ActTotalTestTimeBad,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| EstOverAllYield,';'),';')) EstOverAllYield,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| EstYieldToGrade,';'),';')) EstYieldToGrade,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| ActualOverAllYield,';'),';')) ActOverAllYield,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| ActualYieldToGrade,';'),';')) ActYieldToGrade
    FROM (SELECT npip.id AS NPIProjectID, tg.ProductGrade AS ProductGrade,
    tg.SpeedSuffix AS SpeedSuffix, tg.PartClass AS PartClass, tg.MultiGrade AS MultiGrade,
    tg.EstTotalTestTimeGood AS EstTotalTestTimeGood, tg.EstTotalTestTimeBad AS EstTotalTestTimeBad,
    tg.ActTotalTestTimeGood AS ActTotalTestTimeGood, tg.ActTotalTestTimeBad AS ActTotalTestTimeBad,
    tg.EstOverAllYield AS EstOverAllYield, tg.EstYieldToGrade AS EstYieldToGrade, tg.ActualOverAllYield AS ActualOverAllYield,
    tg.ActualYieldToGrade AS ActualYieldToGrade,
    row_number() OVER (PARTITION BY npip.id ORDER BY npip.id) rnum,
    COUNT(*) OVER (PARTITION BY npip.id) tot
    FROM NPIProjects npip LEFT OUTER JOIN FormFactorInformation ffi ON ffi.NPIProjectId = npip.Id
    LEFT OUTER JOIN TestGrades tg ON tg.FormFactorInformationId = ffi.Id)
    WHERE rnum=tot START WITH rnum =1 CONNECT BY PRIOR rnum = rnum-1 AND PRIOR NPIProjectID = NPIProjectID) rtgd,
    -- NewModels DataElements. Alias Table 'rnmd'
    (SELECT NPIProjectID,
    (LTRIM(sys_connect_by_path(ActualFGMaterialNum,';'),';')) ActualFGMaterialNum,
    (LTRIM(sys_connect_by_path(PackOption,';'),';')) PackOption,
    (LTRIM(sys_connect_by_path(IsReleasedMaterial,';'),';')) IsReleasedMaterial
    FROM (SELECT npip.id AS NPIProjectID,
    nm.ActualFGMaterialNum AS ActualFGMaterialNum,
    nm.PackOption AS PackOption, nm.IsReleasedMaterial AS IsReleasedMaterial,
    row_number() OVER (PARTITION BY npip.id ORDER BY npip.id) rnum,
    COUNT(*) OVER (PARTITION BY npip.id) tot
    FROM NPIProjects npip LEFT OUTER JOIN FormFactorInformation ffi ON ffi.NPIProjectId = npip.Id
    LEFT OUTER JOIN TestGrades tg ON tg.FormFactorInformationId = ffi.Id
    LEFT OUTER JOIN NewModels nm ON nm.TestGradesID = tg.Id)
    WHERE rnum=tot START WITH rnum =1 CONNECT BY PRIOR rnum = rnum-1 AND PRIOR NPIProjectID = NPIProjectID) rnmd,
    --SAPGenericID from NewModels Table for FF, TD, BD, PD and PromisWaferIdentifier from WaferInformation Table for New Wafer and New Die
    (SELECT npip.id AS NPIProjectID, decode(npip.projecttype, 'New Wafer', wi.PromisWaferIdentifier, 'New Die', wi.PromisWaferIdentifier, nm.SAPGenericID)SAPGenericID --nm.SAPGenericID
    FROM NPIProjects npip LEFT OUTER JOIN FormFactorInformation ffi ON ffi.NPIProjectId = npip.Id
    LEFT OUTER JOIN WaferInformation wi ON wi.NPIProjectId = npip.Id
    LEFT OUTER JOIN (Select FormFactorInformationID, min(ID)ID from TestGrades GROUP BY FormFactorInformationID) tg ON (tg.FormFactorInformationId = ffi.Id)
    LEFT OUTER JOIN (Select TestGradesID, min(SAPGenericID)SAPGenericID from NewModels GROUP BY TestGradesID) nm ON (nm.TestGradesID = tg.ID)) nmwigen,
    -- Relational TestPasses data. Alias Table 'rtpd'
    (SELECT NPIProjectID,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| Contactor,';'),';')) Contactor,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| Handler,';'),';')) Handler,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| TesterConfig,';'),';')) TesterConfig,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| NumTestSites,';'),';')) NumTestSites,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| TestTemp,';'),';')) TestTemp,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| SpecialTest,';'),';')) SpecialTest,
    --(LTRIM(sys_connect_by_path(ProductGrade || '-'|| SpecialTestComments,';'),';')) SpecialTestCommByPassPerGrade,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| EstTestTimeGood,';'),';')) EstTestTimeGood,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| EstTestTimeBad,';'),';')) EstTestTimeBad,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| ActTestTimeGood,';'),';')) ActTestTimeGood,
    (LTRIM(sys_connect_by_path(ProductGrade || '-'|| ActTestTimeBad,';'),';')) ActTestTimeBad
    FROM (SELECT npip.id AS NPIProjectID, tg.ProductGrade AS ProductGrade, tp.contactor AS Contactor,
    tp.Handler AS Handler, tp.TesterConfig AS TesterConfig, tp.NumTestSites AS NumTestSites,
    tp.testtemp AS TestTemp, tp.SpecialTest AS SpecialTest, --tp.SpecialtestComment AS SpecialTestComments,
    tp.EstTestTimeGood AS EstTestTimeGood, tp.EstTestTimeBad AS EstTestTimeBad,
    tp.ActTestTimeGood AS ActTestTimeGood, tp.ActTestTimeBad AS ActTestTimeBad,
    row_number() OVER (PARTITION BY npip.id ORDER BY npip.id) rnum,
    COUNT(*) OVER (PARTITION BY npip.id) tot
    FROM NPIProjects npip LEFT OUTER JOIN FormFactorInformation ffi ON ffi.NPIProjectId = npip.Id
    LEFT OUTER JOIN TestGrades tg ON tg.FormFactorInformationId = ffi.Id
    LEFT OUTER JOIN TestPasses tp ON tp.TestGradesID = tg.Id)
    WHERE rnum=tot START WITH rnum =1 CONNECT BY PRIOR rnum = rnum-1 AND PRIOR NPIProjectID = NPIProjectID)rtpd,
    -- Relational WaferInformation data Alias Table 'rwid'
    (SELECT NPIProjectID,
    (LTRIM(sys_connect_by_path(WID,';'),';')) WID,
    (LTRIM(sys_connect_by_path(FabSite,';'),';')) FabSite,
    (LTRIM(sys_connect_by_path(WaferDesignType,';'),';')) WaferDesignType,
    (LTRIM(sys_connect_by_path(WaferSize,';'),';')) WaferSize,
    (LTRIM(sys_connect_by_path(FabProcessCode,';'),';')) FabProcessCode,
    (LTRIM(sys_connect_by_path(FabProcessStatus,';'),';')) FabProcessStatus,
    (LTRIM(sys_connect_by_path(FndryFabPlantCode,';'),';')) FndryFabPlantCode,
    (LTRIM(sys_connect_by_path(EstTapeOutDate,';'),';')) EstTapeOutDate,
    (LTRIM(sys_connect_by_path(EstXWidth,';'),';')) EstXWidth,
    (LTRIM(sys_connect_by_path(EstGDPW,';'),';')) EstGDPW,
    (LTRIM(sys_connect_by_path(EstYLength,';'),';')) EstYLength,
    (LTRIM(sys_connect_by_path(PowerDissipation,';'),';')) PowerDissipation,
    (LTRIM(sys_connect_by_path(XWidth,';'),';')) XWidth,
    (LTRIM(sys_connect_by_path(YLength,';'),';')) YLength,
    (LTRIM(sys_connect_by_path(OMSVendorName,';'),';')) OMSVendorName,
    (LTRIM(sys_connect_by_path(GDPW,';'),';')) GDPW,
    (LTRIM(sys_connect_by_path(IsReleaseOnPizzaMask,';'),';')) IsReleaseOnPizzaMask,
    (LTRIM(sys_connect_by_path(FabMfgReleaseReqStatus,';'),';')) FabMfgReleaseReqStatus,
    (LTRIM(sys_connect_by_path(FabMfgReleaseReqComments,';'),';')) FabMfgReleaseReqComments
    FROM (SELECT npip.id AS NPIProjectID, wi.WID AS WID, decode(npip.ProjectType, 'New Wafer', wi.FabSite, 'New Die', wi.FabSite, di.FabSite) AS FabSite, wi.WaferDesignType AS WaferDesignType,
    wi.WaferSize AS WaferSize, wi.FabProcessCode AS FabProcessCode, wi.FabProcessStatus AS FabProcessStatus,
    wi.FndryFabPlantCode AS FndryFabPlantCode, wi.EstTapeOutDate AS EstTapeOutDate, wi.EstXWidth AS EstXWidth,
    wi.ESTGDPW AS EstGDPW, wi.EstYLength AS EstYLength, wi.PowerDissipation AS PowerDissipation,
    wi.XWidth AS XWidth, wi.YLength AS YLength,
    wi.OMSVendorName AS OMSVendorName, wi.GDPW AS GDPW, wi.IsReleaseOnPizzaMask AS IsReleaseOnPizzaMask,
    wi.FabMfgReleaseReqStatus AS FabMfgReleaseReqStatus, wi.FabMfgReleaseReqComments AS FabMfgReleaseReqComments,
    row_number() OVER (PARTITION BY npip.id ORDER BY npip.id) rnum,
    COUNT(*) OVER (PARTITION BY npip.id) tot
    FROM NPIProjects npip LEFT OUTER JOIN DieInformation di ON di.NPIProjectId = npip.Id
    LEFT OUTER JOIN TrimProbeInformation tpi ON tpi.Id = di.TrimProbeInformation_id
    LEFT OUTER JOIN WaferInformation wi ON wi.WID = tpi.WaferInformation_id)
    WHERE rnum=tot START WITH rnum =1 CONNECT BY PRIOR rnum = rnum-1 AND PRIOR NPIProjectID = NPIProjectID)rwid,
    -- relational TrimProbeInformation Dataelements . Alias Table 'rtpid'
    (SELECT NPIProjectID,
    (LTRIM(sys_connect_by_path(ProbeSite,';'),';')) ProbeSite,
    (LTRIM(sys_connect_by_path(ProbeType,';'),';')) ProbeType,
    (LTRIM(sys_connect_by_path(DieDesignType,';'),';')) DieDesignType,
    (LTRIM(sys_connect_by_path(probemfgreleasereqstatus,';'),';')) probemfgreleasereqstatus,
    (LTRIM(sys_connect_by_path(probemfgreleasereqcomments,';'),';')) probemfgreleasereqcomments,
    (LTRIM(sys_connect_by_path(isvendorpartonwfrordsht,';'),';')) isvendorpartonwfrordsht
    FROM (SELECT npip.id AS NPIProjectID,tpi.ProbeSite AS ProbeSite, tpi.ProbeType AS ProbeType,
    tpi.DieDesignType AS DieDesignType, tpi.probemfgreleasereqstatus AS probemfgreleasereqstatus,
    tpi.probemfgreleasereqcomments AS probemfgreleasereqcomments,
    tpi.isvendorpartonwfrordsht AS isvendorpartonwfrordsht,
    row_number() OVER (PARTITION BY npip.id ORDER BY npip.id) rnum,
    COUNT(*) OVER (PARTITION BY npip.id) tot
    FROM NPIProjects npip LEFT OUTER JOIN WaferInformation wi ON wi.NPIProjectId = npip.Id
    LEFT OUTER JOIN TrimProbeInformation tpi ON tpi.waferinformation_id = wi.wid)
    WHERE rnum=tot START WITH rnum =1 CONNECT BY PRIOR rnum = rnum-1 AND PRIOR NPIProjectID = NPIProjectID)rtpid,
    -- Relational TrimProbeGrades Dataelements . Alias Table 'rtpgd'
    (SELECT NPIProjectID,
    (LTRIM(sys_connect_by_path(ProbeGrade,';'),';')) ProbeGrade,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| EstProbeYield1,';'),';')) EstProbeYield1,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| EstTotalProbeTimeGood,';'),';')) EstTotalProbeTimeGood,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| EstTotalProbeTimeBad,';'),';')) EstTotalProbeTimeBad,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| ActProbeYield,';'),';')) ActProbeYield,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| ActTotalProbeTimeGood,';'),';')) ActTotalProbeTimeGood,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| ActTotalProbeTimeBad,';'),';')) ActTotalProbeTimeBad
    FROM (SELECT npip.id AS NPIProjectID, tpg.ProbeGrade AS ProbeGrade, decode(tpg.EstProbeYield, null, tpg.EstProbeYield, tpg.EstProbeYield1) AS EstProbeYield1,
    tpg.EstTotalProbeTimeGood AS EstTotalProbeTimeGood, tpg.EstTotalProbeTimeBad AS EstTotalProbeTimeBad,
    tpg.ActProbeYield AS ActProbeYield, tpg.ActTotalProbeTimeGood AS ActTotalProbeTimeGood,
    tpg.ActTotalProbeTimeBad AS ActTotalProbeTimeBad,
    row_number() OVER (PARTITION BY npip.id ORDER BY npip.id) rnum,
    COUNT(*) OVER (PARTITION BY npip.id) tot
    FROM NPIProjects npip LEFT OUTER JOIN DieInformation di ON di.NPIProjectid = npip.id
    LEFT OUTER JOIN TrimProbeInformation tpi ON tpi.Id = di.TrimProbeInformation_id
    LEFT OUTER JOIN TrimProbeGrades tpg ON tpg.TrimProbeInformation_Id = tpi.Id)
    WHERE rnum=tot START WITH rnum =1 CONNECT BY PRIOR rnum = rnum-1 AND PRIOR NPIProjectID = NPIProjectID)rtpgd,
    -- Relational TrimProbePasses data. Alias Table 'rtppd'
    (SELECT NPIProjectID,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| TrimProbeSystem,';'),';')) TrimProbeSystem,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| NumProbeSites,';'),';')) NumProbeSites,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| ProbeTempReqd1,';'),';')) ProbeTempReqd1,
    (LTRIM(sys_connect_by_path(ProbeGrade || '-'|| ProbeTemp,';'),';')) ProbeTemp
    FROM (SELECT npip.id AS NPIProjectID, tpg.ProbeGrade AS ProbeGrade,
    tpp.TrimProbeSystem AS TrimProbeSystem, tpp.NumProbeSites AS NumProbeSites,
    decode(tpp.ProbeTempReqd, null, tpp.ProbeTempReqd1,tpp.ProbeTempReqd1) AS ProbeTempReqd1, tpp.ProbeTemp AS ProbeTemp,
    row_number() OVER (PARTITION BY npip.id ORDER BY npip.id) rnum,
    COUNT(*) OVER (PARTITION BY npip.id) tot
    FROM NPIProjects npip LEFT OUTER JOIN DieInformation di ON di.NPIProjectid = npip.id
    LEFT OUTER JOIN TrimProbeInformation tpi ON tpi.Id = di.TrimProbeInformation_id
    LEFT OUTER JOIN TrimProbeGrades tpg ON tpg.TrimProbeInformation_Id = tpi.Id
    LEFT OUTER JOIN TrimProbePasses tpp ON tpp.TrimProbeGrades_Id = tpg.Id)
    WHERE rnum=tot START WITH rnum =1 CONNECT BY PRIOR rnum = rnum-1 AND PRIOR NPIProjectID = NPIProjectID)rtppd
    WHERE nrtd.ID = rtpid.NPIProjectID
    AND rtpid.NPIProjectID = rtgd.NPIProjectID
    AND nrtd.ID = rtpd.NPIProjectID
    AND nrtd.ID = rnmd.NPIProjectID
    AND nrtd.ID = nmwigen.NPIProjectID
    AND rtgd.NPIProjectID = rwid.NPIProjectID
    AND nrtd.ID = rtpgd.NPIProjectID
    AND nrtd.ID = rtppd.NPIProjectID

    Two thoughts.
    1. ORA-00600 = open an SR at metalink
    2. Oracle 9i is in desupport so Oracle is going to suggest that you move this to a currently supported version: Especially if 9i means anything other than 9.2.0.8.
    Your query will likely be put to good use by Oracle showing how E-Business Suite is superior to SAP. <g>

  • Need to refresh materialized view from procedure and pl/sql block

    Hi,
    I need to refresh materialized view (complete refresh)from procedure and pl/sql block .can some one help.
    MV name:MV_DGN_TEST_SESSION
    Thanks,
    Rajasekhar

    dbms_mview.REFRESH ('MV_DGN_TEST_SESSION', 'C');Regards,
    Mahesh Kaila
    Edited by: user4211491 on Dec 1, 2009 10:41 PM

  • "select * from table" and "select top 14260 from table" get nothing but select top 14259 get result successful

    select * from tablename                   ------always running,but get nothing
    select top 1 *  from tablename         -------get result quickly
    select top 2 *  from tablename         -------get result quickly
    select top 14259 * from tablename  --------get result quickly
    select top 14260 * from tablename  --------always running,but get nothing
    the thread is:
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:150)
    java.net.SocketInputStream.read(SocketInputStream.java:121)
    com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1782)
    com.microsoft.sqlserver.jdbc.TDSReader.readPacket(IOBuffer.java:4838)
       - 已锁定com.microsoft.sqlserver.jdbc.TDSReader@54269910
    com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(IOBuffer.java:6150)
    com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:402)
    com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:350)
    com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696)
    com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715)
       - 已锁定java.lang.Object@320b1499
    com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:180)
    com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:155)
    com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(SQLServerPreparedStatement.java:332)

    when I run the below sql of Uri Dimant,I get many rows,I think you are right!
    Do you have some method to handle this problem?
    Or do you have some information for me to Learn?
    Thanks a lot.
    SELECT
    owt.session_id AS waiting_session_id,
        owt.blocking_session_id,
    DB_NAME(tls.resource_database_id) AS database_name,
        (SELECT SUBSTRING(est.[text], ers.statement_start_offset/2
    + 1,
    (CASE WHEN ers.statement_end_offset = -1
    THEN LEN(CONVERT(nvarchar(max), est.[text])) * 2
    ELSE ers.statement_end_offset
    END
    - ers.statement_start_offset
    ) / 2)
    FROM sys.dm_exec_sql_text(ers.[sql_handle]) AS est) AS waiting_query_text,
    CASE WHEN owt.blocking_session_id > 0 
    THEN (
    SELECT
    est.[text] FROM sys.sysprocesses AS sp
    CROSS APPLY sys.dm_exec_sql_text(sp.[sql_handle]) as est
    WHERE sp.spid = owt.blocking_session_id)
    ELSE
    NULL
    END AS blocking_query_text,
        (CASE tls.resource_type
    WHEN 'OBJECT' THEN OBJECT_NAME(tls.resource_associated_entity_id, tls.resource_database_id)
    WHEN 'DATABASE' THEN DB_NAME(tls.resource_database_id)
    ELSE (SELECT  OBJECT_NAME(pat.[object_id], tls.resource_database_id)
    FROM sys.partitions pat WHERE pat.hobt_id = tls.resource_associated_entity_id)
    END
    ) AS object_name,
    owt.wait_duration_ms,
    owt.waiting_task_address,
    owt.wait_type,
    tls.resource_associated_entity_id,
    tls.resource_description AS local_resource_description,
    tls.resource_type,
    tls.request_mode,
    tls.request_type,
    tls.request_session_id,
    owt.resource_description AS blocking_resource_description,
    qp.query_plan AS waiting_query_plan
    FROM sys.dm_tran_locks AS tls
    INNER JOIN sys.dm_os_waiting_tasks owt ON tls.lock_owner_address = owt.resource_address
    INNER JOIN sys.dm_exec_requests ers ON tls.request_request_id = ers.request_id
    AND owt.session_id = ers.session_id
    OUTER APPLY sys.dm_exec_query_plan(ers.[plan_handle]) AS qp
    GO

  • Selecting from BKPF and BSEG

    Hi all,
    Can someone help me optimize the performance of this code as i don't know how else to select from BSEG as i cannot use a join coz its a cluster table. I need to find a way to improve the perfomance.Any help would be much appreciated.
    SELECT belnr gjahr bukrs budat stblg awkey blart
             FROM bkpf INTO CORRESPONDING FIELDS OF TABLE t_bkpf
             WHERE belnr IN s_belnr and
                   gjahr = p_gjahr  and
                   bukrs = p_bukrs.
      LOOP AT t_bkpf.
          SELECT belnr gjahr buzei ebeln ebelp
               wrbtr fipos geber fistl fkber
               augbl augdt shkzg
        INTO CORRESPONDING FIELDS OF table t_bseg
        FROM bseg
        WHERE belnr = t_bkpf-belnr
        AND   gjahr = t_bkpf-gjahr
        AND   bukrs = t_bkpf-bukrs.
    Thanks alot
    seema

    Hi Seema,
    You have to avoid the database retrival inside the loop.You can use for all entries.
    This is taken from a link.
    Some of the SAP tables are not transparant, but pooled or clustered. Be aware of this !
    There are a lot of limitations on how such tables can be accessed. You can not include such
    tables in database views and join constructs. The FI-GL table BSEG, which is one of our
    biggest PR1 tables, is an example of a clustered table. At the database-level, there is no table
    called BSEG, but instead RFBLG is being used for the BSEG data. Most of the fields known
    in BSEG are not known in the database table RFBLG, but are compressed in a VARDATA
    field of RFBLG. So tests in the WHERE clause of SELECTs agains BSEG are not used by
    the database (e.g. lifnr = vendor account number, hkont = G/L account, kostl = cost center).
    As a consequence, these tests are done after the facts similar to using the CHECK statement,
    and as already said in tip 1, CHECK statements are worse than tests in the WHERE-clause.
    Check this link also.
    How to Read BSEG Efficiently
    you'll never select table bkpf alone.
    alternatives:
    1) select with header information from bkpf
    2) use secondary index tables
    Re: Tuning cluster table selection
    3) use logical data base e.g.: BRF
    Hope this helps.If so,reward points.Otherwise, get back.

  • Select from table and Update to a view

    Hi,
    Can anybody let me if this is possible.
    I have a Master(single record)/detail(multi record) form. I would want to query/select the details from the base table but when I update/delete I would want to update/delete the details to a view.
    Is this doable?
    Thanks
    KAvitha

    Hi Kavitha,
    Solution 1 :-
    Why cann't you trap the ON-TRIGGERS (like ON-INSERT /On-update/ON-DELETE) of that block and put your piece of code to update/delete the view.
    SOlution 2 (I didn't try this ,so please try)
    I am not sure whether it will help you but can try !!Sorry if not working and let me know if you have a solution
    Create a package with Insert /Update/Delete sub procedures which does DML on view (as per ur requirement).
    Call this Procedure on DML Target Name of Advanced Database .
    Regards

  • Copy select value in the textfield from LOV and allow user to edit it

    Hi,
    I have a datablock with 20 records and each record has comments (say field_comments) fields. I would like to allow user to choose predefined comments populated from LOV (say lov_comments) and to append some extra comments after they choose the value from LOV.
    I have created a LOV and added Return type “field_comments” in the column mapping properties. When user clicks on a button, LOV opens up. They select the value from the LOV and the value goes to “field_comment” field. The problem with this approach, user can’t add their comment after selecting from LOV.
    I tried this way too. I created another non-visible textbox (say dummy). In the LOV, I added “dummy” field as returntype. In the dummy field, I have created “POST-CHANGE” trigger which basically says :block. field_comments = :block. Dummy.
    But, the user has to click on other field to view the selected value from the LOV. The values in the “field_comments” is not updated as soon as user click on “OK” button in the LOV.
    I would appreciate it if somebody could give me some input and help to solve my issue. Thank you for your help.
    Thank.

    Well, I tried exactly what you posted and it allowed me to SELECT from LOV and then CHANGE/APPEND new text in front of returned value in the field. It saved to the database and queried without any problems.
    Is your item allowed to INSERT/UPDATE ? If not, then set "Update/Insert Allowed" properties to Yes and attach your LOV to the item and set "Validate from list" to No.
    You may also see if you have any validation being performed on WHEN-VALIDATE-ITEM or POST-CHANGE trigger which will fail since you are editing the values populated from LOV.
    Hope it helps!

  • Inventory Management MMBE and MB51 - Authorizations

    Hallo Support ,
    Please find the requirement below.
    The user wishes to view the material documents details from MMBE and MB51. This is ultimately calling the program SAPLMIGO as a result the Material document is displayed.
    But at the same time the user who views the above material documents should be restricted for the transaction MIGO as it results in creating material documents as well.
    Please do let us know the required roles or authorization objects that need to be assigned to the user in this regard.
    Please feel free to contact for further queries
    Reagrds
    Ramesh

    Hi
    MB03
    has the following MM auth.objects
    M_BEST_EKO
    M_MSEG_BMB
    M_MSEG_LGO
    M_MSEG_WMB
    and
    MB51 has
    M_ANFR_BSA
    M_ANFR_EKG
    M_ANFR_EKO
    M_ANFR_WRK
    M_BEST_BSA
    M_BEST_EKG
    M_BEST_EKO
    M_BEST_WRK
    M_MATE_CHG
    M_MATE_STA
    M_MRES_BWA
    M_MRES_WWA
    M_MSEG_BMB
    M_MSEG_LGO
    M_MSEG_WMB
    M_MSEG_WWA
    M_RAHM_BSA
    M_RAHM_EKG
    M_RAHM_EKO
    M_RAHM_WRK
    and MIGO
    M_ANFR_BSA
    M_ANFR_EKG
    M_ANFR_EKO
    M_ANFR_WRK
    M_BEST_BSA
    M_BEST_EKG
    M_BEST_EKO
    M_BEST_WRK
    M_EINF_EKO
    M_MATE_CHG
    M_MATE_MAN
    M_MATE_STA
    M_MATE_VKO
    M_MATE_WRK
    M_MRES_BWA
    M_MRES_WWA
    M_MSEG_BMB
    M_MSEG_BWA
    M_MSEG_BWE
    M_MSEG_BWF
    M_MSEG_LGO
    M_MSEG_WMB
    M_MSEG_WWA
    M_MSEG_WWE
    M_MSEG_WWF
    So in order to just display from those which contains MSEG
    the ACTVT (Activity) should be 03 Display
    Regards

  • Error in pick and pack manager

    Hello all,
    I've got a strange error that I am hoping someone can help me understand.
    I have two items we'll call them A and B, and this is my process
    Create Sales order for item A, move through pick and pack process to delivery, no issue.
    Create Sales order for Item B, move through pick and pack process to delivery, no issue.
    Create Sales order including both Item A and Item B, move through pick and pack to delivery, error
    "Partial Delivery Not allowed for this order"
    All items are in stock and avaialble, partial deliver is not allowed, but I am not trying to partiall deliver.
    I am attempting to deliver the full amount and it will not let me do it from pick and pack.
    As a work around, I am able to deliver from the Pick list, from the order, and can do a 'copy from' on a new delivery and these all work.
    I just can't deliver the order from the Pick and pack manager 'picked' tab.
    Any ideas?
    kind regards,
    Lucas

    Hi!
    Please do this steps and let me knw !
    1. Create sales Order for Item A and B. (select the warehouse which is having instock / also Available should high or equal)
    2. Open Pick and Pack. select open sales orders
    3. Release the SO
    4. Open Pick List. Inventory > Pick and Pack > Pick List
    5. Type the Pick Qty on tht window and add the Pick List
    6. Open Pick and Pack Manager, select Picked option
    7. Select the Check box and Do Delivery .

  • Html form for select * from table a

    Hi all,
    I m looking for report on header/footer part from one apex pages
    which will display context from table a, like sql statement
    select * from table a, written in html.
    Is any examples in java script/html select from tables
    (and same insert into table A (...) select * from table b)
    thanks,
    Gordan

    Hello Gordan,
    Do you want to show the whole report or just some data of it?
    If it's for ex just the name and address you could create two items and have a process or computation to fill it with your select statement.
    If it's the whole report, just create the report and put it in for ex. Region 1. In your page template you can specify that Region 1 needs to come into the footer.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • Selection from recordgroup

    i have recordgroup and i want to select from this object
    i want to know how to select from it
    and how i can to update the values int his record group

    Hello,
    Look at the following built-ins in the Forms Builder online help (ctrl+H)
    Get_Group_Row_Count()
    Get_Group_Record_Number()
    Get_Group_Char_Cell()
    Get_Group_Date_Cell()
    Get_Group_Number_Cell()
    Francois

  • SELECTING THE BATCHED M/T AND PACK IN HU.

    THE DIFFERENT BATCHES OF SAME MATERIAL ARE THERE IN THE STOCK AGAINST SALES ORDER WHICH IS GOING TO BE PACKED IN THE HANDLING UNITS HU02 AND THAT IS GOING JUST FINE.
    I WANT TO KNOW THAT IS THERE ANY WAY THROUGH WHICH I CAN SELECT THE STOCK TO BE PACKED FROM THE STORAGE LOCATION AND PACK IT IN THE HANDLING UNIT,INSTEAD OF ENTERING THE EACH BATCH IN THE ,QUANTITY,SALES ORDER NO,BATCH NO IN THE HU02.
    REGARDS;VIJAY KUMAR

    This is a long-standing issue with Thunderbird. It has trouble with replies and forwards that contain graphics. I think it is sensitive to the way the message to which you are replying is formatted, or perhaps which email client was used to create it. Once a message has been processed by Outlook, it also be crammed full of horrible non-standards-compliant Microsoft bloat code.
    Some users report that if you cancel the sending, then try again, it generally works on the second attempt.
    When the offending images are in a signature, I generally remove them.
    Another approach is to save the attached/embedded images and then re-attach them.
    Or you could try opening the message with Edit As New. Right-click is your friend.

  • Invalid Column Name on select from materialized view?

    Hey all, I have created this materialized view for my java to select from. For some reason when I try to select from it, I get invalid column name. Here is my mat view statement in its simplest form:
    create materialized view mv_pgridtcevcluster_property as
    select distinct clustername_ as "OBJECT_ID", CLUSTERNAME_, LICENSEMODE_
    from p_gridtcevcluster p
    order by clustername_;
    Now when I run my select statement from jdbc:
    SQL: select object_id from MV_PGRIDTCEVCLUSTER_PROPERTY
    java.sql.SQLException: Invalid column name
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
         at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3319)
         at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:1926)
         at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1515)
         at com.mchange.v2.c3p0.impl.NewProxyResultSet.getString(NewProxyResultSet.java:3342)
         at historian.objects.mgmt.udrManagerTest.gatherObjects(udrManagerTest.java:73)
    Anyone have issues with this before? It seems to throw the error sporatically, any help would be much appreciated!
    Regards,
    TimS
    Edited by: TimS on Mar 30, 2009 1:54 PM
    Nevermind, figured it out. Was using wrong column name identifier when picking values from resultset.

    Since you have "OBJECT_ID" in quotes, Oracle stores the column name literally and case sensitively, and the column name must be capitalized when referenced.
    From a regular sql*plus window, try
    select object_id from mv_pgridtcevcluster_property;
    select OBJECT_ID from mv_pgridtcevcluster_property;
    select "OBJECT_ID" from mv_pgridtcevcluster_property;What is the result from each of them?

Maybe you are looking for