Need Suggestions on the below posted message(SID)

Hi all,
There is an InfoObject ZPRINTDOCC, it never had navigational attributes. but this was a daily load and had millions of records. Now as per the requirement we had to add 2 attributes to this InfoObject and use it as Navigational Attributes. so we had included them in the development and tranported this to production. As this ZPRINTDOCC never had X and Y Tables, this transports took days to get transported as to create SID's and etc for this million's of records. So we finally cancelled this transport
Today we have another requirement, we have to add the 4 fields to an existing InfoObject ZCTRACCC(Contract Account), this already has an X and Y tables, and lot of Navigational Attributes, so in this case if we add 4 new fields to ZCTRACCC and use them as time dependent/ Navigational Attributes, will this transport from dev to prod also take days to create SID's ???
Currently the number of records present in this ZCTRACCC is 200,000.
Please give me ur comments.
Thanks,
Sowrabh

Hi Aduri,
Thanks for you reply,
For ZPRINTDOCC infoobject we dint have X/Y Tables, but for ZCTRACCC infobject we have existing X/Y Tables. And also for ZCTRACCC we have many existing Navigational Attributes, So adding 5 more attributes for this ZCTRACCC InfoObject, which have to be used as Time Dependent Navigational Attributes, will it take more time SID creation in this scenario ???
Can you please tel me what is PRS ??? TR means Tranport Request i suppose???
Am i rite...
Thanks in Advance,
Sowrabh

Similar Messages

  • Need help on the below query.

    Hi All,
    I've a query given below..
    SELECT W.WONUM,
         W.STATUS,
         WS.CHANGEDATE,
         EH.OLD_RATE
         FROM
         WORKORDER W,
         WOSTATUS WS,
         ESTIMATE_HEADER@GQMFOF EH
    WHERE WS.CHANGEDATE BETWEEN '01-Oct-2009' AND '1-Nov-2009'
    AND W.WONUM = WS.WONUM
    AND EH.OLD_RATE = 'N'
    AND WS.WOSTATUS = 'CLOSE';
    I would like to get All the data which status =closed in the month of Oct for Old rate,
    So for this i am writing the query above. But not getting the o/p.
    It is giving me that " Table/View doesn't exist.
    There 2 schemas MAXIMO,GQMMGR..
    DBlinks are GQMFOF,MAXFOFNC..
    Can anyone help me while writing the above query...
    Regards,
    gr.

    A question was asked in your other thread. But the problem was you dint care to give an answer.
    Dont open duplicate post.
    I need help on the below problem..

  • Need suggestion on the entire hardware specs for running Oracle VM 2.2.2

    Hi,
    I need some suggestion on the preffered hardware specs which can be given to a customer, he wants to run Oracle VM 2.2.2 or Oracle VM 2.2.1.
    He has already used Cisco UCS with NetApp storage for OVM 2.2.2/2.2.1 and has being unsucessful with lots of issues creeping up. Thus now need suggestion on the hardware spec which is well tested and works fine with Oracle VM 2.2.2/2.2.1 and he wants to run Oracle Fusion Middleware on top of it.
    Any poniters to it will be highly appreciated.
    Regards,
    Sk

    887469 wrote:
    Hi Avi,
    thank you for that information !
    Yes. But only for the UCS gear that uses the converged FCoE adapters. If you have standard Ethernet/FC adapters, then it should be OK.We do use the "M71KR-Q QLogic Converged Network Adapter" with UCS. According to you this is an unsupported combination together with OVM 2.2.1, right ?
    Now the "Oracle VM 2.2 Validated Configuration Details" shows UCS B200 M1 with M71KR-Q as a valid configuration. Does 2.2 mean OVM 2.2.0 and this is supported, but 2.2.1 / 2.2.2 is not ?
    Please clarify since this confuses me.
    Best Regards and TIAAny news for me, please ?
    THX

  • I need help on the below problem..

    Hi All,
    I need help on the below problem..
    I've 2 Schemas called
         1. MAXIMO and DBLink is GQMFOF
         2. GQMMGR adn DBLink is MAXFOFNC
    Now i would likw to retrive the data from both the schemas,
    i.e some columns from WORKORDER table of maximo schema and some columns from ESTIMATE_HEADER table
    of GQMMGR schema..
    I'm trying to get the data using DB links, but it is giving TABLE/VIEW doesn't exist.
    Please help me on this.
    Regards,
    gr.

    Does your user has the SELECT privelage granted for accessing those tables?

  • Need help on the below query or Pl-SQL

    Hello Every one,
    Please let me know if some one can help me out with the below scenario either in pl-sql or sql.
    Source Data:
    0000253800     0.25          0845A     0900A
    0000253800     1          0900A     1000A
    0000253800     1          1300P     1400P
    0000253800     1          1500P     1600P
    0000253800     1          1600P     1700P
    Output needed:
    0000253800     1.25          0845A     1000A
    0000253800     1          1300P     1400P
    0000253800     2          1500P     1700P
    Thanks in Advance....
    Edited by: user12564103 on Dec 11, 2011 5:54 PM

    Hi,
    Welcome to the forum!
    Depending on your data and your requirements:
    WITH     got_times     AS
         SELECT     column_1, column_2, column_3, column_4
         ,     TO_DATE ( substr (column_3, 1, 4)
                   , 'HH24MI'
                   )     AS time_3
         ,     TO_DATE ( SUBSTR (column_4, 1, 4)
                   , 'HH24MI'
                   )     AS time_4
         FROM     table_x
    ,     got_grp_id     AS
         SELECT     column_1, column_2, column_3, column_4
         ,     time_3, time_4
         ,     time_4 - SUM (time_4 - time_3) OVER ( PARTITION BY  column_1
                                        ORDER BY         time_3
                                      )     AS grp_id
         FROM     got_times
    SELECT       column_1
    ,       SUM (column_2)     AS sum_2
    ,       MIN (column_3) KEEP (DENSE_RANK FIRST ORDER BY time_3)
                        AS min_3
    ,       MAX (column_4) KEEP (DENSE_RANK LAST  ORDER BY time_4)
                        AS max_4
    FROM       got_grp_id
    GROUP BY  column_1
    ,       grp_id
    ORDER BY  column_1
    ,       grp_id
    ;Whenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data, as well as the results you want from that data. Explain, with specific examples, how you get the results you want from that data.
    Always say which version of Oracle you're using. The query above will work in Oracle 9.1 (and higher).
    Since this is your first thread, I'll do this for you:
    CREATE TABLE     table_x
    (     column_1     NUMBER
    ,     column_2     NUMBER
    ,     column_3     VARCHAR2 (5)
    ,     column_4     VARCHAR2 (5)
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, .25, '0845A', '0900A');
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1,   '0900A', '1000A');
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1,   '1300P', '1400P');
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1,   '1500P', '1600P');
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1,   '1600P', '1700P');Column_1 identifes a day.
    Column_2 is an amount that I need to total.
    Column_3 and column_4 are starting and ending times. We can assume that they are all valid times (in 'HH24MI' format, plus a redundant 'A' or 'P') on the same day, column_3 is always less than column_4, and that the range of two rows for the same value of column_1 never overlap. Column_4 of one row may be equal to column_3 of another rows with the same column_1, but it will never be greater.
    Each row of the output represent a contiguous group of rows (each ending exactly when the next one begins) with the same column_1, with the common column_1, the total of column_2, and the range of the group.
    For example, the first two rows for a single group, because they have the same value for column_1, and one ends exactly when the other begins (at 9:00 AM). This group represents day 253800, from 8:45 AM to 10:00 AM. The totla of column_2 fro this group is .25 + 1 = 1.25.
    The next row (from 1:00 PM to 2:00 PM) is a group all by itself, because there is a gap one either side of it separating it from its nearest neighbor on the same day."
    Of course, I'm guessing at lots of things.
    Edited by: Frank Kulash on Dec 11, 2011 9:44 PM
    Changed TO_DATE calls.
    Edited by: Frank Kulash on Dec 11, 2011 9:52 PM
    Added sample question.

  • Need to get the number of messages displayed

    Dear All,
    I need to know whether the message area is having any messages or not. If messages are there then i need to get the exact number of the messages. I found the count in the class CL_WDR_MESSAGE_AREA. But the count is the private attribute. Is there any methods available to get the count of the number of mesages.
    Thanks & Regards,
    Raghuram K.R.

    Hi raghuram
    below is the code snippet to get the count of message displayed ..
    other than this what is your looking for Exactly. pls be clear so that we can help you out .
    *   get message manager
      DATA lo_api_controller     TYPE REF TO if_wd_controller.
      DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
      DATA :lt_messages_mgr TYPE if_wd_message_manager=>ty_t_messages,
            lv_string1 TYPE string ,
            lv_string2 TYPE string,
            lv_count TYPE i .
    *Message Manager Reference  
      lo_api_controller ?= wd_this->wd_get_api( ).
      lo_message_manager = lo_api_controller->get_message_manager( ).
    *   report 2  message
      lv_string1 = lo_message_manager->report_success( message_text  = 'test 1').
      lv_string2 = lo_message_manager->report_success( message_text  = 'test 2').
    *  get the list of message
      lt_messages_mgr = lo_message_manager->get_messages( ).
    *  count the no of message
      DESCRIBE TABLE lt_messages_mgr LINES lv_count.
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Oct 19, 2011 1:17 PM

  • Need information on the transfer posting from WM To IM

    Hello All,
    Is there any scenario in WM and IM, where you are doing the transfer posting in MIGO_TR and creating the material doc for it. Now the stock moves in IM but when u create TO for the material doc and confirm the TO. That's where the stock moves in WM.
    1) MB1B-311 Movt type---create TO for the mat Doc---i am moving the stock from one storage location to another location...then it moves the stock in IM, but i create TO and confirm in LT06...that's where, the stock moves in WM.
    2) MB1B---321 MOVT TYPE...LT06...the stock category changes in IM and WM respectively...
    I know the above scenarios work fine but there is any scenarios in SAP, where the posting happens first in WM and then in IM.
    i need the clarity on the below scenarios, which is similar in case.
    transfer-WM to IM
    Backflushing of WIP to an interim storage location?
    Thanks,

    As Manish mentions above, when you are performing a posting change in a WM-managed SLOC, the preferable method is to use LQ02.  This is because you already know the exact quant involved in the posting change and if your configuration is set properly, it is a single transaction for the end user.
    If you start with MIGO, you must then follow on with LU04 as a second step to convert the Posting Change Notification in the foreground - otherwise you risk carrying out a posting change on the wrong quant!
    You will first need to create custom WM movement types for the constellation of movements you want to perform these posting changes with (e.g., U > S, S > U, etc.).  For the examples I just named you can copy the appropriate 3xx WM movement as a template.  I would recommend that you set these movement types for automatic creation, automatic confirmation and post to the same bin.
    In the IMG you can go to WM > Interfaces > IM > Define Posting Changes and link the IM and WM movements and also the source/destination stock categories (or special stock).  Then in LQ02 you can simply enter the warehouse, storage type, bin and WM movement involved and you should be able to tick the quant(s) to change and post.
    One limitation of using LQ02 for initiating the posting change in WM is that you must transform the entire quant.  If, for example, you have a quant with 100 EA and only 41 EA are to be blocked, you should first quickly perform a bin-to-bin movement of the stock to be blocked to some other bin, perform the posting change, and then move it back.  This has been my experience.  If someone knows a way to do a partial posting change using LQ02 I'd love to know how to do it. 
    Good Luck!
    Jason

  • Need Suggestion for the Recurrence appointment design

    Hello All, 
    We are planning to design  a feature where doctor can create appointment  with the patients on the recurrence basis like Daily, Weekly,yearly etc. 
    Following features also needs to be present 
    1. User can edit the recurrence appointment and that changes must apply to all 
    2. user can go and change the details for the single appointment 
    We had a discussion  for this and  identified the below schema to store the details..
    TABLE  Appointment                   
    AppointmentID,                         
    DocID, 
    PatientID, 
    FromTime,
    ToTime, 
    IsRecurrence, 
    RecurrenceID
    TABLE RECURRENCE
    SeqID,
    RecurrenceID, 
    FromTIme, 
    ToTime
    So the logic is for each recurrence we will create a entry in table recurrence and will store the details accordingly 
    Let me know if there is any flaw in this or a better design to achieve this .
    Regards,
    Rajesh

    I'd do it something like this...
    These would be my tables...
    CREATE TABLE Appointments (
    AppointmentID INT NOT NULL IDENTITY(1,1) Primary Key,
    DoctorID INT NOT NULL,
    PatientID INT NOT NULL,
    AppointmentTypeID INT NOT NULL,
    StartDateTime DATETIME NOT NULL,
    DurationUnits INT NOT NULL, -- Let's say 15 min blocks...
    Frequency VarChar(10) NOT NULL CHECK (Frequency IN ('Daily','Weekly','Monthly','Quartly','Annually')),
    NumOfOccurrences INT NOT NULL)
    CREATE TABLE Schedules ( AppointmentID INT NOT NULL,
    DoctorID INT NOT NULL,
    PatientID INT NOT NULL,
    BegDateTime DATETIME NOT NULL,
    EndDateTime DATETIME NOT NULL)
    Then I'd create a stored procedure similar to the following (not I didn't code this as a stored proc so that it would be easier to test)
    I've added in-line comments to make it easier to understand...
    IF OBJECT_ID ('tempdb..#TempAppt') IS NOT NULL DROP TABLE #TempAppt
    CREATE TABLE #TempAppt (
    AppointmentID INT NOT NULL Primary Key,
    DoctorID INT NOT NULL,
    PatientID INT NOT NULL,
    AppointmentTypeID INT NOT NULL,
    StartDateTime DATETIME NOT NULL,
    DurationUnits INT NOT NULL, -- Let's say 15 min blocks...
    Frequency VarChar(10) NOT NULL CHECK (Frequency IN ('Daily','Weekly','Monthly','Quartly','Annually')),
    NumOfOccurrences INT NOT NULL)
    IF OBJECT_ID ('tempdb..#TempSched') IS NOT NULL DROP TABLE #TempSched
    CREATE TABLE #TempSched (
    DoctorID INT NOT NULL,
    PatientID INT NOT NULL,
    BegDateTime DATETIME NOT NULL,
    EndDateTime DATETIME NOT NULL)
    IF OBJECT_ID ('tempdb..#edt') IS NOT NULL DROP TABLE #edt
    CREATE TABLE #edt (edt DATETIME)
    -- This is the appointment data that you want to add to the database
    INSERT INTO #TempAppt VALUES (1,5,5,5,'20120703 17:15:00',3,'Weekly',20)
    --Declare the necessary variables andset their values
    DECLARE @aid INT, @did INT, @pid INT, @sdt DATETIME, @f CHAR(2), @du INT, @edt DATETIME, @noc INT, @sql VARCHAR(MAX)
    SELECT TOP 1
    @aid = AppointmentID,
    @did = DoctorID,
    @pid = PatientID,
    @sdt = StartDateTime,
    @du = DurationUnits * 15, -- 15 mins per unit
    @f = CASE
    WHEN Frequency = 'Daily' THEN 'dd'
    WHEN Frequency = 'Weekly' THEN 'wk'
    WHEN Frequency = 'Monthly' THEN 'mm'
    WHEN Frequency = 'Quartly' THEN 'qq'
    WHEN Frequency = 'Annually' THEN 'yy'
    END,
    @noc = NumOfOccurrences
    FROM #TempAppt
    ORDER BY AppointmentID
    -- A little dynamic SQL allows to dynamically create a DATADD function
    SET @sql = 'INSERT INTO #edt VALUES (DATEADD(' +@f + ', ' + CAST(@noc AS VARCHAR(5)) + ', ''' + CONVERT(VARCHAR(30), @sdt, 121)+ '''))'
    EXEC (@sql)
    --select @sql
    SELECT @edt = edt FROM #edt
    UPDATE #edt SET edt = @sdt
    -- Creats a loop that creates the seporate schedule occurances required by the "appointment" data
    WHILE @sdt < @edt
    BEGIN
    INSERT INTO #TempSched VALUES (@did, @pid, @sdt, DATEADD(mi, @du, @sdt))
    SET @sql = 'UPDATE #edt SET edt = (DATEADD(' +@f + ', 1, ''' + CONVERT(VARCHAR(30), (SELECT edt FROM #edt), 121)+ '''))'
    EXEC(@sql)
    SELECT @sdt = edt FROM #edt
    END
    -- Checks to seeis the newly created schedul conflicts with any pre-existing schedules.
    -- If there is a conflict a warning will be displayed and the new data will not be added to the physical tables.
    -- If there is no conflict exists, both the Appointments and Schedules tables will be updated.
    IF EXISTS (
    SELECT 1
    FROM Schedules s
    INNER JOIN #TempSched ts
    ON s.DoctorID = ts.DoctorID
    AND (ts.BegDateTime BETWEEN s.BegDateTime AND s.EndDateTime OR
    ts.EndDateTime BETWEEN s.BegDateTime AND s.EndDateTime))
    BEGIN
    SELECT 'There is a conflict with a pre-existing schedule for the doctor'
    END
    ELSE
    IF EXISTS (
    SELECT 1
    FROM Schedules s
    INNER JOIN #TempSched ts
    ON s.PatientID = ts.PatientID
    AND (ts.BegDateTime BETWEEN s.BegDateTime AND s.EndDateTime OR
    ts.EndDateTime BETWEEN s.BegDateTime AND s.EndDateTime))
    BEGIN
    SELECT 'There is a conflict with a pre-existing schedule for the patient'
    END
    ELSE
    BEGIN
    INSERT INTO Appointments (DoctorID, PatientID, AppointmentTypeID, StartDateTime, DurationUnits, Frequency, NumOfOccurrences)
    SELECT DoctorID, PatientID, AppointmentTypeID, StartDateTime, DurationUnits, Frequency, NumOfOccurances
    FROM #TempAppt
    INSERT INTO Schedules ( AppointmentID, DoctorID, PatientID, BegDateTime, EndDateTime)
    SELECT
    (SELECT MAX(AppointmentID) FROM Appointments WHERE DoctorID = @did AND PatientID = @pid) AS AppointmentID,
    DoctorID, PatientID, BegDateTime, EndDateTime
    FROM #TempSched
    SELECT * FROM Appointments WHERE AppointmentID = @aid
    SELECT * FROM Schedules WHERE AppointmentID = @aid
    END
    Basically it simply takes the appointment info, throws into a temp table, creates a schedule based on that info, validates the schedule based on existing schedules to avoid conflicts.
    If there is a conflict you get a warning. If not the appointment gets added along with the schedule.
    Once the schedule is created it's a simple matter to go in and manually edit individual occurrences.
    If you want to change and entire series, simply delete everything WHERE AppointmentID = ??? AND BegDateTime > CURRENT_TIMESTAMP and create a new appointment.
    HTH,
    Jason
    Jason Long

  • Need Suggestion on the Design of a New Workbench

    Hi All,
    I need a suggestion on the design of agreement workbench..
    The requirement goes this way...
    We will have workbench main screen, where header and line details will be entered manually ( or sourced from legacy system). On the main screen, there will be few buttons, clicking upon which will open the subforms (around 6-8 screens) or supporting details (the data can be entered or interfaced).
    We have two approaches.
    1. Keeping everyithing in a single .fmb file
    2. Creating one .fmb file for the main screen and different .fmb files for each of the individual screens and calling them from the main screen.
    Please suggest the best approach considering all the factors like maintanance, user friendlyness, switching b/w the main and child forms and all other possible factors which can make difference.
    Thanks in advance!.
    Thanks,
    Pavan

    Hello,
    All I can say is that small modules are faster to load and easyest to maintain.
    Francois

  • Need help in the below command excution

    Hi Champs,
    Can any one help with the below command, It is not working.
    Get-CsUser | Where-Object {$_.dialplan -eq "USDAL"} | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
    Regards
    Vijendhar

    You could try something like: 
    $userlist = Get-CsUser -ResultSize Unlimited
    foreach ($user in $userlist)
    if ($user.dialplan -eq $Null)
    $pool = (Get-csdialplan | Where-Object {$_.Identity -like ("*" + $user.RegistrarPool)})
    if ($pool.length -ge "1") {write-host ("Pool simple name: " + $pool.simplename + ", Identity: " + $pool.identity)}
    if (($pool.simplename -eq "USDal") -or ($pool.identity -eq "USDal"))
    Write-host "Please Grant location policy to: $user.Displayname"
    # Get-csuser $user.identity | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
    $pool = $Null
    Use at your own risk as I haven't had a chance to test, I have commented out the grant so you can test prior to changes.
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • Need to merge the below two rows

    Hi,
    I have a sample data as shown below:
    ID     OBJID     ACT_CODE     ADDNL_INFO     ENTRY_TIME
    2523540     333003736     900     from WIP default to Queue PSD1.     1/3/2012 15:07
    2523540     333003271     100     100 from Queue PSD1 to WIP For assigment. 1/3/2012 15:43
    2523540     333003744     900     900 from WIP default to Queue PSD1.     1/3/2012 15:49
    2523540     333004966     100     100 from Queue PSD1 to WIP For assigment.     1/3/2012 16:04
    I need to merge the first two rows and get a single record for each "from" and "to" as shown below (desired output)
    ID_NUMBER     ADDNL_INFO     ENTRY_TIME     EXIT_TIME     TOTAL TIME
    2523540     PSD1     1/3/2012 15:07     1/3/2012 15:43     0.025069444
    2523540     PSD1     1/3/2012 15:49     1/3/2012 16:04     0.010231481
    I have used function on the addnl_info column to display only the name of the queue "PSD1"
    (SUBSTR(ADDNL_INFO, INSTR(ADDNL_INFO, 'PSD1'), LENGTH('PSD1'))) QUEUE_NAME
    Can any one help me out in getting the desired output.

    Below is a solution to your query:
    drop table test_Table;
    create table test_Table
      ID          number,
      objid       number,
      act_code    number,
      addl_info   varchar2(500),
      entry_time  timestamp
    insert into test_Table values (2523540, 333003736, 900, 'from WIP default to Queue PSD1.', to_timestamp('1/3/2012 15:07', 'DD/MM/YYYY HH24:MI'));
    insert into test_Table values (2523540, 333003271, 100, 'from Queue PSD1 to WIP For assigment.', to_timestamp('1/3/2012 15:43', 'DD/MM/YYYY HH24:MI'));
    insert into test_Table values (2523540, 333003744, 900, 'from WIP default to Queue PSD1.', to_timestamp('1/3/2012 15:49', 'DD/MM/YYYY HH24:MI'));
    insert into test_Table values (2523540, 333004966, 100, 'from Queue PSD1 to WIP For assigment.', to_timestamp('1/3/2012 16:04', 'DD/MM/YYYY HH24:MI'));
    select * from test_table;
    select id, addl_info, entry_time, exit_time, total_time
    from
    select a.id, a.objid, 'PSD1' addl_info, a.entry_time, lead(a.entry_time, 1, null) over (order by a.entry_time) exit_time,
           lead(a.entry_time, 1, null) over (order by a.entry_time) - a.entry_time total_time, DECODE(a.act_code, 900, 'D', 'ND') disp
      from test_Table a
    where a.id = 2523540
    where disp = 'D';
    ID             ADDL_INFO            ENTRY_TIME          EXIT_TIME                     TOTAL_TIME
    2523540     PSD1     01-MAR-12 03.07.00.000000000 PM     01-MAR-12 03.43.00.000000000 PM     0 0:36:0.0
    2523540     PSD1     01-MAR-12 03.49.00.000000000 PM     01-MAR-12 04.04.00.000000000 PM     0 0:15:0.0I see a shortcoming in the design:
    1. For "WIP default to Queue PSD1" there are two records, both containing different OBJID but same ID, which in ideal case should not happen. You MUST have a COMPOSITE key on ID and OBJID; This shall help you to identify the distinct records.
    My solution is not perfect as it is based on the ENTRY TIME. The reason being SIMPLE Ordering by the OBJID would not lead to a correct difference in the Transaction Time (referred by you as TOTAL_TIME.); Hence, for this reason I had to use ENTRY_TIME to correctly get the total_time.
    If you wish you may follow the solution else I shall always recommend to change the Table Design and follow the correct approach.
    If you are changing the Table design then following shall be a solution:
    select id, addl_info, entry_time, exit_time, total_time
    from
    select a.id, a.objid, 'PSD1' addl_info, a.entry_time, lead(a.entry_time, 1, null) over (order by a.id, a.objid) exit_time,
           lead(a.entry_time, 1, null) over (order by a.entry_time) - a.entry_time total_time, DECODE(a.act_code, 900, 'D', 'ND') disp
      from test_Table a
    where disp = 'D';Regards,
    P.

  • I'm trying to fix the below error message but not get success..

    Can someone help me to resolve the following error message..
    The error is coming while Update Statistics runs. 
    Message
    Executed as user: \SqlAdmin. ...ssary...      [_WA_Sys_00000008_0425A276], update is not necessary...      0 index(es)/statistic(s) have been updated, 6 did not require update.     Updating [dbo].[MSreplication_monitordata]
         [nc2MSreplication_monitordata], update is not necessary...      [nc6MSreplication_monitordata], update is not necessary...      0 index(es)/statistic(s) have been updated, 2 did not require update.
        Updating [dbo].[MSsync_states]      [ucMSsyncstates], update is not necessary...      [_WA_Sys_00000002_0519C6AF], update is not necessary...      [_WA_Sys_00000003_0519C6AF], update is not necessary...
         0 index(es)/statistic(s) have been updated, 3 did not require update.     Updating [dbo].[MSsubscriptions]      [ucMSsubscriptions], update is not necessary...      [iMSsubscriptions], update is not
    necessary...      [iMSsubscriptions2], update is not necessary...      [_WA_Sys_00000002_060DEAE8], update is not necessary...   ...  The package execution fa...  The step failed.

    As v.vt says, the message is truncated, and the actual error message appears to have been lost.
    Does this happens repeatedly, or was it only the most recent execution that failed?
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Need explanation on the below behavior of rownum.

    Hi,
    I have a normal table employee with 4 columns(id,name,age,salary).
    I am using the below queries on it.
    What is the reason that query 1 and 4 gives value whereas 2 and 3 doesn't??
    Can someone explain this behaviour of rowwnum?
    1) select rownum,emp.* from employee rownum = 1; --gives value
    2) select rownum,emp.* from employee rownum = 1; --doesn't
    3) select rownum,emp.* from employee rownum > 1; --doesn't
    4) select rownum,emp.* from employee rownum < 5; --gives value

    Manoj0408 wrote:
    hi Nicolas,
    the second query should have been
    2) select rownum,emp.* from employee rownum = 2 or 3 or 4 anything greater than 1
    if i put this why dont this returns any row?
    3) For third query also there are values for rownum > 1 ie .2,3,4,5 etc..
    so this should reurn other rows except 1 ie greater than 1.
    No, you still don't understand.
    Rownum is not an immutable attribute of a row.  It is assigned as the result set is being built.
    So the first row that makes it through the other filters is assigned rownum 1.  It is then evaluated against the rownum condition.  Is it = 2 (query 2) ?  No.  Is it > 1 (qeury 4)? No.  So it is rejected.
    The next row up is then assigned rownum 1.  It is then evaluated against the rownum condition.  Is it = 2 (query 2) ?  No.  Is it > 1 (qeury 4)? No.  So it is rejected.
    The next row up is then assigned rownum 1.  It is then evaluated against the rownum condition.  Is it = 2 (query 2) ?  No.  Is it > 1 (qeury 4)? No.  So it is rejected.
    The next row up is then assigned rownum 1.  It is then evaluated against the rownum condition.  Is it = 2 (query 2) ?  No.  Is it > 1 (qeury 4)? No.  So it is rejected.
    See how this could go on forever?
    By the way, on my system, none of your queries work at all.  They are missing the keyword "WHERE".

  • Need to change the standard error message when no data found in a window

    Hi All,
    We have a button in our screen, on clicking we show a window with details from a view for the selected record in the screen using master-detail relationship.
    But, if i dont have any data to display, it is giving standard message,
    " FRM-40350 Query caused no records to be retrieved " in a seperate window,
    And if i click on Ok then the window is opening up with no records/data.
    My Requirement is to
    1. I need to show a custom message(some user friendly mesg) instead of standard mesg
    2. And the window should not open at all.
    I tried putting with :system.message_level=5 to suppress the standard mesg. But how we can achieve other two requirements.
    And this should happen at block level only not at form level.
    Please suggest me in this.
    Thanks
    Pavan

    Hi,
    No, I have just put my original code.
    This is what i have tried based on our suggestion.
       BEGIN
              IF event = 'WHEN-BUTTON-PRESSED'
                   --AND cnt <> 0
              THEN  
              GO_BLOCK('XXSCP_GBL_CUST_PEG_V');
          EXECUTE_QUERY;
          l_chr_so := :xxscp_gbl_cust_peg_v.sales_order_number;
          fnd_message.DEBUG('SO:'||l_chr_so);                                                                    
          :parameter.p_excep_detail:='FALSE';
              IF l_chr_so IS NOT NULL
                   THEN
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_CON');
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_STK');
              app_window.set_window_position('XXSCP_GBL_CUST_PEGGING_WIN',
                                             'CASCADE',
                                             'XXSCP_GBL_EXCEP_DETAILS_WIN');     
          fnd_message.DEBUG('xx');                                                                    
          END IF;                                        
          ELSE
              NULL;
              END IF;
        EXCEPTION
             WHEN OTHERS
             THEN
             NULL;
       END;I can see, its not going to IF conditon, stil the window pops up.
    Thanks
    Pavan

  • Need help with the following console messages...

    Hello,
    I wanted to know what these messages mean in the Console app. I've had two of these system errors in a row and I would like to know that they mean. They seem to be related to the GPU, and manifest by showing a color spinwheel followed by a complete system crash.
    What do you think?
    1/13/12 12:06:33.246 AM sandboxd: ([108]) DumpGPURestart(108) deny file-write-create /Library/Application Support/SubmitDiagInfo
    1/13/12 12:06:33.288 AM sandboxd: ([108]) DumpGPURestart(108) deny ipc-posix-shm apple.shm.notification_center
    1/13/12 12:06:33.289 AM sandboxd: ([108]) DumpGPURestart(108) deny ipc-posix-shm apple.shm.notification_center
    1/13/12 12:06:33.290 AM sandboxd: ([108]) DumpGPURestart(108) deny ipc-posix-shm apple.shm.notification_center
    1/13/12 12:06:33.291 AM sandboxd: ([108]) DumpGPURestart(108) deny ipc-posix-shm apple.shm.notification_center
    1/13/12 12:06:33.304 AM sandboxd: ([108]) DumpGPURestart(108) deny ipc-posix-shm apple.shm.notification_center
    1/13/12 12:06:33.322 AM sandboxd: ([108]) DumpGPURestart(108) deny ipc-posix-shm apple.shm.notification_center
    1/13/12 12:06:33.323 AM sandboxd: ([108]) DumpGPURestart(108) deny network-outbound /private/var/run/mDNSResponder
    1/13/12 12:06:33.324 AM sandboxd: ([108]) DumpGPURestart(108) deny file-read-data /private/etc/hosts
    1/13/12 12:06:33.325 AM sandboxd: ([108]) DumpGPURestart(108) deny file-read-data /private/etc/hosts
    1/13/12 12:06:33.343 AM sandboxd: ([108]) DumpGPURestart(108) deny ipc-posix-shm apple.shm.notification_center
    1/13/12 12:06:33.345 AM sandboxd: ([108]) DumpGPURestart(108) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 8:34:16.596 PM sandboxd: ([128]) DumpGPURestart(128) deny file-write-create /Library/Application Support/SubmitDiagInfo
    1/15/12 8:34:16.638 PM sandboxd: ([128]) DumpGPURestart(128) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 8:34:16.645 PM sandboxd: ([128]) DumpGPURestart(128) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 8:34:16.647 PM sandboxd: ([128]) DumpGPURestart(128) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 8:34:16.648 PM sandboxd: ([128]) DumpGPURestart(128) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 8:34:16.649 PM sandboxd: ([128]) DumpGPURestart(128) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 8:34:16.665 PM sandboxd: ([128]) DumpGPURestart(128) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 8:34:16.667 PM sandboxd: ([128]) DumpGPURestart(128) deny network-outbound /private/var/run/mDNSResponder
    1/15/12 8:34:16.667 PM sandboxd: ([128]) DumpGPURestart(128) deny file-read-data /private/etc/hosts
    1/15/12 8:34:16.668 PM sandboxd: ([128]) DumpGPURestart(128) deny file-read-data /private/etc/hosts
    1/15/12 8:34:16.685 PM sandboxd: ([128]) DumpGPURestart(128) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 8:34:16.686 PM sandboxd: ([128]) DumpGPURestart(128) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 9:09:26.511 PM sandboxd: ([333]) DumpGPURestart(333) deny file-write-create /Library/Application Support/SubmitDiagInfo
    1/15/12 9:09:26.534 PM sandboxd: ([333]) DumpGPURestart(333) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 9:09:26.536 PM sandboxd: ([333]) DumpGPURestart(333) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 9:09:26.537 PM sandboxd: ([333]) DumpGPURestart(333) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 9:09:26.539 PM sandboxd: ([333]) DumpGPURestart(333) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 9:09:26.541 PM sandboxd: ([333]) DumpGPURestart(333) deny ipc-posix-shm apple.shm.notification_center
    1/15/12 9:11:30.625 PM com.apple.stackshot: Running fs_usage, spindump and top
    I know that my MacBook Pro is the one that has the 330m GPU that has given some problems under Mac OS X Lion. Would like to know if this can be related to the OSX Lion graphics issues in the 2010 MacBook Pros.

    Bump. Any suggestions or ideas? I really need them.

Maybe you are looking for