Regarding Standar Queries

Hi Experts,
Does SAP stores the result of the query permanently in a table?  If yes than please specify the name of the table.
Thanks & Regards

Hi,
Report can't stor eresult permanently, but using Broad coster or RSCRM_BAPI we can store the result whereever you want
Re: Running Quaries automatically and saving them in as a Excel file in Server
Re: Data transfer to external systems
Re: Loading from a Custom R/3 Table
Re: How can I schedule my Bex report to execute in background
Re: How can I insert the RSCRM_BAPI into Process chain?
Some usefull tables for Reports not for Result
RSZELTDIR Directory of the reporting component elements
RSZELTTXT Texts of reporting component elements
RSZELTXREF Directory of query element references
RSRREPDIR Directory of all reports (Query GENUNIID)
RSZCOMPDIR Directory of reporting components
RSZRANGE Selection specification for an element
RSZSELECT Selection properties of an element
RSZELTDIR Directory of the reporting component elements
RSZCOMPIC Assignment reuseable component <-> InfoCube
RSZELTPRIO Priorities with element collisions
RSZELTPROP Element properties (settings)
RSZELTATTR Attribute selection per dimension element
RSZCALC Definition of a formula element
RSZCEL Query Designer: Directory of Cells
RSZGLOBV Global Variables in Reporting
Thanks
Reddy

Similar Messages

  • Regarding Standard Queries

    Hi Experts,
    Please tell me are there any standard queries or Cubes are available for the following reports?
    A) ANNUAL ORDER BOOK TARGET
    B) ORDER BOOK TARGET TILL THE LAST MONTH
    C) ACTUAL ORDER BOOK ACHIEVED TILL LAST MONTH
    D) TOTAL U.E.O.B.TILL LAST MONTH
    E) ORDER EXPECTED IN THE CURRENT MONTH
    F) ORDER LOST DURING THE MONTH
    Thanks In advance

    Hi,
    It depends on Requirements.
    1. Find out the requirements gathering from the functional team.
    2. Gather the reporting layouts as you mentioned list.
    3. check any  standared objects suitable to your requirement (Mentioned Reports).
    4. If any Standard Objects available then
    Goto RSA1> Select Metadata repository> Give the Datataget name--> Select Search button.
    it will display the network flow. click on Network flow--> you can find the Standard Reports.
    5. You can install the standard suitable reports from BI Content.
    6. If Standared Objects are not available in BI content, then you have to customize the Objects link Datasource/DSO/CUBEs and Queries which are more relevant to your requirement.
    Regards,
    Suman

  • Regarding parallel queries in ABAP same as in oracle 10g

    Hi,
       Is there any way we can write parallel queries in ABAP, in the same way we do in oracle 10g.Kindly see below;
    alter table emp parallel (degree 4);
    select degree from user_tables where table_name = 'EMP';
    select count(*) from emp;
    alter table emp noparallel;
    SELECT /*+ PARALLEL(emp,4) / COUNT()
    FROM emp;
    The idea here is to distribute the load of select query in multiple CPUs for load balancing & performance improvement.
    Kindly advise.
    Thanks:
    Gaurav

    Hi,
    >    Is there any way we can write parallel queries in ABAP, in the same way we do in oracle 10g.
    sure. Since it is just a hint...
    SELECT *
      FROM t100 INTO TABLE it100
      %_HINTS ORACLE 'PARALLEL(T100,4)'.
    will give you such an execution plan for example:
    SELECT STATEMENT ( Estimated Costs = 651 , Estimated #Rows = 924.308 )
           4 PX COORDINATOR
               3 PX SEND QC (RANDOM) :TQ10000
                 ( Estim. Costs = 651 , Estim. #Rows = 924.308 )
                 Estim. CPU-Costs = 33.377.789 Estim. IO-Costs = 646
                   2 PX BLOCK ITERATOR
                     ( Estim. Costs = 651 , Estim. #Rows = 924.308 )
                     Estim. CPU-Costs = 33.377.789 Estim. IO-Costs = 646
                       1 TABLE ACCESS FULL T100
                         ( Estim. Costs = 651 , Estim. #Rows = 924.308 )
                         Estim. CPU-Costs = 33.377.789 Estim. IO-Costs = 646
    PX = Parallel eXecution...
    But be sure that you know what you do with the parallel execution option... it is not scalable.... .
    Kind regards,
    Hermann

  • Regarding SAP Queries

    HI Friends
    I have got a bunch of requirements, related to SAP Queries.
    I was serching for that, in that regards I am seeking your kind help.
    1) I have to write a function module to retrive what are the tables and fields are using in a query.
    2) I need execute a SAP Query through a function module and retrive the result into a table and export that to the function module.
    One more thing which I need where these all SAP Queries will save, are there any tables where the information store and what are the fields, tables and join conditions for that queries.
    Can you please help me with your suggestions.
    Points will be rewarded.
    Awaiting for your reply.
    Thanks in advance
    Praveen

    Hi,
    when you start a query (F8) you get the query´s name as a program (a query is at the end nothing else but a program). If you then go to transaction SE38 and enter the query´s name, you can then explore the core in order to get the objects that you need:
    Search for tables
      SELECT tabname FROM d010tab
         WHERE master = program
         AND   tabname =
    Search for function modules
        SELECT NAME FROM cross
           WHERE include =
           AND   type = 'F'
           AND   name =
    Search for data elements
        SELECT rollname FROM dd03vv
         WHERE tabname = myline-objekt
         AND   rollname =
    Something specific and quick for you to get should not exist. This is going to be a difficult task.

  • Am I missing something regarding database queries from BPEL?

    Hi,
    I'm trying to execute what I would think is a simple query from within a BPEL process against an Oracle 10g database.
    I have a root table, meter_reading that has an id, a time, a value, and a foreign key to a meter_reading_type table with a simple id-name-description format.
    How do I create a PartnerLink in BPEL that queries for the last reading of a particular type? The SQL is easy. The problem is that with the relationship, I can't find the proper format for a pass-through query so that I can do the subselect AND the select by type (name column).
    Also, is it possible with the BPEL PM/OC4J combination to output the queries being generated from Toplink?
    I've looked through the toplink docs, but they seem to refer to doing this in Java, not in the toplink_mappings.xml file.
    Any help would be appreciated. If I'm missing something obvious, please point it out.
    Thanks for your time,
    Chris

    I am guessing from the examples and from looking around that the only solution to this complexity is stored procs and functions. What happens if you're not allowed to use them? Seems like an awkward part of a product that is owned by Oracle.
    C

  • Regarding Jump Queries

    Hi Guys,
                   I want to pass three variable values from sender query to recieving query. can anybody explain me how to do this.
    Ex:
    Sender query : fiscal/period
                          profit center 
                          financial stmt heir node.
    Thanks
    Venkat

    Hi Voodi,
                   How to pass heirarchy node variable to target query.
    My req like this..
    i have financial statement heirarchy, customer click the particular account num in node, it will display only that account details. in my target query i don't have financial statement heirarchy but i have GL account .
    please help..
    Thanks
    Venkat

  • Regarding SQL Queries

    Iam developing a randomizing program .which selects random rows frm the database.iam using sql as backend and asp.net as front end.
    i allow user to give a number say 1000, so 1000 random rows will be slected frm the database.iam using NEWID() for random selection.
    But how do i put the user value into query. so as to select that many random rows from the databse.
    please help me out on this

    SQL> select * from (select * from scott.emp order by dbms_random.random) where rownum < 5 order by 1 ;
         EMPNO ENAME      JOB              MGR HIREDATE           SAL       COMM     DEPTNO
          7499 ALLEN      SALESMAN        7698 20-FEB-1981       1600        300         30
          7566 JONES      MANAGER         7839 02-APR-1981       2975                    20
          7876 ADAMS      CLERK           7788 23-MAY-1987       1100                    20
          7902 FORD       ANALYST         7566 03-DEC-1981       3000                    20
    SQL> select * from (select * from scott.emp order by dbms_random.random) where rownum < 5 order by 1 ;
         EMPNO ENAME      JOB              MGR HIREDATE           SAL       COMM     DEPTNO
          7499 ALLEN      SALESMAN        7698 20-FEB-1981       1600        300         30
          7566 JONES      MANAGER         7839 02-APR-1981       2975                    20
          7782 CLARK      MANAGER         7839 09-JUN-1981       2450                    10
          7839 KING       PRESIDENT            17-NOV-1981       5000                    10
    SQL> select * from (select * from scott.emp order by dbms_random.random) where rownum < 5 order by 1 ;
         EMPNO ENAME      JOB              MGR HIREDATE           SAL       COMM     DEPTNO
          7521 WARD       SALESMAN        7698 22-FEB-1981       1250        500         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981       2850                    30
          7844 TURNER     SALESMAN        7698 08-SEP-1981       1500          0         30
          7900 JAMES      CLERK           7698 03-DEC-1981        950                    30
    SQL>                                                                  

  • Regarding standar report using tcode FAGLL03

    I am creating a report using table bsis in which I am checking total items for a particular GL account in a month.
    I am comparing the report output with tcode FAGLL03 for the same GL account and the same period. But it is not matching.
    Can anybody tell me why??
    The total of data in my report is matching with that of table bsis.

    hi,
    to select open items you must select bsis and bsas (dependent from field target date = STIDA)
    A.

  • Stored procedure for exec. multiple insert queries

    Hello everybody,
    I am running on
    select banner from v$version;
    Output:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    I am a new to oracle and I need some help.
    I have to populate a table on monthly basis, for which I am required to run 20 queries.
    All queries retrieve data from the same table in another schema.
    I need to schedule a SP in order to be able to run all these queries.
    Till now, I have built separate SPs for the queries Proc_1, Proc_2, Proc_3, ..., Proc_20 and a final big SP (*main_sp*) which calls these SPs.
    Being that I have to change the date value for every month (I am doing it manually every single month), for every single query,
    I was wondering if there is a way to include all these queries in a single stored procedure.
    I am reading here execute parallel queries
    but I do not want to create 20 jobs.
    I found this topic, which seems to be interesting too, but I have never done this before:
    Executing multiple SQL scripts in a batch
    Moreover, how can I manage to insert the value of date only once (e.g in the main_sp) and every queries gets this value automatically.
    P.S.
    All queries retrieve data from the same table in another schema and fill in with data the same table in actual schema.
    insert into destin_tbl
    select from source_tbl@dbb_link
    Here is how my actual work looks like:
    First, I have built 20 sp, for each and every query:
    CREATE OR REPLACE PROCEDURE "SP_1" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_1;
    = = = = = =
    CREATE OR REPLACE PROCEDURE "SP_2" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_2;
    CREATE OR REPLACE PROCEDURE "SP_20" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_20;
    I change the values for the date_key field every month I need to insert data, before I run the main_sp:
    CREATE OR REPLACE PROCEDURE "main_sp" (
    START_DATE out DATE
    IS
    BEGIN
    sp_1(START_DATE);
    sp_2(START_DATE);
    sp_3(START_DATE);
    sp_20(START_DATE);
    END main_sp;
    /

    You would need to pass a parameter to the main procedure and to all of the sub procedures. I would do it somethign like this. The main procedure takes a single date parameter the way I have structured it here, any date in the month you are interested in will do
    PROCEDURE main_sp(p_date IN DATE)
       l_st_dt  VARCHAR2(8);
       l_end_dt VARCHAR2(8);
    BEGIN
       l_st_dt := TO_CHAR(TRUNC(p_date, 'Mon'), 'yyyymmdd');
       l_end_dt := TO_CHAR(LAST_DAY(p_date) + 1, 'yyyymmdd');
       sp_1 (l_st_dt, l_end_dt);
       sp_2 (l_st_dt, l_end_dt);
    END;Then your individual procedures would look something like:
    PROCEDURE SP_1 (p_st_dt  IN VARCHAR2,
                    p_end_dt IN VARCHAR2) IS
    BEGIN
       insert /*+ append nologging parallel(x,4)*/into destin_tbl x
       select /*+ parallel(a,4)*/ field_1, field_2, field_3
       from source_tbl@dbb_link a
       where a.date_key >= p_st_dt and a.date_key < p_end_dt -- full month (december 2010) here
         and other conditions
       commit;
    END;
    Regarding the queries...they do not change only in the conditions statement, but also in the retrieve.
    I have 2 constant fields, whose value changes based on conditions (e.g. query_1 retrieves data regarding diesel car >speed => constant_field_1 = 'Diesel|_Car_Speed' ... query_2 retrieves data related to motorbike unleaded speed >=> constant_field_1 = 'MotorB_UL_Speed'.
    These makes the grouping of these queries impossible.Without seeing actual queries, it is impossible to say, but my guess would be that the 20 queries could be reduced to a single query, or at least less than 20. Something like:
    insert into destin_tbl x
    select CASE WHEN condition that indicates car THEN 'Diesel|_Car_Speed'
                WHEN condition that indicates motor bike THEN 'MotorB_UL_Speed'
                WHEN other conditions THEN other field1 values END
           field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= p_st_dt and
          a.date_key < p_end_dt
      and other conditionsThe conditions for the CASE statement could be pulled out of the where caluses for the individual queries.
    John
    Edited by: John Spencer on Jan 24, 2011 9:37 AM

  • Doubt regarding testing Soap scenario (HTTPS)

    Hello Experts,
    I have a scenario where a Bapi functionality(server proxy) is exposed as a webservice .
    So scenario will be SOAP -> XI -> Proxy (calls a BAPI).
    I need to use https for this scenario. I have read most of the blogs and threads regarding this and will proceed accordingly.
    I have a simple doubt :
    After configuring a scenario to *only* accept a Soap message with appropriate valid certificate -
    If I have to test my scenario using XML spy, how can I  attach a certificate to Soap request in XML spy?
    Or is their any feature available in XMl spy or in Xi itself to do these kind of test?
    or please suggest me a work around to test the scenario configuration with certificates.
    Thanks in Advance!
    Regards,
    Xi Queries.

    Hi Swarup,
      I would like to know :
    What happens when a check for certificate validation fails in XI? It may be due to invalid certificate, expired certificate or a request from unauthorised user-
    - Will it be raised as a exception and we need to do some configuration to inform it back to Sender?
    - Will the message fail in Moni with red flag ?
    - Alerts will be created ?
    Please share your experiences and expert sugestions.
    Thanks in Advance!!
    Regards,
    XI Queries.

  • Combined Queries

    Hi
    I have a query regarding combined queries. I am using BO XI R2 Deski. When i create combined queries, i have observed that BO is processing theses queries in the order from right to left i.e it is executing the last two queries first and then then the next right most and so on...
    For example if i want to calculate (A Union B) minus  (C Intersection D). I am unable to frame this query. When i see the SQL the order is different. Please advise how can i set this preference like first calculate ( A Union B) and ( C Intersection D) and then subtract bothe the result sets.
    Thanks,
    Raveendra

    Hi Raveendra,
    I Tried and able to perform operation Separately like (A union B) and (C Intersection D) and also succeed to put the result side by side but not able to succeed in finding the Minus of the results. Because as you said DESKI perform operations from left to right  for each combined query.
    I performed union and Intersection operations separately by using 2 data providers.
    I used demo universe eFashion  for union and intersection.
    The Steps followed are as follows:
    1. Select eFashion Take objects Year, Store Name, Sales revenue
    2. Click Combine Queries and Take same objects because Union operation requires both queries Must have have same objects.
    3. Union these 2 Queries Run The Report you will get the Union of 2 Queries. (A Union B)
    4.Select New Data Provider (Data New Data Provider)
    5. Select Universe you want  Take objects in Query C, I Took Same objects with different condition like (Year Inlist(2002,2003))
    6. Query D with Condition (Year Equalto(2002)) you will get Results (Query C intersection D). Results that contain only Year Equal to 2002.
    Now you have objects from 2 data providers together, Drag and Drop Objects from 2 data providers and put them at different places on Report now you can compare the results.
    Here we canu2019t Minus the results because when you click Edit Data Provider, DESKI will Prompt you to select the data provider to Edit and hence we can perform edit operation on One data provider one at a time and not together.
    I Hope this is useful.
    Thanksu2026
    Pratik

  • Queries with parameters - how do they get migrated?

    We are evaluating this migration to move a client off of access and put them into oracle. We use APEX for other things and like it. So, we tried with 3 tables, one query and one report. The tables moved fine, but the query failed. The log showed:
    Failed to Convert View <name> unexpected end of subtree: Line 0 Column 0.
    I began removing things to determine what was causing it. I finally got it to run when I got rid of the functions like iif, int and val. I think these are causing the issue. But, I still couldn't create the view because of the parameter in the query. Access prompts the user for this value before the query is run, but how would this translate to an Oracle view? And how would the report prompt the user for this value in Apex? Does this convert over automatically?
    If I have to rewrite the queries myself, I will. If I do, will that affect importing reports like this into Apex? Any suggestions?
    Thanks, Chris

    Hi Chris,
    Thanks for the updates.
    Currently the Oracle SQL Developer Migration Workbench translator does not support the parsing of the IIF function. I believe there is a bug already logged against this & a fix will be available in a future release of the Workbench.
    You may find it useful to refer to the following threads discussing alternative handling of queries using the IIF function -
    Access Queries with "IIF" function
    msaccess parser error
    As mentioned in the above postings, one option for you is to use a CASE statement, similar to the following:
    SELECT SUM(case when Table1.Week Between 1 And Ending_Week then Table1.Sales else 0 end) TY_Sales_YTD
    FROM Table1 ;
    If you wished to use such a query to display the resulting value on an Oracle APEX page, this could be implemented as follows:
    Note: Assuming that you have migrated the database schema to Oracle & have associated your APEX workspace with that schema.
    1. Create a new blank page in your APEX application. Add a new HTML region to your page.
    2. Create a "Select List with Submit" item and in its "List of Values Query" field enter syntax similar to the following:
    select week d, week r
    from table1
    order by 1
    and set the item name to P1_END_WK. Place the item on your HTML region. This item will act as the parameter in your query.
    3. Create a "Display as Text" item and set its Source region to be of type "SQL Query". Paste the following syntax into the items' source value field:
    SELECT SUM(case when Table1.Week Between 1 And :P1_END_WK then Table1.Sales else 0 end) TY_Sales_YTD
    FROM Table1
    and set the item name to P1_SUM. Place the item on your HTML region. This query will return the result based upon the user's selection of value in the P1_END_WK select list item.
    4. Add a branch to the page, setting it to branch to itself. Basically when the user selects a value from the P1_END_WK select list, this will submit the page. The branch will redirect the page to itself & in turn update the value held in P1_SUM.
    Would this type of implementation work for your application? It's obviously just one option to consider. I hope this helps. If you have any further issues/questions regarding any of the above information or regarding other queries in your MS Access MDB file, please let me know. If you'd like me to take a look at your MDB file, please post your email address so I can contact you directly.
    Regards,
    Hilary
    Message was edited by:
    hfarrell

  • Query regarding Inline Query and a Join.Please see

    I have a query regarding Inline Queries
    I have 2 tables
    TRADE and POSTING
    TRADE has Primary Key:id_trade_ref and POSTING has Foriegn.Key: id_trade_ref
    id_trade_ref 5V973781B has 5 records in POSTINGS
    If i need to join these 2 tables,I use
    1) Select t.id_entity,t.id_trade_ref,p.am_stock
       from trade t,posting p
       where t.id_trade_ref = '5V973781B'
       and   p.id_trade_ref = '5V973781B'
    2) Now I can use the same as an Inline Query:
       select
       t.id_entity,
       t.id_trade_ref,
       (  select p1.am_stock 
          from posting p1
          where p1.id_entity =  t.id_entity
          and   p1.id_trade_ref= t.id_trade_ref
          and   p1.id_posting_type in ( 'NEW', 'CAN')
    from
    trade t
    where t.id_entity = 'DBL'
    and   t.id_trade_ref = '5V973781B'
    My Query:
    Of the two,which is a better option to use.?
    Is Inline a better option or a normal join?

    I would rewrite the first one to:
    Select t.id_entity,t.id_trade_ref,p.am_stock
    from trade t,posting p
    where t.id_trade_ref = '5V973781B'
    and p.id_trade_ref = t.id_trade_ref
    This way, you really make the join between the table.
    I think the join is better because it uses less code. I do not think you will notice much performance win between one or the other, especially because it concerns only a few rows.

  • User groups in ABAP Queries

    Hi Friends,
    My doubt is regarding ABAP Queries. when we create user groups , in which table and field does the data holds, which will be useful in retrieving the data.
    Please help me ASAP, as this would get break through in solving severity 2 ticket.
    With thanks and regards
    umapathy

    Hello,
    The data is available in 'AQGDBBN'.
    For further details you can go thru tables with pattern 'AQ*'.
    regards,
    S. Chandra Mouli.

  • Refreshing POWL Queries in e-Recruiting

    Hi All,
    I need some help regarding POWL Queries.
    If I switch from one link - My Open Requisitions to other link My New Applications, then REFRESH is not happening.
    Could you please help me to solve this issue.
    Thanks,
    Anil

    You can schedule the refresh by running a background job, please have a look at the following link for more information:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/42/d6652b755c1630e10000000a1553f7/frameset.htm
    The following text is qouted from the above SAP documentation link:
    POWL_WLOAD (Refresh Active POWL Queries)
    You can use this report to update queries.  If you schedule the report as a background job, for example, you can update the queries overnight. Users then have access to the updated data when they start work, without having to refresh the data themselves. This is a way of controlling the server load.

Maybe you are looking for