Selecting connecting flights query

Hi,
In our system we have a base table with all connecting flights. Each flight leg(segment) is stored as a record (PK is CID and flight_no), however
both flight segments have the same id (data set). For example:
Segments(Legs)
CID    Flight_no  From To
1       UA123     LAX  DEN
1       UA456     DEN JFKand the routes base table stores the starting and ending point of a flight, but not the stopover:
Routes
From  To
LAX   JFKThe problem is finding those connecting flights according to the route.
Help on the sql would be greatly appreciated! Thanks!
Edited by: user545194 on 01.10.2012 11:08

Hi again,
Here is the table ddl with sample data.
Table DDL:
CREATE TABLE "TEST"."SAMPLE_DATA_TBL"
    "CID"          NUMBER NOT NULL ENABLE,
    "SNR"          NUMBER(1,0),
    "CS"           VARCHAR2(4 BYTE),
    "FLIGHT_NO"    VARCHAR2(8 BYTE) NOT NULL ENABLE,
    "FROM_AP"      VARCHAR2(3 BYTE) NOT NULL ENABLE,
    "DEPART"       VARCHAR2(20 BYTE),
    "TO_AP"        VARCHAR2(3 BYTE) NOT NULL ENABLE,
    "ARRIVE"       VARCHAR2(20 BYTE),
    "FLT_DURATION" VARCHAR2(20 BYTE),
    "DEP_T"        VARCHAR2(4 BYTE),
    "ARR_T"        VARCHAR2(4 BYTE)
  );Sample data:
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('8','1',null,'LH3487','ADB','04:10:00','TXL','06:05:00','04:55:00','I','-');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('8','2',null,'LH2057','TXL','06:50:00','MUC','08:05:00',null,'-','2');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('123','1',null,'LH3301','AGP','13:35:00','TXL','16:55:00','06:45:00','3','-');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('123','2',null,'LH197','TXL','19:10:00','FRA','20:20:00',null,'-','1');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('213','1',null,'LH693','AMM','02:45:00','FRA','06:25:00','07:30:00','1','1');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('213','2',null,'LH6332','FRA','07:45:00','VIE','09:15:00',null,'1','-');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('281','1','CL','LH2307','AMS','17:25:00','MUC','18:50:00','03:30:00','-','2');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('281','2',null,'LH123','MUC','19:50:00','FRA','20:55:00',null,'2','1');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('402','1','SK','LH6059','ARN','15:15:00','TXL','16:45:00','03:25:00','5','-');
Insert into TEST.SAMPLE_DATA (CID,SNR,CS,FLIGHT_NO,FROM_AP,DEPART,TO_AP,ARRIVE,FLT_DURATION,DEP_T,ARR_T) values ('402','2',null,'LH193','TXL','17:30:00','FRA','18:40:00',null,'-','1');Explanation: A connection id (cid) consists of 2 flight legs(segments, snr) and the "trick" is to list both connections through input
of the starting and ending points; i.e. 'AGP' to 'FRA'.
Thanks!

Similar Messages

  • Need query for connecting flights

    Hi all.
    My requirement is as follows
    suppose my itnery is AAA-BBB-CCC.And there are few flights between AAA-BBB and BBB-CCC.I need all the valid connecting flights everyday.My table data is as follows
    orig dest fltno arrivaldate depdate legno itid
    AAA BBB 121 23-05-2011 15:40:00(arrical ar BBB) 1 x
    AAA BBB 123 23-05-2011 16:40:00(arrical ar BBB) 1 x
    BBB CCC 212 24-05-2011 04:05:00(arrical ar CCC) 23-05-2011 19:50:00(depat from BBB) 2 x
    BBB CCC 213 24-05-2011 13:05:00 (arrical ar CCC) 24-05-2011 04:50:00(depat from BBB) 2 x
    now i need to get for legno 1 all the flights in leg 2, whose depdate is grater than arrival date in leg 1.
    Thanks.

    Hi,
    Whenever you have a problem, please post CREATE TABLE and INSERT statements for the sample data. Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Always say which version of Oracle you're using.
    If I understand the problem, then you can use somehting like this:
    SELECT     l2.*
    FROM     table_x       l1
    JOIN     table_x       l2   ON   l2.legeno     = l1.legno + 1
                     AND  l2.orig     = l1.dest
                     AND  l2.depdate     > l1.arrivaldate
    WHERE     l1.legno     = 1
    ;A self-join, like this, will work if you're looking for a specific leg. If you're interested in all legs (or all legs after a certain point), regardless of whether that's 1, 2, 3 or more, then use CONNECT BY instead of a self-join.

  • X3-02 Flight Query

    Can I know what is the function of Flight Query in X3-02?
    Settings>Phone>Flight Query
    Solved!
    Go to Solution.

    Thanks again for the reply Meow
    It is an honour to have a moderator to reply my thread
    What I try to say earlier is, after my 5800 offline profile activated, all active connections will be disconnected...
    After disconnection(during offline mode), I can switch on my bluetooth during that time although it is in offline mode but I cannot do so in flight mode for my X3-02.
    Actually I have made the "profile selection" as one of my shortcuts in the desktop cause I switch profiles a lot....
    And one more thing I'm still using v5.60 for X3-02, kinda sad V6.00 haven't reach my region yet.... If possible I want to request for next firmware update to support video call using the back camera... thanks in advance
    Sorry for the bad English

  • CONNECT BY query doesn't return any results...

    Hi All
    I am trying to execute this CONNECT BY query...but it does not return any result.
    Could anyone please suggests what am I doing wrong. Or how should I modify the query to get the results.
    SELECT Distinct dt.DID FROM DEPT dt left outer join EMPLOYEE emp on dt.DID = emp.DID WHERE dt.parentid in (SELECT DEPT.DID FROM DEPT CONNECT BY PRIOR DEPT.DID = DEPT.PARENTID START WITH DEPT.PARENTID in (2000,-2000)) or dt.parentid=2000
    Any help would be really really appreciated.
    Thanks and Regards
    -Josef

    Take the nested query and run it in SQL developer (or SQL Plus) against the database directly. Does it give any results? That query returning no results is the most likely cause of the problem.

  • [8i] Need help with hierarchical (connect by) query

    First, I'm working in 8i.
    My problem is, I keep getting the error ORA-01437: cannot have join with CONNECT BY.
    And, the reason I get that error is because one of the criteria I need to use to prune some branches with is in another table... Is there anyway to work around this? I tried an in-line view (but got the same error). I thought about using the connect by query as an in-line view and filtering off what I don't want that way, but I'm not sure how to filter out an entire branch...
    Here is some simplified sample data:
    CREATE TABLE     bom_test
    (     parent          CHAR(25)
    ,     component     CHAR(25)
    ,     qty_per          NUMBER(9,5)
    INSERT INTO     bom_test
    VALUES     ('ABC-1','101-34',10);
    INSERT INTO     bom_test
    VALUES     ('ABC-1','A-109-347',2);
    INSERT INTO     bom_test
    VALUES     ('ABC-1','ABC-100G',1);
    INSERT INTO     bom_test
    VALUES     ('ABC-1','1A247G01',2);
    INSERT INTO     bom_test
    VALUES     ('ABC-100G','70052',18);
    INSERT INTO     bom_test
    VALUES     ('ABC-100G','M9532-278',5);
    INSERT INTO     bom_test
    VALUES     ('1A247G01','X525-101',2);
    INSERT INTO     bom_test
    VALUES     ('1A247G01','1062-324',2);
    INSERT INTO     bom_test
    VALUES     ('X525-101','R245-9010',2);
    CREATE TABLE     part_test
    (     part_nbr     CHAR(25)
    ,     part_type     CHAR(1)
    INSERT INTO     part_test
    VALUES     ('ABC-1','M');
    INSERT INTO     part_test
    VALUES     ('101-34','P');
    INSERT INTO     part_test
    VALUES     ('A-109-347','P');
    INSERT INTO     part_test
    VALUES     ('ABC-100G','M');
    INSERT INTO     part_test
    VALUES     ('1A247G01','P');
    INSERT INTO     part_test
    VALUES     ('70052','P');
    INSERT INTO     part_test
    VALUES     ('M9532-278','P');
    INSERT INTO     part_test
    VALUES     ('X525-101','M');
    INSERT INTO     part_test
    VALUES     ('1062-324','P');
    INSERT INTO     part_test
    VALUES     ('R245-9010','P');This is the basic query (with no pruning of branches):
    SELECT     LEVEL
    ,     b.component
    ,     b.parent
    ,     b.qty_per
    FROM     bom_test b
    START WITH          b.parent     = 'ABC-1'
    CONNECT BY PRIOR     b.component     = b.parentThe query above gives the results:
          LEVEL COMPONENT                 PARENT                        QTY_PER
          1.000 101-34                    ABC-1                          10.000
          1.000 A-109-347                 ABC-1                           2.000
          1.000 ABC-100G                  ABC-1                           1.000
          2.000 70052                     ABC-100G                       18.000
          2.000 M9532-278                 ABC-100G                        5.000
          1.000 1A247G01                  ABC-1                           2.000
          2.000 X525-101                  1A247G01                        2.000
          3.000 R245-9010                 X525-101                        2.000
          2.000 1062-324                  1A247G01                        2.000
    9 rows selected....but I only want the branches (children, grandchildren, etc.) of part type 'M'.
    e.g.:
          LEVEL COMPONENT                 PARENT                        QTY_PER
          1.000 101-34                    ABC-1                          10.000
          1.000 A-109-347                 ABC-1                           2.000
          1.000 ABC-100G                  ABC-1                           1.000
          2.000 70052                     ABC-100G                       18.000
          2.000 M9532-278                 ABC-100G                        5.000
          1.000 1A247G01                  ABC-1                           2.000Any suggestions?

    Hi,
    user11033437 wrote:
    First, I'm working in 8i.
    My problem is, I keep getting the error ORA-01437: cannot have join with CONNECT BY.
    And, the reason I get that error is because one of the criteria I need to use to prune some branches with is in another table... Is there anyway to work around this? I tried an in-line view (but got the same error). Post your query. It's very hard to tell what you're doing wrong if we don't know what you're doing.
    ...but I only want the branches (children, grandchildren, etc.) of part type 'M'.
    e.g.:
    LEVEL COMPONENT                 PARENT                        QTY_PER
    1.000 101-34                    ABC-1                          10.000
    1.000 A-109-347                 ABC-1                           2.000
    1.000 ABC-100G                  ABC-1                           1.000
    2.000 70052                     ABC-100G                       18.000
    2.000 M9532-278                 ABC-100G                        5.000
    1.000 1A247G01                  ABC-1                           2.000
    You mean you want don't want the descendants (children, grandchildren, etc.) of any component whose part_type is not 'M'.
    The part_type of the component itself doesn't matter: component '101-34' is included, even though its part_type is 'P', and component 'X525-101' is excluded, even though its part_type is 'M'.
    >
    Any suggestions?Sorry, I don't have an Oracle 8.1 database at hand now. All three of the queries below get the correct results in Oracle 10.2, and I don't believe they do anything that isn't allowed in 8.1.
    You can't do a join and CONNECT BY in the same query on Oracle 8.1.
    I believe you can do one first, then the other, using in-line views. The frist two queries do the join first.
    --     Query 1: Join First
    SELECT     LEVEL
    ,     component
    ,     parent
    ,     qty_per
    FROM     (     -- Begin in-line view to join bom_test and part_test
              SELECT     b.component
              ,     b.parent
              ,     b.qty_per
              ,     p.part_type     AS parent_type
              FROM     bom_test     b
              ,     part_test     p
              WHERE     p.part_nbr     = b.parent
         )     -- End in-line view to join bom_test and part_test
    START WITH     parent     = 'ABC-1'
    CONNECT BY     parent          = PRIOR component
         AND     parent_type     = 'M'
    ;Query 2 is very much like Query 1, but it does more filtering in the sub-query, returning only rows hose part_type or whose parent's part_type is 'M". Your desired result set will be a tree taken entirely from this set. Query 2 may be faster, because the sub-query is more selective, but then again, it may be slower because it has to do an extra join.
    {code}
    -- Query 2: Join first, prune in sub-query
    SELECT     LEVEL
    ,     component
    ,     parent
    ,     qty_per
    FROM     (     -- Begin in-line view to join bom_test and part_test
              SELECT     b.component
              ,     b.parent
              ,     b.qty_per
              ,     p.part_type     AS parent_type
              FROM     bom_test     b
              ,     part_test     p
              ,     part_test     c
              WHERE     p.part_nbr     = b.parent
              AND     c.part_nbr     = b.component
              AND     'M'          IN (c.part_type, p.part_type)
         )     -- End in-line view to join bom_test and part_test
    START WITH     parent     = 'ABC-1'
    CONNECT BY     parent          = PRIOR component
         AND     parent_type     = 'M'
    {code}
    Query 3, below, takes a completely different approach. It does the CONNECT BY query first, then does a join to see what the parent's part_type is. We can easily cut out all the nodes whose parent's part_type is not 'M', but that will leave components like 'R245-9010' whose parent has part_type 'M', but should be excluded because its parent is excluded. To get the correct results, we can do another CONNECT BY query, using the same START WITH and CONNECT BY conditions, but this time only looking at the pruhed results of the first CONNECT BY query.
    {code}
    --     Query 3: CONNECT BY, Prune, CONNECT BY again
    SELECT     LEVEL
    ,     component
    ,     parent
    ,     qty_per
    FROM     (     -- Begin in-line view of 'M' parts in hierarchy
              SELECT     h.component
              ,     h.parent
              ,     h.qty_per
              FROM     (     -- Begin in-line view h, hierarchy from bom_test
                        SELECT     component
                        ,     parent
                        ,     qty_per
                        FROM     bom_test
                        START WITH     parent     = 'ABC-1'
                        CONNECT BY     parent     = PRIOR component
                   ) h     -- End in-line view h, hierarchy from bom_test
              ,     part_test     p
              WHERE     p.part_nbr     = h.parent
              AND     p.part_type     = 'M'
         )     -- End in-line view of 'M' parts in hierarchy
    START WITH     parent     = 'ABC-1'
    CONNECT BY     parent     = PRIOR component
    {code}
    I suspect that Query 3 will be slower than the others, but if the CONNECT BY query is extremely selective, it may be better.
    It would be interesting to see your findings using the full tables. Please post your observations and the explain plan output.
    As usual, your message is a model of completeness and clarity:
    <ul>
    <li>good sample data,
    <li> posted in a way people can use it,
    <li>clear results,
    <li> good explanation
    <li> nciely formatted code
    </ul>
    Keep up the good work!

  • Getting Java error while connect BEx query to WebI report (SAP BI4.0 )

    Not able to connect BEx query to WebI report (SAP BI4.0 ) . Below is the error I get while creating a new BEx connection to BOBJ WebI report .
    Please find the below error and help me ,
    "Select a BW Bex query window box "  displayed "Nothing to display " and server error as mentioned below
    Java.uti.concurrent.executionException: Com.sap.sl.sdk.repository.service.repositor******
    at Java.uti.concurrent.futuretask (Unknown source )
    at java.swing.swing.timer.fireactionperformed(Unknown source )
    at java.awt.event.invocationEvent.dispatch(Unknown Source)
    Thanks ,
    Pradeep Gorpadu

    Hi,
    I am on BO 4.0 SP05 Patch 6. Webi reports are just showing processing but not giving results. When I try to create new report it is throwing java security error.
    Tried applet patch upgrade(From link : https://websmp207.sap-ag.de/~sapidb/011000358700000902752013E) for webi certificate but didn't help.
    Please suggest what could be done.
    Thanks and Regards,
    Ankit Sharma

  • Webi 4.1 SSO - Error at the selection of BEX query

    Hi experts,
    we have configured the SSO following the step described in the manual, but when we tried to select a BEX Query by OLAP connection in Webi, occur this error:
    Java.util.concurrent.ExecutionException: com.businessobjects.sdk.core.server.CommunicationException$UnexpectedServerException: [[error.openSapBwBrowsingSessionFailed] 0] <<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ConnectionString>
       <Properties>
          <Initial Catalog>ZIS_M_01</Initial Catalog>
          <Language>en_US</Language>
          <Data Source>172.31.240.13</Data Source>
          <Cube Type>Query</Cube Type>
          <SaveLanguage>true</SaveLanguage>
          <Initial Cube>ZZIS_M_01_Q020</Initial Cube>
          <TargetProvider>SAPNETWEAVER7X</TargetProvider>
          <NetworkLayer>SAPBW_BICS</NetworkLayer>
          <Authentication Mode>2</Authentication Mode>
       </Properties>
       <ExtendedProperties>
          <JCO_ASHOST>172.31.240.13</JCO_ASHOST>
          <SapLoginMode>0</SapLoginMode>
          <JCO_R3NAME>DWZ</JCO_R3NAME>
          <JCO_CLIENT>001</JCO_CLIENT>
          <JCO_SYSNR>01</JCO_SYSNR>
          <JCO_LANG>EN</JCO_LANG>
       </ExtendedProperties>
    </ConnectionString>>
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at javax.swing.SwingWorker.get(Unknown Source)
      at com.sap.webi.ui.dialog.bex.OpenBexPanel.endFetchNode(OpenBexPanel.java:825)
      at com.sap.webi.ui.dialog.bex.OpenBexPanel.propertyChange(OpenBexPanel.java:1036)
      at java.beans.PropertyChangeSupport.fire(Unknown Source)
      at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
      at javax.swing.SwingWorker$SwingWorkerPropertyChangeSupport.firePropertyChange(Unknown Source)
      at javax.swing.SwingWorker$SwingWorkerPropertyChangeSupport$1.run(Unknown Source)
      at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
      at sun.swing.AccumulativeRunnable.run(Unknown Source)
      at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
      at javax.swing.Timer.fireActionPerformed(Unknown Source)
      at javax.swing.Timer$DoPostEvent.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.WaitDispatchSupport$2.run(Unknown Source)
      at java.awt.WaitDispatchSupport$4.run(Unknown Source)
      at java.awt.WaitDispatchSupport$4.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.awt.WaitDispatchSupport.enter(Unknown Source)
      at java.awt.Dialog.show(Unknown Source)
      at com.jidesoft.dialog.StandardDialog.show(Unknown Source)
      at java.awt.Component.show(Unknown Source)
      at java.awt.Component.setVisible(Unknown Source)
      at java.awt.Window.setVisible(Unknown Source)
      at java.awt.Dialog.setVisible(Unknown Source)
      at com.sap.webi.toolkit.ui.dialog.GenericDialog.setVisible(GenericDialog.java:128)
      at com.sap.webi.ui.dialog.bex.OpenBexDialog.setVisible(OpenBexDialog.java:115)
      at com.sap.webi.ui.data.BexQueryDataSourceProvider.createDataSourceInfo(BexQueryDataSourceProvider.java:95)
      at com.sap.webi.ui.context.managers.DataManager.createDataSourceInfo(DataManager.java:383)
      at com.sap.webi.ui.tasks.workflows.CreateDataSourceInfoUITask.doneProcess(CreateDataSourceInfoUITask.java:127)
      at com.sap.webi.toolkit.ui.tasks.WebITask$PrivateWorker.done(WebITask.java:378)
      at javax.swing.SwingWorker$5.run(Unknown Source)
      at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
      at sun.swing.AccumulativeRunnable.run(Unknown Source)
      at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
      at javax.swing.Timer.fireActionPerformed(Unknown Source)
      at javax.swing.Timer$DoPostEvent.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: com.businessobjects.sdk.core.server.CommunicationException$UnexpectedServerException: [[error.openSapBwBrowsingSessionFailed] 0] <<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ConnectionString>
       <Properties>
          <Initial Catalog>ZIS_M_01</Initial Catalog>
          <Language>en_US</Language>
          <Data Source>172.31.240.13</Data Source>
          <Cube Type>Query</Cube Type>
          <SaveLanguage>true</SaveLanguage>
          <Initial Cube>ZZIS_M_01_Q020</Initial Cube>
          <TargetProvider>SAPNETWEAVER7X</TargetProvider>
          <NetworkLayer>SAPBW_BICS</NetworkLayer>
          <Authentication Mode>2</Authentication Mode>
       </Properties>
       <ExtendedProperties>
          <JCO_ASHOST>172.31.240.13</JCO_ASHOST>
          <SapLoginMode>0</SapLoginMode>
          <JCO_R3NAME>DWZ</JCO_R3NAME>
          <JCO_CLIENT>001</JCO_CLIENT>
          <JCO_SYSNR>01</JCO_SYSNR>
          <JCO_LANG>EN</JCO_LANG>
       </ExtendedProperties>
    </ConnectionString>>
      at com.businessobjects.sdk.core.exception.ExceptionBuilder.make(ExceptionBuilder.java:152)
      at com.businessobjects.sdk.core.exception.ExceptionBuilder.make(ExceptionBuilder.java:109)
      at com.sap.sl.sdk.requests.doit.DoItRequestHandler.afterProcessing(DoItRequestHandler.java:54)
      at com.businessobjects.sdk.core.server.internal.AbstractServer.processIt(AbstractServer.java:178)
      at com.businessobjects.sdk.core.server.internal.AbstractServer.process(AbstractServer.java:133)
      at com.businessobjects.sdk.core.server.internal.InstanceServer.process(InstanceServer.java:96)
      at com.sap.sl.sdk.olap.sapbw.service.SapBwBrowsingServiceImpl.processDoIt(SapBwBrowsingServiceImpl.java:249)
      at com.sap.sl.sdk.olap.sapbw.service.SapBwBrowsingServiceImpl.processInvocation(SapBwBrowsingServiceImpl.java:207)
      at com.sap.sl.sdk.olap.sapbw.service.SapBwBrowsingServiceImpl.processOpenSecureSession(SapBwBrowsingServiceImpl.java:190)
      at com.sap.sl.sdk.olap.sapbw.service.SapBwBrowsingServiceImpl.openSession(SapBwBrowsingServiceImpl.java:72)
      at com.sap.webi.ui.dialog.bex.ExpandRepositoryItemWorker.getBrowsingSession(ExpandRepositoryItemWorker.java:66)
      at com.sap.webi.ui.dialog.bex.ExpandRepositoryItemWorker.doInBackground(ExpandRepositoryItemWorker.java:41)
      at com.sap.webi.ui.dialog.bex.ExpandRepositoryItemWorker.doInBackground(ExpandRepositoryItemWorker.java:16)
      at javax.swing.SwingWorker$1.call(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at javax.swing.SwingWorker.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Caused by: com.businessobjects.sdk.core.server.ServerException: [[error.openSapBwBrowsingSessionFailed] 0] <<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ConnectionString>
       <Properties>
          <Initial Catalog>ZIS_M_01</Initial Catalog>
          <Language>en_US</Language>
          <Data Source>172.31.240.13</Data Source>
          <Cube Type>Query</Cube Type>
          <SaveLanguage>true</SaveLanguage>
          <Initial Cube>ZZIS_M_01_Q020</Initial Cube>
          <>SAPNETWEAVER7X</TargetProvider>
          <NetworkLayer>SAPBW_BICS</NetworkLayer>
          <Authentication Mode>2</Authentication Mode>
       </Properties>
       <ExtendedProperties>
          <JCO_ASHOST>172.31.240.13</JCO_ASHOST>
          <SapLoginMode>0</SapLoginMode>
          <JCO_R3NAME>DWZ</JCO_R3NAME>
          <JCO_CLIENT>001</JCO_CLIENT>
          <JCO_SYSNR>01</JCO_SYSNR>
          <JCO_LANG>EN</JCO_LANG>
       </ExtendedProperties>
    </ConnectionString>>
      at com.sap.sl.sdk.requests.doit.DoItRequestHandler.afterProcessing(DoItRequestHandler.java:50)
      ... 16 more
    The SSO works correctly on Analysis for OLAP.
    The Authentication used is the SAP authentication.
    Thanks.
    Andrea

    That's what we're doing in our 4.1 instance as well.
    After a lot of troubleshooting, it looks like our problem is related to the SSO set up itself.  We set the OLAP Connection to Pre-defined, entered the SAP credentials of one of our developers, then saved the connection.  We were able to refresh existing reports and create new reports without any issues.  We changed the OLAP connection back to SSO and received the same error message as in OP when we tried to select a BEx query.
    I'm going to go through the entire SSO set up again.  There was a BW hotfix applied throughout our environments, thinking it might have messed something up. 

  • Constant Selection in BEx Query Designer on BI7

    Hi guys
    According to this blog <a href="/people/prakash.darji/blog/2006/09/19/the-hidden-secret-of-constant-selection Selection</a>, we can create constant selection on both Characteristics and Key figures. I understand how to do it with restricted key figures.
    Can anyone give me a step by step guide on how to create constant selection for a Characteristic in BEx Query Designer on BI7. I can't find options for 'constant selection'
    Or is this the same thing when you include or exclude values?
    Message was edited by:
            jimi ogun

    Thanks Krishna
    I am actually using a Multiprovider for my queries but business requirements mean I need to create joins.
    I am trying to avoid Infosets and I believe another way is to use the Constant Selection feature in Query Designer.
    Going back to my previous posting, I know how this is done with a restricted KF but I don't know how when it comes to characteristics.
    Can anyone help?

  • How to use multi select in a query report

    I defined a lov. This lov retuns name and a id. I want to use the result of this multi select in my query.
    I always get invalid number when I choose two items of the select. When I debug I see that the return value of the multi select is 1:2. How can I change the seperator : in , I tried the following but this does't work.
    if :P26_PRODUCTTYPE IS NOT NULL then
    l_sql := l_sql ||' and producttype in
    (REPLACE(:p26_producttype,'':'','','' ))';
    end if;

    as you're finding, multiple values selected from html db multi-select list items (and checkboxes) are stored as a single, colon-delimited string. i explained an easy way to handle this via pl/sql in...
    Multiple select list
    ...that post shows you how to throw the selected values into a pl/sql table and step through them as needed. it also showed how to use an instr to parse through the string if you want to go that route. you could use that same instr logic right in your sql query. so let's say your lov for your multi-select item (P1_MY_MULTISELECT, we'll call it) was defined as...
    select ename, empno from emp order by 1
    ...and your user selected KING, FORD, and JONES. :P1_MY_MULTISELECT would store those values as...
    7839:7902:7566
    ...you could then write a query to return the selected enames with something like...
    select ename, job
    from emp
    where insrt (':'||:P1_MY_MULTISELECT||':',':'||empno||':') != 0
    ...hope this helps,
    raj

  • How to use Designer connect BW Query?

    HI friend,
        My BO Designer connect BW Query, Can't connt my custom cube's query ( my cbue save on  "IA_InfoArea"  InfoArea), I find one standard cube "0SD_C01" Cube's query could connt .
        Why custom CUBE of the QUERY can not  display and connect?
        How to solve that?
      My bo server is BO XI3.1 SP1.
      BW server is " SAPKW70019  SAP NetWeaver BI 7.0 ".
    My question means the same as following Posts :
      BEx Query is not shown
    " I am facing problem in creating universe on SAP BW BEx Query, here the problem: SAP BW version is 7.0 SP 11 and BusinessObjects version is XI 3.0 and SAP Integration Kit 3.0
    I created a new InfoCube in SAP BW under some InfoArea and I created a BEx query on that InfoCube. Now in Universe Designer i am trying to create a new connection on that BEx query, but in the list of objects while creating connection i can see my InfoCube under folder $InfoCube but i can not see my own InfoArea or even Query i created on that InfoCube. Along those i can see some folders like Sales Overview (0SD_C03) and BEx queries under that folder of target 0SD_C03. My doubt is why it is not showing InfoArea and Query which created in BW. "
      Thank you very much.
    Best Regards,
    Howard.
      pho:
       [http://file.itpub.net/attachment/day_091216/20091216_21a7d983a9bfcd34a0c9eMTYbB9zDfnM.jpg|http://file.itpub.net/attachment/day_091216/20091216_21a7d983a9bfcd34a0c9eMTYbB9zDfnM.jpg]
    Edited by: flying on Dec 16, 2009 12:48 PM

    HI Ingo Hilgefort ,
        Thank you very much.
         I often see your BLOG, you are very well written.
        BO connection CUBE / QUERY.  What is the difference then?
      Thank you very much.
    Regards,
    Hoard.

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • Display select list from query on manual tabular form

    Hello,
    I'm trying to display a select list from query on a manual tabular form. I'm using a collection to store the data. I can't seem to get the query to work. I can display the item as a text item. Any help would be appreciated. Thanks, Elizabeth.
    SELECT
    -- Notice how I'm keeping the idx value the same as the column value in the collection. This helps to keep things organized
    -- I also apply an id to each entry
    -- I append the error value to the empname and sal
    -- The Seq_id. Usefull when hiding rows (for delete) and then submitting from
    apex_item.hidden(1,x.seq_id, null, x.seq_id || '_seq_id') ||
    -- The Primary Key of the column
    apex_item.hidden(2, x.ceah_people_id, null, x.seq_id || '_ceah_people_id') || x.ceah_people_id ceah_people_id,
    -- Employee Name
    case when x.seq_id = -1
    then
    apex_item.select_list_from_query (3,
    NULL,
    'select distinct language_name d, '
    || 'language_id r from foreign_language',
    'style="width:170px" ' ,
    'YES',
    '0',
    '- Select Language -',
    'x.seq_id_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL,
    'NO'
    else
    apex_item.text (3,(select language_name from foreign_language where x.language_id = foreign_language.language_id),
    80,
    100,
    'style="width:170px" readonly="readonly"',
    'f32_' || LPAD (ROWNUM, 4, '0')
    end
    || err.language_id language_id,
    /* apex_item.text(3,x.language_id,null, null, null, x.seq_id || '_language_id') || err.language_id language_id,
    -- Employee Salary
    apex_item.text(4,x.proficiency, null, null, null, x.seq_id || '_proficiency') || err.proficiency ||
    -- Store the sql action type as well.
    apex_item.hidden(50,x.sql_action_typ, null, x.seq_id || '_sql_action_typ_id') proficiency,
    -- Last but not least the row error
    err.row_error
    FROM (SELECT ac.c001 seq_id,
    ac.c002 ceah_people_id,
    ac.c003 language_id,
    ac.c004 proficiency,
    ac.c049 modifiable_flag,
    ac.c050 sql_action_typ
    FROM apex_collections ac
    WHERE ac.collection_name = 'DATA_COLLECTION'
    ORDER BY ac.seq_id) x,
    -- Error Collection
    (SELECT ac.seq_id seq_id,
    ac.c002 ceah_people_id,
    ac.c003 language_id,
    ac.c004 proficiency,
    ac.c050 row_error -- Useful when individual data is correct, however the row of data is not. Ex: start/end dates
    FROM apex_collections ac
    WHERE ac.collection_name = 'ERROR_COLLECTION'
    ORDER BY ac.seq_id) err
    WHERE x.seq_id = err.seq_id(+)

    I got so frustrated I started over. I'm following the how to create a manual form.
    http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL
    The problem I'm now having is even though I display items as hidden, there is a column holder on the report for them. If I go into the report attributes and toggle the show attribute off I cannot reference an items value in my logic. I used /&nbsp/ for the column heading but I still get the little sort arrow where the column heading should be. I tried to toggle the sort attribute off but the sort arrow still shows up. How can I use the apex_item.hidden and not get a place holder for the column on a report? Thanks, Elizabeth
    Here is the code I'm using to generate the report:
    select x.ceah_people_lang_id,
    x.language_id,
    x.proficiency,
    x.ceah_people_id
    from (
    select apex_item.hidden(1,ceah_people_lang_id) ceah_people_lang_id,
    apex_item.select_list_from_query(2,language_id,'select language_name, language_id from foreign_language') language_id,
    apex_item.select_list_from_query(3,proficiency,'select name, id from proficiency') proficiency,
    apex_item.hidden(4,ceah_people_id) ceah_people_id
    from ceah_people_language where ceah_people_language.ceah_people_id = :P152_person_id
    union all
    select apex_item.hidden(1,null) ceah_people_lang_id,
    apex_item.select_list_from_query(2,null,'select language_name, language_id from foreign_language') language_id,
    apex_item.select_list_from_query(3,null,'select name, id from proficiency') proficiency,
    apex_item.hidden(4,null) ceah_people_id
    from dual) x

  • When to use SELECT and END SELECT in the query.

    hi all,
    When to use SELECT and END SELECT in the query.
    regads,
    Venkata Suresh Penke.

    Hi Suresh..
    When do we need to use SELECT .. ENDSELECT
    Usually we will never use SELECT .. ENDSELECT as it gives very poor performance.
    But whenever we read a single Record we will use it as an alternative for SELECT SINGLE in some scenarios.
    Eg: When the Full primary key is not specified in the WHERE clause.
    SELECT * FROM MARC INTO WA_MARC UP TO 1 ROWS WHERE MATNR = P_MATNR.
    ENDSELECT.
    And other scenario is when we perform AGGREGATE OPERATIONS.when the Result is only one row.
    SELECT SUM( LABST ) FROM MARD INTO V_LABST UP TO 1 ROWS
    WHERE MATNR = P_MATNR.
    ENDSELECT.
    Note: In The Above scenario we cannot use SELECT SINGLE..
    <b>REWARD IF HELPFUL.</b>

  • How to make required field on selection screen in Query

    i'm now working with query(SQ01).
    but don't know how to make required field on selection screen in Query.
    thanks in advance

    i'm now working with query(SQ01).
    but don't know how to make required field on selection screen in Query.
    thanks in advance

  • Enable fiscal year/quarter selection in a query

    Hello all,
    I want to have an characteristic fiscal year/quarter similar to fiscal year/period (0FISCPER) in my query. Unfortunately I can not find such a characteristic in the time infoObjects in my cube and in the administrator workbench.
    Our Fiscal year starts in July. So the first quarter is July - September. The BW release is 3.5.
    How canI enable a fiscal yearquarter selection in my query?
    Any ideas would be great.
    Thanks upfront and Best regards,
    Stefanos from Munich/Bavaria/Germany

    Stefanos ...
    A couple of options for the same :
    1. Have 0FISCPER in your cube and map the same to the custom characteristic in the update rules.
    2. Have the custom characteristic in the cube in a separate dimension
    3. If you have the same in the cube - have a variable against that and execute your query...
    By doing the above you can get the same in the query.
    Arun
    Assign points if useful

Maybe you are looking for

  • Convert a string to a Date

    I have a string object. String s = "2006-12-26 17:33:36" How can I create a date object from that string? I tried Date date = new Date(s); But that looks like a deprecated method. What is the best way ? Im using mysql db and their the type of the col

  • Running JSP 2.0 pages on Tomcat 4.1

    I have web-application written in JSP 2.0. I use custom tags in tag-files and EL. How can I run this application on hoster's Tomcat 4.1 server.

  • Trouble Shooting Revisited.

    Trouble Shooting Revisited Ok We will start with loading Tiger and iChat version 3.0 From Panther There are or were serveral Add-ons and applications avaiblable to Panther users of iChat that are not compatible with iChat 3. These following need to b

  • Render time in HD

    What is the standard time to render and export a quicktime movie in HD format. My format is DVCPRO HD1080i50. PC Specification is quadcore dual intel xeon mac pro with 6gb of ram. I need approx 8 min to render a 3 min video. Plz help. I am using fcp7

  • Time out: Network error

    Hi, everyoneI have a problem with the network, the essbase server is on Sun solaris.Connection is Ok, and i can see all the application and the databases, but when trying to add a member and save to the server I get an error "Network error [10061]: U