Query Areas on SQ01

Hi experts,
I am performing an upgrade from r3 4.6 to 6.0.
On the new version; everytime we enter on the transacction SQ01 we have to change the parameter Enviroment/ Query Areas from value Global area to standard Area.
Is there any way to set this as default for everytime we enter? I thing that we can do this with a user parameter on the transaction su10; but i have no idea of what the parameter could be.
Does anybody can give me some help about this please?
Tank-you very much.

Hello Artur,
This link should help you on this
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
Thanks & Regards
Vivek

Similar Messages

  • Transaction: SQ01 Query Areas

    Can you please tell me where to change the default query area? After our upgrade from 4.6 to ECC6 the SQ01 transaction defaults to Global Area (Cross Client) where as in 4.6 the default were Standard Area (Client specific). All our queries are on Standard area!!
    Thanks

    Hi
        Even you can do through sq01>system>user profile>own data>paramerter tab-->maintain paramter id AQW with 'blank' and save it.

  • Require TCode used by user for sap query created through SQ01

    Hi All,
    I have number of SAP Query in production that currently are used by different-2 user & created through SQ01
    My question is how to know the TCode that used by user for SAP Query.
    Thanks In Advance
    Regards
    San

    Charlie
    You did not get the question.
    I knew the TCode of the query which I had created using tcode SQ01. user is using this query to see the report
    Like I created query named 'order_line_details'. This query is basically to see the order & other details. To use this by user one TCode'zncv_ord_item'  has been created.
    So in the system lots of query are available. So i want to know the Tcode for those query that are using by user.
    Thanks in advance
    San

  • ABAP Query - SQ02 and SQ01 - custom selection criteria

    Hello
    I am on 46C. In my infoset I need to define three custom fields for selections. I am able to do that. Once I create my query these appear on the selection screen. So far so good.
    1. I need to use these custom selection fields as selection criteria for the tables in the join. How do I do that ?
    2. If I need to default some values for these selection criteria, I can do that in the definition. However I need the values to be greyed out to prevent the user from editing the values entered. How do I do that ?
    Thanks
    Hari

    1. I see that the standard variant assigned at the query level in SQ01. actually protects the selection field. There is no coding to make it only display. This answers part 2 of my question.
    2. I am positive that the additional SELECTION that was created is being used in the main join that retrieves data in the query (in addition to being used for other things). I am not sure why somebody would define it that way instead of just creating a regular selection field in SQ01. Could it be because there is custom coding present for additional fields and there is reference to the selection variables needed for the additional field ?
    How does one make this additional SELECTION also a criteria on the join ? I have attached the actual join Query generates - WRK, VKO and VTW are additional selection criteria.
    FYI - this is an existing query, that I need to enhance
    Thanks
    Hari
    SELECT MBEWBWKEY MBEWMATNR MBEWPEINH MBEWSTPRS MBEW~VERPR
           MBEWVPRSV MBEWZPLP1 MARAMATNR MARAMEINS MARA~MSTAE
           MARAMTART T001KBUKRS T001KBWKEY T001BUKRS T001~SPRAS
           T001WAERS MARCMATNR MARCMMSTA MARCPRCTR MARC~WERKS
           MVKEMATNR MVKEPRODH MVKEVKORG MVKEVMSTA MVKE~VTWEG
    INTO (MBEW-BWKEY , MBEW-MATNR , MBEW-PEINH , MBEW-STPRS , MBEW-VERPR
         , MBEW-VPRSV , MBEW-ZPLP1 , MARA-MATNR , MARA-MEINS , MARA-MSTAE
         , MARA-MTART , T001K-BUKRS , T001K-BWKEY , T001-BUKRS , T001-SPRAS
         , T001-WAERS , MARC-MATNR , MARC-MMSTA , MARC-PRCTR , MARC-WERKS
         , MVKE-MATNR , MVKE-PRODH , MVKE-VKORG , MVKE-VMSTA , MVKE-VTWEG )
    FROM ( MBEW
           INNER JOIN MARA
           ON MARAMATNR = MBEWMATNR
           INNER JOIN T001K
           ON T001KBWKEY = MBEWBWKEY
           INNER JOIN T001
           ON T001BUKRS = T001KBUKRS
           INNER JOIN MARC
           ON MARCMATNR = MBEWMATNR
           AND MARCWERKS = MBEWBWKEY
           INNER JOIN MVKE
           ON MVKEMATNR = MARAMATNR )
           WHERE MBEW~MATNR IN SP$00002
             AND MARA~MTART IN SP$00001
             AND MARC~WERKS IN WRK
             AND MVKE~VKORG IN VKO
             AND MVKE~VTWEG IN VTW
             AND MVKE~PRODH IN SP$00003.

  • Query output list - SQ01

    Hi Friends,
    When i execute a query by tcode SQ01 & save the result in local file (unconverted) as text format, then it gives many unescessay fields, like header text, description date cloumn headers etc.
    I want only the result (ASCII characters) that are seperated by space or either "tab" only.
    Can it be done through "Encoding" ? or do we need to change the query itself ?
    Please help.
    regards,
    Rohit

    Yeah it is clear visible that, the same combination might have available in different plants.
    So to avoid the duplicate entries, always select all the primary key fields available in all the tables in the output.
    If not atleast try restricting based on plant in the selection screen or any possible duplicate entreis.
    So add the key fields at Infoset level in SQ02

  • Default Query area to 'standard area' in Quary

    Hi Guys,
       Our company just upgrade from 4.6C to ECC6. In the query environment (SQ01), everytime we want to enter sq01 we must change the query area (Environment --> Query Areas) to 'standard area'. Can anybody guide me how to set as default to 'standard area' . Currently it's default to 'GLobal area'.
    Thanks in advance...
    -akma-

    Hello
    Try to insert parameter AQW as 'blank' in your user paramters. Also you can insert a default query group via paramater AQB.
    BR
    Søren Kirch
    LOGSTOR

  • I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me..

    I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me build the string .Below is the query and the out put. ( the string is building fine except the parameters are with out quotes)
    here is the procedure
    create or replace
    procedure temp(
        P_MTR_ID VARCHAR2,
        P_FROM_DATE    IN DATE ,
        P_THROUGH_DATE IN DATE ) AS
        L_XML CLOB;
        l_query VARCHAR2(2000);
    BEGIN
    l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
       ' AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ',''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
        ' AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ','' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
    SELECT DBMS_XMLQUERY.GETXML('L_QUERY') INTO L_XML   FROM DUAL;
    INSERT INTO NK VALUES (L_XML);
    DBMS_OUTPUT.PUT_LINE('L_QUERY IS :'||L_QUERY);
    END;
    OUTPUT parameters are in bold (the issue is they are coming without single quotes otherwise th equery is fine
    L_QUERY IS :SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),'9999999.000') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),'$9,999,999.00') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),'9999999.000') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,'mm/dd/yyyy') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,'hh24:mi'), '00:00','24:00', TO_CHAR(s_datetime+.000011574,'hh24:mi')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '1'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,'DD-MON-YY') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '2'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,' DD-MON-YY') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)

    The correct way to handle this is to use bind variables.
    And use DBMS_XMLGEN instead of DBMS_XMLQUERY :
    create or replace procedure temp (
      p_mtr_id       in varchar2
    , p_from_date    in date
    , p_through_date in date
    is
      l_xml   CLOB;
      l_query VARCHAR2(2000);
      l_ctx   dbms_xmlgen.ctxHandle;
    begin
      l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,'' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
      l_ctx := dbms_xmlgen.newContext(l_query);
      dbms_xmlgen.setBindValue(l_ctx, 'P_MTR_ID', p_mtr_id);
      dbms_xmlgen.setBindValue(l_ctx, 'P_FROM_DATE', to_char(p_from_date, 'DD-MON-YY'));
      dbms_xmlgen.setBindValue(l_ctx, 'P_THROUGH_DATE', to_char(p_through_date, 'DD-MON-YY'));
      l_xml := dbms_xmlgen.getXML(l_ctx);
      dbms_xmlgen.closeContext(l_ctx);
      insert into nk values (l_xml);
    end;

  • Items in project report(query) are listed under the "not assigned" (column)

    Hi All,
    Items in project reports (query) are listed under the "not assigned" (column name) Why it is so ?
    Start query : project reports & ask for period April 2008 (Period from/to). .
    You will see items listed under  Not assigned WBS Element (column name)
    If you choose for a period of April until June 2008 then you see more items under u201Cnot assignedu201D .
    Items should be under Assigned (column name) & not under the Not assigned (column name )
    Any suggestions highly appreciable.
    Thanks.

    Hi,
    How are you displaying the ITEM field in the BEx query designer? Is it displayed with "Key and Text"? If so and if the text is not loaded for this master, this may happen.
    Regards,
    Yogesh.

  • How do I find out which query are running??

    My client is connecting to the database and running application through the web. From the Unix system, I know his job took 99% of CPU time and running for 1 hour already. Is there anyway I can find out which query are running in the Oracle?? So I can tune this query?? thanks..

    Hi,
    You can use the following query to identify it.
    set linesize 100
    set pagesize 100
    SELECT substr(sql_text,1,40) sql,executions, rows_processed,
    rows_processed/executions "Rows/Exec",
    hash_value,address
    FROM V$SQLAREA WHERE executions > 100 AND rownum <= 10
    ORDER BY executions DESC;
    Rgds,
    Dhana

  • Publish a Query (T.code SQ01) in the portal

    Good Morning.
    I want know What are the step for publish a Query created with the T.Code SQ01 in the portal for ESS?
    Regards.

    I found the following steps:
    - Log on to the portal as an administrator.
    - Go to the Content Administration tab and choose Portal Content.
    - In the detailed navigation area, you need to use the Browse tab.
    - Choose the folder where will be created the iview.
    Right-click and choose New from archive => iView.
    The proble is what I not found the opcion New from archive.
    I Only found the following options:
    New===>iView
                    Page
                    Role
                    Workset
                    Layout
                    Folder
    However i selected the Option Iview.
    iView template - create an iView from an existing iView template
    But I don't found the iViewmaster com.sap.pct.hcm.eeprofilegenericiviewlist.
    Can someone give me a help with this?
    Regards

  • Click a line in query created from SQ01 - Purchase requisition.

    Hi all,
    my problem is: Tcode SQ01, i've created a query where query's fields are:
    purchase order,
    purchase requisition,
    maintenance order.
    In change query phase, menu Goto --> Report assignment
    i've choosed two standard Tcode:
    IW32
    ME53N
    so that when i click a line of my query and chose iw32 i really can change the order clicked on my query but when i choose ME53n i can only display the last purchase requisition displayed e not that I really clicked on my query!
    So, how can i display the purchase requisition clicked on my query?
    Are there someone help me?
    Thanks a lots,
    Alex.

    Hi Phyllis,
    I face the same problem that Alessandro and I've changed the report assignment to the old transaction ME53. Unfortunately, when I click in the purchase requisition the new ME53N is called instead of ME53.
    Do you have any idea why is this happening?
    Thanks in advance for any help.
    Regards,
    Sara

  • Variable input values in the query are displayed wrong

    Hi experts,
    I executed a report and in the variable input screen it asks for a key date and company code.
    We entered key date and company code and executed the report.
    We want to take a print out of the output. But the variables which we entered in the variable screens are
    dispalying wrong. i.e if we have entered company code as gsml and key date as 01.01.2008.
    In the report output I am getting as:
    Company code: gsml
    Keydate: #..27-11-4745
    But keydate should be displayed as 01.01.2008
    How to solve this ?
    Regards,
    Nishuv.

    Nishuv,
    Please follow below steps:
    1. Open query through Bex - Query Designer
    2. Beneath the Rows Area( where you actually  drag in charactertistics), you'll be finding two tabs Filter and Rows/Columns
    3. Click on Filter Tab
    4.You'll be navigated to a window, there you can trace two Workareas
            a. Characteristic Restrictions: Where drag in the relevant Prompts/Input Variables
            b. Default Vaules
    5.First, Drag the required promts/Input Variables in Characteristics Restrictions.
    6.Click on the varible which was dragged in Characteristic Restriction area and drop it into default values area.
    7.Now you'll have visibility of variable in two regions, Characteristics and Default Values.
    8. Save and Execute the Query
    Regards,
    Yaseen

  • Always hided elements in structure (SAP BW query) are "activated" in WebI

    Hello WebI-experts
    We have an interesting challenge to get resolved, hopefully you can help us.
    As datasource we use a SAP query with two structures.
    One structure contains a variable (variable 0CMONTH of character 0CALMONTH) which is only relevant for the initial prompt, e.g.: 03.2010.
    This prompting variable itself has the property of "Always Hide" under Display setting.
    All the other elements of this structure have the setting "Always Show".
    The Universe on this SAP BW query already shows NOT the elements of this structure. It "only" shows the structure itself as dimension (icon).
    When designing a WebI query and executing it the result is:
    Showing the values for all the elements with property setting "Always Show" AND wrongly also the only one with "Always Hide". It is required to exclude the "Always Hide" element of the structure from the reporting view.
    Questions:
    1.) Are there any means to show the elements of the SAP BW query structure in the universe and therefore also in the WebI query? If there are no means....then question 2.
    2.) How can we exclude the "Always Hide" element of the structure from the reporting view?
    Thanks for any advise.
    Chäsitzer

    Hi
    I have altered the SAP BW query in the following manner:
    The "always hided" element in the structure of the query has been erased.
    The current structure only consists of 0CALMONTH variables, 0CMONTH, which itself are off-set ones, e.g.
    STRUCTURE in the query: (consists of 12 months)
    current month (variable 0CMONTH)
    current month -1  (variable 0CMONTH, off-set -1)
    current month -2  (variable 0CMONTH, off-set -2)
    current month -3  (variable 0CMONTH, off-set -3)
    current month -4  (variable 0CMONTH, off-set -4)
    current month -5  (variable 0CMONTH, off-set -5)
    current month -6  (variable 0CMONTH, off-set -6)
    current month -7  (variable 0CMONTH, off-set -7)
    current month -8  (variable 0CMONTH, off-set -8)
    current month -9  (variable 0CMONTH, off-set -9)
    current month -10  (variable 0CMONTH, off-set -10)
    current month -11  (variable 0CMONTH, off-set -11)
    The universe itself consists "only" of this structure, the 12 months off-set variables are not displayed respective editable.
    How can we display the exact 0CALMONTH variable values, counting down from the current month, in our WebI report, e.g.:
    Rows of WebI report SHOULD show:
    Nov 2010
    Oct 2010
    Sep 2010
    Aug 2010
    Jul 2010
    Jun 2010
    May 2010
    Apr 2010
    Mar 2010
    Feb 2010
    Jan 2010
    Dec 2009
    Thanks for your help.
    Chäsitzer
    Edited by: Chäsitzer on Nov 5, 2010 3:41 PM
    Edited by: Chäsitzer on Nov 5, 2010 3:42 PM
    Edited by: Chäsitzer on Nov 5, 2010 3:43 PM

  • Convert query made u200Bu200Bin SQ01, SQ02 and SQ03 for a transaction set

    Hello people, how do I create a transaction for a report I did in queries with the transaction SQ01, SQ02 and SQ03? ...
    hugs

    Hi Stelio Mucavele
    i had the same issue resolved by below steps
    1>go to SQVI t code and  enter your query name and press enter
    2>In the menu path select Quick view--> additional functions-->Generate Program
    3>After Generating the program In the menu path select Quick view--> additional functions-->Display report Name
    4>Now in se38 enter the report name in Program field and execute
    5>You will get the Initial Selection screen of the report . Go to Menu of System -->Status
    6> Note down the Program name and Screen number
    7>Go to SE93 and Create a Z tcode for the query, Enter the description  and importantly you have to select the 2nd Option radio Button Program and Selection Screen (Report Transaction) and Press enter
    8>In the next screen enter the Report name In Program field and enter the screen number
    9>In the classification Section select Professional user  Transaction
    10>In GUI support section select all the options  i.e SAPGUI for HTML,Java,Windows
    and save
    the system will ask for Package select your package if not there then select local object
    now execute the Z tcode your report will run sucessfully
    Regards
    Vijay hebbal

  • Results from query are not shown (FRM-40350)

    When I do a query on a form I get the message FRM-40350 Query caused no records to be retrieved. But when I use count query there are records fetched..
    I would like to know what can be causing this.
    I am using Designer 2.1.2 with Headstart 2.1.2.

    Dear Prakash,
    you have saved our day!!
    That was exactly to step needed to bring the key figures into the query.
    Why is this not documented anywhere?
    Thank you very much,
    Mathias

Maybe you are looking for

  • How do you automatically stick images together without merging?

    I have to make an animation for a game, and I have to put a large numer of images exactly next to eachother in a line. This takes a lot of time to do by hand. Is there a way (or software) to do this automatically? Thanx! -x-

  • My GTX580 is not working with premiere cs6

    I just bought a GTX580 in the hopes of getting faster rendering and exporting. Premiere says that it's enabled "Mercury playback engine GPU Acce..." But when i export the CPU works instead of the GPU, Any ideas? Thanks .

  • Left/right volume constantly borking u

    Has anyone else experienced this weird problem where left or right speaker volume is not synchronized with the other one? I'm using multimedia keyboard to change volume but it never caused problems before. WinXP, X-Fi XM and latest drivers of course.

  • Default Language in CE

    Hi folks We are using: bash-3.00# ./imsimta version Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008) libimta.so 7.0-0.04 64bit (built 01:33:37, Jun 20 2008) Using /opt/sun/comms/messaging64/config/imta.cnf SunOS con 5.10 Generi

  • Print too small to read from printer with Page shrink on 30%

    When printing some emails on Xerox 7225 the print is too small to read even with page shrink on 30%. latest email is from an AOL account and header lines do wrap. This problem is new.