Clustor table in Query - SQ01

Hi All
I know that clustor tables can not be used in joins.
Can any body please let me know how do I use data in table REGUP with joines. Also I want to know where can we use output of one infoset or SQ01 in other ??
Thanks in advance
Sameer

HI All
I could find how to join the clustor table in the SQ01. Use it as extra table , a select single statement is created which gives the desired result.
Is there any procedure for giving points to self?????

Similar Messages

  • ABAp query SQ01

    Hi guys,
    I want to make a ABAP Query via SQ01on SAP ECC.
    First i had created an infoset, that only based on one table.
    My requirement is to fetch alle data from this table grouped by customer number.
    Using an sql statement is this very easy to do, but in i had trouble making this in SAP (SQ01):
    SELECT CUST_ID, COUNT(ORDERID)
    FROM
    TABLE
    WHRE CONDITIONS
    GROUP by CUST_ID
    HAVING COUNT(ORDERID) > 1
    My question is where to put my requirement in order to get result using standard ABAP query SQ01.
    I will really appreciate your help.
    nabil

    Hi,
    Welcome to SDN.
    This is not possible exactly with ABAP Query but can be easily done by ADHOC query. Using Set operation A-B.
    Check the links for ADHOC Query -
    <a href="http://www.sap.cmich.edu/fihr/hr/adhoc-query.doc">http://www.sap.cmich.edu/fihr/hr/adhoc-query.doc</a>
    Regards,
    Amit
    Reward all helpful replies.

  • Interactivity in ABAP Query [SQ01]. Working on ABAP 4.6C version.

    Hi,
    I have created a Infoset[SQ02]( basically selecting data from VBAK and VBAP for Sales Order) and assigned this infoset to user group[SQ03]. Using this i have created a Query [SQ01].
    In the output i have the "<b>SALES ORDER NUMBER</b>".
    Once the sales order number is double-clicked on i have to display the VA03 transaction with the sales order number in it.
    My doubt is, how is this interactivity acheived. I am working on ABAP 4.6C.
    Thanks in Advance for your esteemed replies.
    Regards,
    Raghavendra Goutham P.

    AT LINE-SELECTION.
    case sy-cucol.
    when 16 OR 17 . "Col No
    DATA: BDCDATA TYPE TABLE OF BDCDATA.
    DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
    DATA: PROGRAM LIKE SY-REPID,
          WA_BDCDATA TYPE BDCDATA.
    WA_BDCDATA-PROGRAM  = 'SAPMV45A'.
    WA_BDCDATA-DYNPRO   = '0102'.
    WA_BDCDATA-DYNBEGIN = 'X'.
    WA_BDCDATA-FNAM     = 'VBAK-VBELN'.
    WA_BDCDATA-FVAL     = IT_ITAB-VBELN.
    APPEND WA_BDCDATA TO BDCDATA.
    CLEAR WA_BDCDATA.
    CALL TRANSACTION 'VA03'  USING BDCDATA  MODE 'A'
                             MESSAGES INTO ITAB.
    Regards
    Ravi

  • ABAP Query (SQ01) Challenge

    I asked this question last time as well but with no positive/helpful answer. I need to develop a query ( SQ01) in which the user just wants to see when was the most recent posting done in the given G/L account. If i pull posting date it will give me all the dates in  chronical order or so which i dont really want.
    Lets get your gray/sap matter working
    THanks

    sameer
    if you know how to create query.
    code is
    Select requred data from BSIS into internal table (I_BSIS).
    Sort I_BSIS by key field date desending.
    when you sort this you will get the latest record in first by date.
    take that date in one temp field.
    LOOP AT I_BSIS.
       AT END OF key field
      SUM amount .
    move both date and sum amount to final internal table.
    ENDLOOP.
    At last take final internal table and use  in below FM
    WS_EXCEL.
    you will get output.
    Pls. reward if helpful

  • Add calculated field (Query - SQ01)

    Hi to all,
    I would know how can i add a calculated field to a Query (SQ01) ?
    Can you give me an example of abap code to insert in CODING section ?
    thks

    Hi,
    My understanding about your question is you want to display the total for two standard fields in a table,
    1) Personalize the table and make true for the property Total.
    2) If you want to calculate both the column total,
    Add a MessageStyledText via personalziation to the page, and extend the controller
    and in the ProcessRequest
    Get the handle of the AM and then ur attributes VO Attributes and traverse through the VO rows and get the total of both the columns
    and set the value to the newly created MessageStyledText.
    Let me you want any sample code for the second step.
    Thanks.
    With Regards,
    Kali.
    OSSi.

  • Delivery Header Text in SAP Query SQ01

    Hi Friends,
    My requirement is that I need to display the Header Text contents in Outbound delivery in a Query report using SQ01.
    As far as I know, we can pull only table fields in SQ01.
    Is it possible to include Text contents in SAP Query? Can we develop or enhance it?
    Regards,
    AK

    You can add structure and code in a dataset using SQ02, then it will be available to use in SQ01, but a long text can consist of many lines, and so you may require to truncate the text - read [SAP Query|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm] documentation
    - [Creating Additional Structures|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d9/9958d4c50a11d396f80000e82de14a/frameset.htm]
    - [Further Code|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d2/cb4504455611d189710000e8322d00/frameset.htm] (I suggest record processing or after the query get the table with the text id)
    So create a structure with some text fields, and fill it for every record read in futher code part.
    Regards,
    Raymond

  • How to create Query (Sq01) fro service contract

    hi,
    How to create Query for Service contracts , where i need to take a report for sub line items of that particular Service contract.
    Ex: we maintain short text - services in the initial screen ,
           in the next screen we maintain the sub line items for that short text (Activity numbers).
    Please guide me on this.
    Regards,

    Hi Sowmya,
    1 Create User Group (SQ03)
    Specify the users who should be authorized to run the query.
    2.
    Create Infoset (SQ02)
    Indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query.
    3.
    Create Queries (SQ01)
    Create the query and arrange the layout
    for joining the two tables there should be common field should be available in both the tables then only we can able to join the table and run the query
    or use this below link
    http://www.sap-img.com/abap/step-for-using-query-sq01-sq02-sq03.htm
    Regards,
    Pramod

  • How to see lock on table and query?

    Hi All,
    How do we see lock on table and query?
    Thanks,
    Rafi

    Yes Rafi,
    It is working fine at my end. See below:
    Opened Session 1 with scott/tiger and:
    update emp set ename='xx' where empno=7499;
    Opened Session 2 with scott/tiger and:
    update emp set ename='xx' where empno=7499;
    <<Its lock here>> This session is locked by above one.
    Opened Session 3 with sys/pw as sysdba and:
    SQL> set serveroutput on
    SQL> BEGIN
      2  dbms_output.enable(1000000);
      3  for do_loop in (select session_id, a.object_id, xidsqn, oracle_username, b.owner owner,
      4  b.object_name object_name, b.object_type object_type
      5  FROM v$locked_object a, dba_objects b
      6  WHERE xidsqn != 0
      7  and b.object_id = a.object_id)
      8  loop
      9  dbms_output.put_line('.');
    10  dbms_output.put_line('Blocking Session : '||do_loop.session_id);
    11  dbms_output.put_line('Object (Owner/Name): '||do_loop.owner||'.'||do_loop.object_name);
    12  dbms_output.put_line('Object Type : '||do_loop.object_type);
    13  for next_loop in (select sid from v$lock
    14  where id2 = do_loop.xidsqn
    15  and sid != do_loop.session_id)
    16  LOOP
    17  dbms_output.put_line('Sessions being blocked : '||next_loop.sid);
    18  end loop;
    19  end loop;
    20  END;
    21  /
    Blocking Session : 139
    Object (Owner/Name): SCOTT.EMP
    Object Type : TABLE
    Sessions being blocked : 134
    PL/SQL procedure successfully completed.HTH
    Girish Sharma

  • Query SQ01

    Hello SAP Gurus
    Can anyone provide me with SQ01 documentation or any links regarding SAP query concept like how to create and copy things....
    Thanks for your help
    Kishore

    Re: Query SQ01  
    Posted: May 5, 2007 8:39 PM    in response to: Chandra       Reply      E-mail this post 
    Hi Chandra,
    can you send me the same documentaiton please.
    My mail Id : [email protected]
    Thanks in advance.
    Kris

  • Can we create prompts in Derived Table sql query

    Hi,
    I am trying to define derived table sql query as below. Though the syntax parsing is going through but when I am generating the report it is throwing and invalid prompt definition error.
    " select * from table_a where call_direction = @Prompt('Enter Call Direction','A','"derivedtable_a".SHORT_STRING',mono,free,not_persistent,) and
    where call_type = @Prompt('Enter Call Direction','A','"derivedtable_b".SHORT_STRING',mono,free,not_persistent,) "
    Can somebody please share your thoughts if this can be achieved in universe or not ?
    Appreciate immediate responses as it is a show stopper for my deliverable.
    Thanks in advance.
    Thanks and Regards,
    Shireen.

    Hi Shireen
    We can use prompt in the derived table. There is issue with the SQL that you have used while creating the Derived Table.
    Instead of using the "derivedtable_a".SHORT_STRING' field use the object from the class on which you are creating the derived table.
    For example: If you are creating a derived table in the sample universe efashion on Agg_yr_qt_rn_st_ln_ca_sr table then use the following query:
    SELECT *
    FROM Agg_yr_qt_rn_st_ln_ca_sr
    WHERE Agg_yr_qt_rn_st_ln_ca_sr.Yr = @Prompt ('Enter Value','C','Time Period\Year',mono,constrained)
    Hope this helps!
    Thanks

  • How to Hide Empty Column In SAP Query (SQ01)

    I was crated a report in sq01 based on business requirements , but there are some fields without any content , in sq01 if you select one of output fields in the right side of the screen in the left side you can see  "List Fields" T in the list fields there is a check box , the name is "Only display field if <> 0 " , but when i check it, it doesn't work  , guys is there any one to help me to eliminate column without content , in the result of sap query (sq01) ??

    Please give reference (or hyperlink) to 10 Useful Tips on Infoset Queries (original document)
    Regards,
    Raymond

  • Linking logical database to TABLE in query

    Can we link Logical Database to Table during query creation in tcode SQVI
    Message was edited by:
            rohith modi
    Message was edited by:
            rohith modi

    go to sqvi and select "Table Join"in data source and enter title select radio button for "basis mode" and enter u reach a new screen in that new screen press "insert table" and give ur table name and again  press "insert table" and give another table in thsi way we can joint table in ABAP query.
    reward points if it is helpful

  • How to build table join query in Jdeveloper

    Hi,
    Can someone tell me how to build table join query in Jdeveloper's Expression Builder UI?

    [Is it possible to create a table of contents in Crystal Reports?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333133303330%7D.do]

  • CANT execute query with parameter on user defined tables using query genera

    Dear All,
    I have problem when executing query with parameter on user defined tables using query generator.
    It seems SBO cannot accept parameter to query user defined tables.
    I've tried these:
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = [%0] --- this FAIL
    I try to pass the value directly without using parameter and It works
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = 2 --- this SUCCESS
    This one works
    SELECT * FROM RDOC T0 WHERE T0.width =[%0]  --- this SUCCESS
    and this one works too
    SELECT * FROM RDOC T0 WHERE T0.width = 595  --- this SUCCESS
    Is there anyone can help me ....???
    Thanks,
    Alfa

    I  generated this code using query wizard ....
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = (N'2' )
    and replaced the (N'2' ) with [%0]
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = [%0]
    and It worked ......
    Thanks 4 all .....

  • How to define table specific QUERY in parameter file for Export Utility

    Hi All
    I am trying to create A SINGLE parameter file for export utility. I have 2 tables and want to use a different QUERY condition for each of these tables. However i do not want to create 2 seperate parameter files for this and run/script exp twice.
    Is there a way to do it ?
    NOTE: I am using normal export utility for Version 9 and NOT oracle data pump.
    Following is an example of what i want to achive in parameter file:
    Tables = (TabA,TabB)
    # for table - TabA
    QUERY = "where id =25"
    #for table - TabB
    QUERY = " where court_id=54 and id >1"
    Please advice on syntax of parameter file so that exp knows that it has to process 1st condition for only TabA and second condition for TabB.
    Any samples/syntax examples are greately appreciated.
    thanks in advance!
    cool tech

    No there is no such alternative. Query condition is applicable to all the tables listed in TABLES parameter.
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#1005843

Maybe you are looking for

  • Printing landscape on HP LaserJet

    Ever since upgrading to OS X Leopard, I can no longer print in Landscape on a HP LaserJet printer. Does anyone know how to fix or get around this issue? Thanks.

  • Control of Inspection Lot Creation in Material Master settings

    Hi There are settings like 1 for each  document material,  batch ,storage location 2 for each   material,  batch ,storage location . X for PO  , batch and storage location . for each material document item In the Control inspection settings of materi

  • Email:Problem of more than 255 characters in a contents_bin row,not solved.

    Hi all, I have tried everything to send an excel email attachment having line size >255 using function module SO_NEW_DOCUMENT_ATT_SEND_API1 .My internal table has 22 fields which is the ouput of a report. I have tried compressing and decompressing an

  • Error Building BPEL Process

    Hi, When we build the test task in BPEL Process, it give error as [bpeltest] <Line 39, Column 173>: XML-22016: (Error) Extension function namespa ce should start with 'http://www.oracle.com/XSL/Transform/java/'. Even then it displays a message as [ec

  • Publishing text boxes as images

    When I publish my website to .Mac or to a folder, iWeb writes all the text elements as .png graphics. As the text is no longer scannable, this prevents me from doing any keyword optimizing and SEO - Search Engine Optimizing. This is a serious issue a