Reg;queries

hi
could u pl tell me the steps involved in selecting fields according to a particular condition (Query)
ie according to roles it should display particular products only
mailid:[email protected]
tanx in advance
Edited by: user9005557 on Jan 19, 2010 9:33 AM

This is a totally untested code.
SELECT t.ships, t.name, t.date
  FROM (SELECT o.ships, b.name, b.date
       FROM battles b, outcomes o
      WHERE b.name = o.battle) t,
       (SELECT o.ships, b.name, b.date
       FROM battles b, outcomes o
      WHERE b.name = o.battle
        AND result = 'DAMAGED') d
WHERE t.ships = d.ships
   AND t.date > d.dateI will just tell you what i have tried here. I have written two inline view.
1. The view named as t gets you all the ships and battle information.
2. The view named as d gets you all the ship and battle information in which the ship is dammaged.
Now what i do is match both the views based on ship plus the date of the first view must be greater than the second view. This date condition ensures that the ship has participated in a battle in the future.
Note: Its a totally untested code. As i am totally unaware of how your data looks so this query may or may not have performance problems. So Just have this as a basic idea and build your own query.
Thanks,
Karthick.

Similar Messages

  • Pagination changes result in master objects moving

    Whenever my pagination changes, either from documents in my book starting on an even page, or by inserting a page the objects set in my master pages move (generally toward the gutter). I can reapply the master page as a fix and select the option of using the master page size to put the objects back where they should be.
    This issue does not occur when I start from a template that I did not create and is known to not have this issue, but once I start making edits to the objects on the master pages that are necessary for my project the issue pops up. I'm duplicating existing boxes. And the perplexing thing is that when I just have "Words" in the boxes for my headers the issue does not occur, but when I enter the actual text that I need for my project it does. When I go back to "Words" the issue doesn't occur anymore. The text fits in the box, no preflight errors. The issue is popping up on my machine and one of my colleagues.

    1. You need to load the heirarchy along with product master data.
    2. You dont need any downtime for transaction data; guess you have delta.
    3. reg queries ( especially after change in hierarchy structure), the users should be educated of the change. If you have any hier variable on a any node and if that node is gone with change in hier, then you have to take care of that.
    4. If you have any variable on a hier node, the query will give error, if that node has gone as a change in the hierarchy.
    Ravi Thothadri

  • Queries-reg

    Hi all,
    Can any one clarify me the following queries.
    1. Employee claims: In case of employee claims workflows have to be enabled to send email messages to employees to indicate that their claims,and amount passed and amount paid and advance adjusted
    2. How to give special GL's in Cash journal FBCJ? As of now, it is not available/activated?
    3. How withholding tax is paid to the Government? Is it through GL account or
    creation of Government vendor account? If it is through Govt vendor account
    how to transfer the Withholding tax payable to Government vendor account?
    Is it manually done or automatic?
    4.Here the client is asking for making payment through cheque to alternate person other than
    the original vendor account.  They don’t want alternate payee or permitted payee option where
    we have to create alternate person as vendor master record. Even they don’t want an end user
    to select the alternate person at document entry level. How to do it?
    Regards
    cms

    Hi Raghu,
    Thanks for the Quick reply.
    In fact, we can change the color and also the SAP logo by applying themes also.
    My Question is, Is it possible to change the position of the welcome area in a portal page?
    for ex : Can we remove it from the masthead iView and put it in Detailed Navigation area? It may require downloading the par file and making changes in NWDS.
    can anyone give me clarification reg this?
    Thank You.
    Regards,
    Murthy.

  • Reg: An ABAP program has to run two SAP Queries via BG to Appl. server

    Hi,
    I have a requirement to develop an ABAP program to be able to run the two Z Queries respectively and be able to download to the file to the application server via background.
        The selection is based on the Query Name, Usergroup and plant.How do we capture the data from the Queries and send it to the application server? Submit Statement is not working. There is a FM: RSAQ_REPORT_NAME from which we get the Query program name when Qery name and User group is given as an input.Through the above FM I have got the Query program name and used Submit statement with List_options to capture the Internal table data of that Query. As the Query program is dynamically generated and not available in TSTC, the Submit is not Working. Kindly suggest me is there any other approach to do it.
      Please provide me the solution.
    Thanks in advance.

    Please refer to thread [Authorization Error|WDA adobe error] where various solution to the problem specified by you are described.
    Regards
    Rohit Chowdhary
    Edited by: Rohit Chowdhary on Apr 7, 2009 9:41 PM

  • Reg: How to change Multiple Queries in WebI Report

    Hi all,
    I am woking in Xcelsius Dashboard. I used WebI approach for creating dashboard. I have two customers which one customer has SAP and another customer does not have SAP. so intially I have used Excell as data source. now I want to replace the Excel with BI Queries.Both having same structure.while replacing I faced the following problem.
    I created one WebI report based on Excel as data source that has two Queries(Two universes).I  want to replace excel based universe with BI query based universe.If I change the universe in an one query ,the univese is changed in an another query also.  How can I replace two different universes that based on BI queries with existing universes ?
    How can i resolve the problem?
    Thanks & Regards,
    Hemalatha J

    hema,
    As Thomas mentioned, changing one Data Provider causes the other Data Provider to get changed as well -- this is a problem for trying to change the universe on one tab and the system automatically goes and goofs up the other tab(s) as well.  I'm still on XI R2 and the problem happens so maybe someone with XI 3.1 or higher loaded can confirm that this unwanted occurrence has been cleared up or not.
    Thanks,
    John

  • Reg., Adapter Queries

    Hi Experts,
    Can someone please answer the following queries?
    1. Explain about what are the ‘Type A’ and ‘Type B’ Adapters?
    2. From the following adapters, please categorize the adapters with respect to the type of the communication they perform (like Asynchronous / Synchronous)
    File, RFC, XI, JDBC, Mail, IDoc, JMS, SOAP, HTTP, RNIF, CIDX, BC, Marketplace.
    I mean, I would like to know about each adapter what sort of communication it supports like Asynchronous, Synchronous or Both.
    3. When we will use the XI Adapter specifically? If possible please explain with an example scenario or requirement.
    Thanks in advance.
    Sree

    Hi,
    For question 2 look into this link. It gives you the list of adapters and their QOS.
    Adapter With EO and EOIO supoort only Asynch.
    Adapter with EO, EOIO , and BE support both synch and asynch.
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    3. XI adapter are used in case of ABAP proxies as they use the Native XI protocol to communicate with the SAP system and XI
    1. Type A and Type B -- Can you tell me where you heard / read about them.
    Regards
    Bhavesh

  • REG ABAP Queries

    Hi All,
      I have a requirement in ABAP query where i need to populate the output based on certain conditions. like if material type is YFG then some fields should be populated and if it is something other then some other fields should be displayed .
    can i do this if so give me some pointers.
    Cheers,
    Chaitanya

    hi,
    u can do coding in queries.
    goto SQ02 give ur query nam click on change
    in app tool bar u hav extras button,click on that,there u have tab called code ,in that u can do ur coding.
    reward points if hlpful.

  • Reg MDX queries in BI

    Hi All,
    If anyone know about MDX queries in BI please share some documentation.
    We are using OBIEE as front end for BI for reporting purpose which uses MDX quries from SAP bi
    Thanks

    Hi Arun
    Thanks for ur reply
    I tried using MDXTEST
    But i need some more doumentation about that.

  • Reg:atleast one queries

    Hi,
    I'm confused in writing the at least one queries.
    For ex:
    Find the book purchased by atleast one student having book no:1543...
    I need to write the above query using BOOKS AND STUDENTS table..
    Could you suggest me for writing this type of queries {atmost etc..}
    Thank you,
    josh
    Edited by: josh1612 on Oct 20, 2008 11:00 PM
    Edited by: josh1612 on Oct 20, 2008 11:12 PM

    I think i need to give the structure of the table also:
    Table name      Attributes
    instructor              Id, name, university
    Shirts              Size, color, gender
    students              Id, name, university Query:
    (1)     Find the color purchased by atleast one student whose university is same as instructors university and the size of the shirt is 22
    note:
    If the above attributes or tables are not sufficient fot the above reqmt then please let me know what need to be added
    please Check whether the following is up to the reqmt:
    select s.color
    from shirts s,students s1,instructor i
    where s.size=22 and
    s1.university=s.university;

  • Reg : SQL Queries and Global warming -

    Hi Experts,
    I got a doubt while I was going through the Mar/Apr-2013 edition of Oracle Magazine. http://www.oracle.com/technetwork/issue-archive/2013/13-mar/o23peer-1906471.html
    Article - <tt>'Peer-To-Peer'</tt> on Oracle ACE - Satyendra Kumar Pasalapudi where he says :
    >
    Q - What green practices do you use in your work?
    A - I always avoid excessive disk I/Os by optimizing queries and creating indexes, which in turn saves power by avoiding unnecessary disk spindles and excessive heat dissemination in the data centers. And I use my Kindle extensively, to save paper.
    >
    This sounds really interesting.
    What I'm not getting is the concept of <tt>'Disk Spindles'</tt>. What is that exactly and how it causes heat dissemination?
    Help much appreciated!
    Thanks,
    Ranit

    rp0428 wrote:
    >
    Not everything written on the 'Net is true.
    >
    Now you are confusing us!
    I just read your statement above on the net but if not everything written on the 'Net' is true then your statement might be false.
    But if your statement is false, then everything written on the 'Net' is true.
    Which means your statement must be true!
    My head is spinning! :DGuy: Where did you hear that?
    Girl: On the internet
    Guy: And you believed it?
    Girl: Sure. They can't put anything on the internet that isn't true
    Guy: Where did you hear that?
    Girl: On the internet. Oh, here comes my date. He's a French Model.
    Guy 2 (with sly wink) : Bonjour

  • Reg: Where clause in Hier queries -

    Hi Experts,
    I'm trying to understand the way Oracle calls the 'where' clause in case of 'connect by level' queries.
    Is it first creating all the rows using connect-by-level and then filtering the rows using where clause?
    (This is with reference to the post - Dates in a month )
    SQL> with range as
      2  (
      3     select date '2013-02-01' as start_date, date '2013-02-28' as end_date
      4     from dual
      5  )
      6  select
      7             level lvl,
      8             start_date+level-1 curr_date,
      9             TO_CHAR(start_date+level-1,'fmDAY') curr_day,
    10             LENGTH(TO_CHAR(start_date+level-1,'DAY')) len_curr_day,
    11             LENGTH(TO_CHAR(start_date+level-1,'fmDAY')) fm_len_curr_day
    12     from range
    13     where TO_CHAR(start_date+level-1,'fmDAY') = 'TUESDAY'
    14     connect by level <= (end_date-start_date)+1
    15     --where TO_CHAR(start_date+level-1,'fmDAY') = 'TUESDAY'
    16  ;
    LVL CURR_DATE            CURR_DAY            LEN_CURR_DAY FM_LEN_CURR_DAY
       5 05-FEB-2013          TUESDAY                        9               7
      12 12-FEB-2013          TUESDAY                        9               7
      19 19-FEB-2013          TUESDAY                        9               7
      26 26-FEB-2013          TUESDAY                        9               7Please help me understand this.
    - Ranit

    Just if you take an execution plan it will tell you that the connect by is done without the filter and then the filter is applied.
    PLAN_TABLE_OUTPUT                                                                                                                                                                                                                                                                                         
    Plan hash value: 2892478533                                                                                                                                                                                                                                                                                 
    | Id  | Operation                     | Name | Rows  | Cost (%CPU)| Time     |                                                                                                                                                                                                                              
    |   0 | SELECT STATEMENT              |      |     1 |     2   (0)| 00:00:01 |                                                                                                                                                                                                                              
    |*  1 |  FILTER                       |      |       |            |          |                                                                                                                                                                                                                              
    |*  2 |   CONNECT BY WITHOUT FILTERING|      |       |            |          |                                                                                                                                                                                                                              
    |   3 |    FAST DUAL                  |      |     1 |     2   (0)| 00:00:01 |                                                                                                                                                                                                                              
    Predicate Information (identified by operation id):                                                                                                                                                                                                                                                         
       1 - filter(TO_CHAR(TO_DATE(' 2013-02-01 00:00:00', 'syyyy-mm-dd                                                                                                                                                                                                                                          
                  hh24:mi:ss')+LEVEL-1,'fmDAY')='TUESDAY')                                                                                                                                                                                                                                                      
       2 - filter(LEVEL<=28)                                                                                                                                                                                                                                                                                    
    17 rows selected

  • REG:: Unable to save Queries in Portal

    Hi,
    I encountered a serious issue when I am trying to save BI 7.0 Queries in Portal.
    It says,"The Standard Transport system is Active. You cannot save"
    I searched some sdn pages and read OSS Note 356018.
    The solution they provided was to make the Activate Portal Activity Reports to false
    But in my senario, I cannot deactivate the activity Reports.
    Is there any other way to solve this issue ?
    Regards,
    Pappala.
    Edited by: VijayKPappala on Apr 20, 2010 9:25 AM

    I think only way is to switch off standard in RSA1.

  • Reg; Webi Reporting Queries

    Hi Gurus.
    1. How to add 6 months to the current date in Webi report..
    2. My report is having last one year data,  I want to display only one month report from the Sys date..
    Regards
    L k Vepuri

    Relative months are poor in Webi. You're better creating something at the universe level. I've created a topic on the BOB forum that discusses relative dates in both SQL Server and Oracle:
    http://www.forumtopics.com/busobj/viewtopic.php?t=152613
    You need to be clear with your reporting requirement for a month since sysdate.
    An example of what is done at the database level:
    select DATEADD(mm,6,'2010-08-30')
    returns '2011-02-28'
    select DATEADD(dd,180,'2010-08-30')
    returns '2011-02-26'
    So while pumpactionshotgun has given you an approximation, there is currently no way for Webi to match a database's accuracy in relative months without massive high maintenance nested if statements.

  • Reg..SRM - MDM Queries.

    Hi,
    We are implementing SRM5.0 with SRM-MDM 2.0
    We have implemented the Standard Functionality of SRM-MDM2.0 without XI.
    We have some doubts pertaining to SRM-MDM2.0
    1) Why Key Mappings are required?
    2) What is the purpose of Linking Attributes with Categories?
    3) Why we have to upload the Images into several places.
        for eg in "Images" table and also in Catalog Items there is
        a field for images.Where exactly we have to upload images
        in Images table or in the Catalog Items field 
        called "Images".
    4) Functionality of "Mask"
    5) In the Shopping cart 'Context View' Tab is missing.
    6) How Shopping Cart will be used by the SRM user.
    7) How we mapped SRM user with SRM-MDM Catalog.
    8) In the "Catalogs Items" Table there is a field called "Relationships" what is the purpose of the same?
    Kindly help me on the questions with details description.
    BR,
    Priti

    Hi
    1.Why Key Mappings are required
    A remote system’s objects are mapped to master data objects withinMDM using key mapping. A key mapping maintains the relationshipbetween the remote system’s identifier (or key) for an object and thecorresponding master data object in MDM.A key in MDM is a remote system-specific and object-type-specificunique identifier.
    4. Functionality of Mask
    Masks is a static snapshot of the repository in other words it is a virtual repository that we create. Masks can be easily created based on your search in the Data manager client. You can then store this search as mask. Masks have to be first created in the data manager, this mask can be assigned to a given user in the console manager under the Roles table. Once the user is assigned mask he will be able to see only those records assigned to him. In other words it acts like views.
    Masks can be also passed as parameter in the url if you are viewing the catalog in the browser (SRM-MDM). Records need to be added manually to the masks they dont get added dynamically.
    8. Realtionships table
    For relationships table you need to create relations between your records. This can be helpful when you have items details for procurement where your Main item can be related to a subsitute item or a component item or its accessories.
    You can create relation ships in the main table record in the data Manager in the record mode just double click on the relationship pane in the Record Detail tab...you will get the relationship box for that record than you can just drag and drop other records as per the relation you want it to maintain with other records.
    I think it may help u
    Regards
    Hari

  • Reg: File Extraction from SAP Queries via background job

    Hi ,
    Is it possible to Extract a file to the presentation Server by running the ABAP Query's through SQ01 as a back ground job to generate a file automatically without running it manually.
    I have tried recording the query's thru SQ01 with the File store Option to download it to Excel on the Presentation server.I have used CAll Transaction for SQ01 in the Zprg and submitted that Query to be able to download that Query in the mentioned path .The Zprg was executed via Background job.The file is extracted to the presentation server when the Zprg was executed via Foreground,but its not getting Downloaded to Excel Via Back ground job.
    Please provide me the solution.
    Thanks in advance,
    Prem

    Hi
    u cannot get file in presentation server.. in background..
    if you are scheduling any background jobs it should be out of any gui interface.. like gui_dowload , gui_upload// ur need to replace then with cl_gui_fronend_services Class
    or u have a option of writing file to application server in background using open dataset syntax.

Maybe you are looking for