Only last pm_order operation in 0PM_DS04_Q0021 query?

Hi Experts,
When I execute query 0PM_DS04_Q0021 - Outstanding Order List,which runs
over the DSO 0PM_DS04 - Maintenance Orders, Operations and Costs, I
expect to have actual and planned time by order, but for all operations
that occur in that PM order.
I went over some PM orders on IW33 transaction code in R3 system and I
compared it to query results in Business Explorer Analyzer.
After a few records I got to think that BW is just geting the actual and planned time for the last operation for that order.
Can you guve me a hint on how I can solve this?
Thanks in advance for your help,
Best Regards,
André Oliveira

Hi Experts,
When I execute query 0PM_DS04_Q0021 - Outstanding Order List,which runs
over the DSO 0PM_DS04 - Maintenance Orders, Operations and Costs, I
expect to have actual and planned time by order, but for all operations
that occur in that PM order.
I went over some PM orders on IW33 transaction code in R3 system and I
compared it to query results in Business Explorer Analyzer.
After a few records I got to think that BW is just geting the actual and planned time for the last operation for that order.
Can you guve me a hint on how I can solve this?
Thanks in advance for your help,
Best Regards,
André Oliveira

Similar Messages

  • Get only last level in SQL Hierarchy Query

    Hi,
    How to get only the last level in Oracle SQL Hierarchy Query?
    Thanks

    Hi,
    1007372 wrote:
    Hi,
    How to get only the last level in Oracle SQL Hierarchy Query?Depending on your requirements:
    WHERE   CONNECT_BY_ISLEAF  = 1 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    If you can show what you want to do using commonly available tables (such as scott.emp, which contains a hierarchy), then you don't need to post any sample data; just the results and the explanation.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0). This is always important, but especially so with CONNECT BY queries, because every version since Oracle 7 has had significant improvements in this area.
    See the forum FAQ {message:id=9360002}

  • How to find last DML operation in oracle ADF

    how to find last DML operation in oracle ADF
    Please help me
    Thanks
    Damby

    In the base EntityIml class, just override doDML() method as I said.
    (see http://docs.oracle.com/cd/E16162_01/web.1112/e16182/appendix_mostcommon.htm
    "Methods for Creating Your Own Layer of Framework Base Classes")
    So, put a some flag in the session.
    You should not call doDML() method in backing bean, it will be called by framework.
    In the backing bean, you only have to get that information from the session, as follows:
    String last_dml_op = (String)ADFContext.getCurrent().getSessionScope().get("last_dml_op");And voila...

  • ORA-14551: cannot perform a DML operation inside a query

    I have a Java method which is deployed as a Oracle function.
    This Java method parses a huge XML & populates this data
    into a set of database tables.
    I have to call this Oracle function in a unix shell script using sqlplus.
    Value returned by this function will be used by the shell script to decide
    what to do next.
    I am calling the Oracle Java function as follows in the shell script:
    echo "SELECT XML_TABLES.RUN_XML_LOADER('$P1','$P2','$P3','$P4') FROM DUAL;\n" | sqlplus $DB_USER > $LOG
    This gives error - "ORA-14551: cannot perform a DML operation inside a query".
    If I have to add a AUTONOMOUS_TRANSACTION pragma to this Java function,
    where to I add it considering, that the definition of the function is in a Java class.
    Can we do it in call spec?
    create or replace package XML_TABLES is
    function RUN_XML_LOADER(xmlFile IN VARCHAR2,
    xmlType IN VARCHAR2,
    outputDir IN VARCHAR2,
    logFileDir IN VARCHAR2) RETURN VARCHAR2 AS
    LANGUAGE JAVA NAME 'XmlLoader.run
    (java.lang.String, java.lang.String, java.lang.String, java.lang.String)
    return java.lang.String';
    end XML_TABLES;
    If not is there any other way to acheive this?
    Thanks in advance.
    Sunitha.

    If I have to add a AUTONOMOUS_TRANSACTION pragma to this Java function,You'd have to write a PL/SQL function that calls the JSP. But I would caution you about using that pragma. It does introduce tremendous complexity into processing.
    As I see it you only need a function to return the result code so why not use a procedure with an OUT parameter?
    Cheers, APC
    Of course Yoann's suggestion of using an anonymous block would work too.
    Message was edited by:
    APC

  • Sir,how to find the last DML operations

    Hi,
    Please tell me how to find the last DML Operations at least minimum 30 queries.
    Thanks in advance,

    Shared Pool is a memory location in SGA that contains SQL Statement that are submitted to Oracle for execution. This area is common to the entire database. Its not specific to user.
    So what ever Unique SQL statement that is submitted to the SQL Engine will be available here. Shared Pool has a size limit. That is defined by the parameters SHARED_POOL_SIZE and SHARED_POOL_RESERVED_SIZE. So when the Shared pool becomes full the data needs to be removed from it. That is done in FIFO basis.
    Oracle provides a visibility to this area through dictionary view V$SQLAREA. So this view will not only contain the SQL executed by you but also by every one. Even the one executed by oracle itself.
    So in my opinion what you are asking is not possible to get. You must have some logging mechanism in your application to get this information.

  • Sales Opportunity Stage Tab - Want last updated row details in query

    Dear Experts,
    I have a query as under :
    SELECT T1.Name, T1.OpprId, T1.OpenDate, T0.Step_Id, T0.Line, T0.OpprId, T0.U_status, T2.Name FROM OPR1 T0  INNER JOIN OOPR T1 ON T0.OpprId = T1.OpprId INNER JOIN [dbo].[@STAGE]  T2 ON T0.U_status = T2.Code WHERE T1.Name = 'ORDER'
    Now I want that this query should give me the last row detail in the Stage TAb of Sales opportunity. Now this query is giving me every row stage details which are put in the Stage Tab. For example in the Stage Tab of Sales Opportunity there are 4 rows of Stages, its giving me all the 4 row stages in the query. I want that only the last stage should be displayed in the query may be it's on 2 second stage or 3 rd ot 4 th. I want only last stage to be shown.
    Please advise what I need to do for the above query.
    Regards,
    Kamlesh

    Hi All,
    I have been working in a query to generate the last stage details in the query but still not able to resolve it.
    SELECT T0.Status,T0.OpprId, max(T1.Line) 'Stage',T0.OpenDate, T0.CardCode, T0.CardName, T0.Territory, T0.CloPrcnt,T1.OpprId, T1.Line, T1.OpenDate, max(T1.OpenDate) 'Open Date',T1.CloseDate, T1.Step_Id,T2.descript, T3.Name, T0.MaxSumLoc, T4.U_swl, T0.MaxSumSys, T0.U_eqno, T0.MaxSumLoc, T4.U_partno, T4.U_desc, T4.U_unit, T4.U_amt, T4.U_qty, T4.U_amt, T4.U_span FROM OOPR T0  INNER JOIN OPR1 T1 ON T0.OpprId = T1.OpprId INNER JOIN OTER T2 ON T0.Territory = T2.territryID INNER JOIN [dbo].[@STAGE]  T3 ON T1.U_status = T3.Code, [dbo].[@SALES_ENQ_ITEM]  T4 WHERE T0.OpprId = T4.U_opprNo AND T0.Status = 'O' group by T0.Status,T0.OpprId, T0.OpenDate, T0.CardCode, T0.CardName, T0.Territory, T0.CloPrcnt,T1.OpprId, T1.Line, T1.OpenDate, T1.CloseDate, T1.Step_Id,T2.descript, T3.Name, T0.MaxSumLoc, T4.U_swl, T0.MaxSumSys, T0.U_eqno, T0.MaxSumLoc, T4.U_partno, T4.U_desc, T4.U_unit, T4.U_amt, T4.U_qty, T4.U_amt, T4.U_span
    The above query is generating and giving me the Last Stage through max(T1.Line) 'Stage' field. But I want to have if any opportunity Number has 1,2,3 Stage then only Max should should which is 3 but in this query all 3 are showing.
    As per Noratam ''There are other options by checking max of the start-date and stage-key fields of the sage table''.
    I can use the Start Date which seems to be max(T1.OpenDate) 'Open Date' but how to give a formula or write a query by which only Max Date is selected as per the stage in the query.
    I think I am not able to use the Max funtion properly. Please help what is wrong with it.
    Can you please help in this regard.
    Regards,
    kamlesh
    Edited by: Kamlesh Gupta on Mar 22, 2009 11:33 PM

  • How to show only the result line of a Query result ?

    Hi Experts,
    I want to show only the result line of the Query. Is this possible in query Designer ?
    In BeX Workbook, I can hide the rows but they grow or shrink dynamically and hence it is unpredictable how many rows to suppress.
    If you have any solutions/workarounds, please reply !
    Rekha

    VBA coding can be used to display just the Result rows.
    Somthing like this - modify as needed.
    This scans the range of query results looking to find the last row, then checks those rows to see if the word Result is found or not, deleting (or you could just hide) the detail rows.  There is also a LEAF option in BEx Boolean options that returns a 1 or 0 depending on whether a row is a detail or result that could also be used to hide rows rather than looking for the presence of "Result" in a particular column
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    For rownum = 17 To 64000 Step 1
    ' col 2 is the Total Result, col 3 is the User Group result
    If Cells(rownum, 2) = "" And Cells(rownum, 3) = "" Then
    lastrow = rownum - 1
    Exit For
    End If
    Next
    For rownum = lastrow To 17 Step -1
    If Cells(rownum, 2) = "Result" Or Cells(rownum, 3) = "Result" Then
    Rows(rownum).Hidden = False
    Else
    ' Rows(rownum).Hidden = True
    Rows(rownum).EntireRow.Delete
    End If
    Next
    End Sub

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • Set operations in AdHoc Query - user settings

    Hi
    I am checking out the Set operations in AdHoc Query.  The documentation says you should save the setting "Set operations shown" as a user setting.  Could anyone advise me where this is set?  I can't find a parameter for it, and can't find it in the regular settings.
    Any help appreciated.
    Kirsten

    The save is automatic upon exiting Ad Hoc query.  Once you do "Show Set Operations", work on a query, save and exit, the next time you open Ad Hoc query, Set Operations tab is displayed by default.
    Regards,
    RN.

  • My ipod touch 4th gen battery only lasts for 3 hours with wifi and brightness fully down

    My ipod touch 4th gen battery life if asful only lasts a maxium of 3 hours with wifi turned off and brightness fully down any suggestions?

    You can try restoring the iPod. However, it could be that the battery is going bad.
    Apple will exchange your iPod for a refurbished onewith a new battery for $79. They do not fix yours.
    Apple - iPod Repair price              
    A third-party place like the followingwill rplace it for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the battery yourself if you are up to it. You can purchace a replacement battery for about $10
    iPod Touch Repair – iFixit

  • My battery only lasts aboround 3 hours

    My battery only lasts around 3 hours

    Don't bump old threads.  You have an active thread right now.  I doubt Melle is going to check this thread anytime soon.

  • My new Macbook Pro only lasts 3 hours.

    I bought a new 15-inch Macbook Pro in late June when the newer versions with better battery life were introduced. Unfortunately, my battery always lasts less than 3 hours. I lowered most of the default energy preferences (such as dimming the screen enormously) and turned off my wireless port, but it still only lasts 3 hours.
    Did I accidentally receive an old Macbook Pro or what? Is the 7 hour battery life just a great exaggeration?

    Well... it would be easy enough to tell if you have the older version. If the bottom of your case is a single piece of aluminum, you have the new one... if it is split in the middle with a latch (for the removable battery) you would have the old one. Apple, like everyone else, gives a "best case" scenario when it comes to battery life. Dimming the display helps... but the way you use your machine will have a great impact as well. If you are doing things that require more processing power, you will eat away at your charge faster. Also... does it actually last three hours or are you going by the estimate provided in the menu bar? The estimate is calculated by the load in your system at any given time. If you just have your machine on... but not doing anything, the estimate will be much longer than if you're running applications. To get a better idea of your usage, you should view the percentage remaining (vs. the time). The percentage remaining is the actual percentage remaining vs. an estimate.

  • Battery Life on brand new macbook pro 15 inch i5 only lasting 3 hours

    The battery on my macbook pro is only lasting 3 hours with light use...If i'm watching a video or on a game it lasts maybe an hour or 2. I charged it fully when I first got it out of the box 2 days ago.
    I have tried calibrating it which worked a little bit. But still nothing like the promised 8 hours. Not even near 6 hours.
    Can anybody help?

    I tell you how to maximise it mate .. Fully charge your battery and leave it on charge for 2 hours .and then create the minimum power consumption scenario ( kill bluetooth , minimise brightness , kill all apps etc ) AND THEN remove the plug .. use at this state until about 70% charge and continuously monitor the capacity like I mentioned earlier when you see it hit a high, plug it in you will see now that will become your permanent capacity .. allow full charge and leave it plugged for a day . .repeat the same .. after about a week now this time do the same but reduce down to the 40% range and always plug in at a high capacity point..you will train you r battery this way ..
    I am glad I could help .. altho it took a bit of fighting the external obstructions it's all good
    take care ,,

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • Why does my MacBook Pro's battery only lasting about 30 minutes since upgrading to OS 10.8?

    I had absolutely no battery issues with my new MacBook Pro 15 inch until I upgraded to the new OS Mountain Lion. Now, my laptop is hot—CPU Heatsink, 135 degrees, and enclosure base 93-95 degrees. Additionally, the battery now only lasts about 30-45 minutes on a full charge due to the fans running from 2000 to 3500 RPMs. Someone else have the same issues?

    Is the 135 degrees Celsius?  If so, that is very hot indeed.  Fans always run at a minimum of 2000 RPM. At this temp, fans should be running at something like 6000 RPM!  Something is heating up your computer.  In Activity Monitor, with "All Processes" selected, which processes are using the most CPU, and how much are they using?
    If the temperature is in Farenheit, this is not so very hot and the problem with your battery is elsewhere.
    Have you tried Resetting the System Management Controller ... ?
    charlie

Maybe you are looking for

  • Can I create a folder that will automatically update files changed on a USB stick?

    Hi, I am just wondering if there is a way to do this. here's the situation, and what I'd like to happen. I have a folder on a USB thumb drive with files in A file within the set of folders is changed (on, for example, a college computer) When I conne

  • Unable to import Business Object in DQE

    I've some prob with "importing business Objects" in SAP Enterprise Portal I've EP6.0 SP16 installed. While importing the Business Object from "BW" System I expand the BW Node but alas! dont get any BO in it.. It shows a message "Loading...." and hang

  • Can't get unit to power on after charging.

    Unit appears to be fully charged on computer; I can see the green light indicator. But when I pull it off, I can't get my iPod to power on. I've had the unit for a few years and haven't had any problems like this. I've already "restored" it and I'm l

  • How to tranfer changes in the sales order when the delivery is created

    Can anyone please help for the following scenario: Sales Order created --> Delivery created --> Customer calls to make changes in Sales Order. In this case what customizing is required so that the changes in Sales Order (including 1. qty & 2. deliver

  • CreateJS MouseEvent

    Hi, I am trying to convert an AS3 file to HTML5. The createJS extension for flash seems like a great tool but I am experiencing some difficulties. My application cycles through an xml list of buttons, creates an object for each, collects the JS file