Table View in Query Designer is not avaliable

Hi Guru:
The "table view" in the menu item "View" is grey in the query designer.
I have only 1 structure ( key figure structure ) in my query.
How to change it to the "Table View" mode then?
Thanks.
Eric

Hi
Please create another structure in your query. Once you have 2 structures then only table view will be enabled.
Regards
Pradip

Similar Messages

  • CM14 BI Publisher - modifying an existing Data Model, the Graphic View in Query Builder does not display

    I am trying to edit the default forms/reports that come with CM14, trying to edit the data model, data set, (to get to the old Infomaker style graphic view) , the Query model does not display (error the list of tables is too long..) Oracle tell me the limit is 60,  there are not 60 tables referenced in any CM report.
    Does this Query builder view work at all on any report?
    (bigger question, we are moving from CM12, should we move to CM13 which works with infomaker?)
    Thanks,
    Paul L

    Kurt, thanks for your replies.
    A couple of notes/clarifications.
    1.     You are correct that BI works better in Firefox--I have observed issues with the BI display when using IE.  I would recommend using Firefox too.
    2.     You are correct about the way to get to the Query Builder to see a graphical view of data tables.  There are basically two issues with this that I mentioned, but will re-iterate:
    a.  If you have an EXISTING query in the data set, then click the "Query Builder" button, this will remove the existing query that's there, it will NOT display the existing query in the query builder.  Query Builder works only to create a NEW query from scratch.
    b.  Query builder is limited to selecting 60 fields max in your query.  If you are creating a large report with many tables, you may find that 60 fields is not enough.  For that you will have to work in the SQL edit screen rather than using the query builder.
    I would impress on anyone developing CM14 reports that they become familiar with the database schema and relationships to avoid problems when developing your BI reports.  You should be able to find the tables and joins documentation in the knowledgebase.

  • PLS-00357: Table,View Or Sequence reference 'A' not allowed in this context

    Hello
    I am accepting input values from users through java web page. To accept the values I am using the following code:
    import java.sql.*;
    import javax.sql.DataSource;
    import javax.naming.*;
    public class spsrch
         public void spsrch()
         public String espsrch(String p, String d, String a)
              String s1= "";
              String strColor="#C0C0C0";
              try
                   InitialContext ctx = new InitialContext();
                   DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/Oracle9i");
                   Connection Con = ds.getConnection();
                   Statement stmt = Con.createStatement();
                   CallableStatement proc1stmt1=Con.prepareCall ("{call Allsch("+p+","+d+")}");
    //               ResultSet rs = proc1stmt1.execute();
                   proc1stmt1.executeUpdate();
                   Con.close();
              catch(Exception e)
                   System.out.println("Flag Raised"+e);
              return s1;
    I am calling the procedure 'Allsch' to apply some logic before inserting data into a SQL table.
    The 'Allsch' procedure is :
    create or replace procedure tmpsch(pno varchar2,pdes varchar2) as
    mpartnum varchar2(30);
    mpn varchar2(30);
    mdes varchar2(150);
    cursor c1 is select partnum,description,aircraft_type from master_catalog where description like ltrim(rtrim(mdes))||'%' AND partnum like mpn||'%';
    cursor c2 is select partnum from ipc_master where partnum=mpartnum;
    cursor c3 is select partnum from fedlog_data where partnum=mpartnum;
    cursor c4 is select partnum from superparts where partnum=mpartnum;
    cursor c5 is select part_no from supplier_catalog where part_no=mpartnum;
    mpno1 varchar2(30);
    mpno2 varchar2(30);
    mpno3 varchar2(30);
    mpno4 varchar2(30);
    mpno5 varchar2(30);
    mdescription varchar2(150);
    maircraft_type varchar2(15);
    mstat varchar2(1);
    mstat1 varchar2(30);
    mstat2 varchar2(30);
    mstat3 varchar2(30);
    mstat4 varchar2(30);
    begin
    mstat:='N';
    mpn:=pno;
    mdes:=pdes;
    for i in c1 loop
    mstat:='N';
    mstat1:='N';
    mstat2:='N';
    mstat3:='N';
    mstat4:='N';
    mpno1:=i.partnum;
    mpartnum:=i.partnum;
    mdescription:=i.description;
    maircraft_type:=i.aircraft_type;
    for j in c2 loop
    mpno2:=j.partnum;
    end loop;
    for k in c3 loop
    mpno3:=k.partnum;
    end loop;
    for l in c4 loop
    mpno4:=l.partnum;
    end loop;
    for m in c5 loop
    mpno5:=m.part_no;
    end loop;
    if mpno2=mpartnum then
    mstat1:=mpno2;
    end if;
    if mpno3=mpartnum then
    mstat2:=mpno3;
    end if;
    if mpno4=mpartnum then
    mstat3:=mpno4;
    end if;
    if mpno5=mpartnum then
    mstat4:=mpno5;
    end if;
    if mpno1=mpartnum then
    mstat:='Y';
    insert into tmpcat values(mpno1,mdescription,maircraft_type,mstat1,mstat2,mstat3,mstat4);
    end if;
    end loop;
    end;
    Java program compiling time, it not showing any error. But after executing, it is not inserting any data into 'tmpcat' table and throwing the following error :
    Flag Raisedjava.sql.SQLException: ORA-06550: line 1, column 14:
    PLS-00357: Table,View Or Sequence reference 'A' not allowed in this context
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [07/22/03 11:47:38][executor-0][W]: Handling error; throwable is "null", status
    code is "404" and message is "Not Found: /User/Ecatalog/Validations.js".
    [07/22/03 11:47:38][executor-0][W]: Handling error; throwable is "null", status
    code is "404" and message is "Not Found: /User/Ecatalog/Validations.js".
    Any one please help me to solve the issue.
    With thanks
    Pramod kumar.
    My Email-id is : [email protected]

    What are p and d in
    "{call Allsch("+p+","+d+")}"
    Something tells me you might need some quotes in this statement since they are varchar2. Maybe
    "{call Allsch('"+p+"','"+d+"')}"
    If this doesn't work try to cut off parts of the procedure until it works.
    Mike

  • Views in query designer

    Hi,
    can you please tell .
    In the tcode:RSRT1 we have View What does it mean?
    Can we create views in query designer?
    Can we use the dictionary views in query designer?
    Can you please tell about?
    Regards
    Naresh

    Hi Naresh.
    RSRT1 is used to view the output of queries as well as views.
    This is the reason why you see the option to input view.
    the difference between RSRT and RSRT1 is as follows
    rsrt allows only queries to be executed and provides output in List as well as HTML format
    rsrt1 allows you to execute views as well as queries and in HTML format.
    hope this helps,
    Sri...

  • Re: PLS-00357 Table,View Or Sequence reference 'string' not allowed in this con

    i have the same problem , can somebod help
    i pasting my code here , please help me resolving
    SQL> declare
      2  continue char(1):='y';
      3   begin
      4  while(continue='y')
      5  loop
      6  dbms_output.put_line('somen');
      7  dbms_output.put_line('do u wan continue');
      8  continue:=to_char(&continue);
      9  end loop;
    10  end;
    11  /
    Enter value for continue: y
    old   8: continue:=to_char(&continue);
    new   8: continue:=to_char(y);
    continue:=to_char(y);
    ERROR at line 8:
    ORA-06550: line 8, column 19:
    PLS-00357: Table,View Or Sequence reference 'Y' not allowed in this context
    ORA-06550: line 8, column 1:
    PL/SQL: Statement ignored

    Just to emphasise Sven's point that the substitution variable (&continue) is resolved once and "compiled" into the code, try making a stored procedure instead of an anonymous block.
    SQL> create procedure p as
      2     continue char(1):='y';
      3  begin
      4     while(continue='y') loop
      5        dbms_output.put_line('somen');
      6        dbms_output.put_line('do u wan continue');
      7        continue:=('&continue');
      8     end loop;
      9  end;
    10  /
    Enter value for continue: q
    old   7:       continue:=('&continue');
    new   7:       continue:=('q');
    Procedure created.
    SQL> select text from user_source
      2  where name = 'P'
      3  order by line;
    TEXT
    procedure p as
       continue char(1):='y';
    begin
       while(continue='y') loop
          dbms_output.put_line('somen');
          dbms_output.put_line('do u wan continue');
          continue:=('q');
       end loop;
    end;
    Note that where you had the substitution variable, there is now a literal value, q in my case.  Note that because I did not respond with y for the value of continue I can safely run this procedure.
    SQL> exec p;
    somen
    do u wan continue
    PL/SQL procedure successfully completed.
    John

  • Deletion of QUery view via Query Designer or via Web interface

    Hi,
    We have deployed SAP BI 7 with Web access only for user.
    Only some Key users are allowed to use Query Designer.
    In fact, all users can create view through Web analyzer. However, they have no way to delete these views.
    It appears that view deletion is only available through Bex Analyzer...
    Does anybody know a way to delete view from Web analyzer or at least through query designer ?
    Thanks for your answers,
    Regards
    Erick

    hi,
    If you want to delete the view in web then you need to change your web template
    http://help.sap.com/search/highlightContent.jsp
    Check the following links
    Web Application Designer for Beginners
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    Web Application Solutions: A Designer's Guide
    http://www.lukew.com/resources/webapplicationsolutions.pdf
    http://sap.ittoolbox.com/groups/technical-functional/sap-solution-manager/bw-web-application-designer-1955944
    Feautures of WAD in 7.0
    http://help.sap.com/saphelp_nw70/helpdata/en/88/4d354277dcb26be10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6
    regards
    abi

  • Tables/views/Procedures/functions etc are not showing up in tree view, but can execute select * on dba_objects (can view in DBVisualizer)

    There was one other thread from years ago detailing this same problem. The only clue was to check whether select all privs were enabled for the user on dba_objects. They are for the user accessing the system. In fact, all tables/views/procs/funcs can be viewed in the tree view of DBVisualizer.  For whatever reason, OSD does not show anything.
    I'd appreciate any clues! Thank you!
    OSD Version  Version 4.1.0.18
    OS: Windows 7/64
    Java: 1.8.0
    Connecting to Oracle 11g 11.2.0.3.0

    Thank you, Gary.
    I updated the post with the version info. I did not explicitly install this JDBC driver, so whatever the OSD came with?  Unless it is using whatever is installed on my machine, in which case would be the thin driver.
    I did check out that post, and I appreciate you sharing it. I did click the 'include synonyms' filter, but behavior remained unchanged.
    I would prefer to use OSD, and that is what our dev team was expecting to use, but we just can't see the information.  We are using an ID that does not 'own' those tables, per se.  But, why would DBVisualizer show these tables, when OSD does not?

  • The BI report created by Query designer does not display all columns

    Dear Experts,
    I have created a BI report using the Query Designer.
    When I execute the query, only 6 columns have been displayed.
    The total columns are 12. I need to display all 12 columns at the first instance.
    Could any one help me to resolve this problem?
    Thank you very much!
    Arthur

    Hi Athul,
    Thanks for your reply.
    There is not marked for '.Supress Zero' in the Rows and Columns.
    And I did not check for 'Hide repeated values' in the Display tab.
    Any other place you could suggest to verify?
    Thanks
    Arthur

  • Link to Web Analyzer from rsrt or query designer does not work.

    If I start with the transaction RSRT a query in the Java Web would get the following error message:
    Java Runtime Error
    But if I had started earlier browser, the portal there is no problem. Is this a SSO problem?
    The same problem I have when I would run in the Bex Query Designer the query.
    Greetings
    Kerim

    Hi,
    Do you have all the parameters correct in SPRO? Take a look at this, under the BW Customizing -> REporting relevant settings or BW Customizing -> SAP Web Application Server.
    I dont remember the right place where you have to configure this, but it should be there.
    The error is just "Java Runtime Error"? Try to talk with your Basis team, maybe there is a log to help you.
    Regards, Federico

  • Materialized Views with Query Rewrite is not getting re-written

    I have tried everything that has been mentioned in all the forums here and on metalink to fix this issue, has any smart APEX user found a solution?
    The issue is the MV with Query rewrite capability is not being re-written.
    Things I have tried
    1) give all Query Rewrite privileges to all 3 APEx schemas and parsing schema;
    2) check trace files with tkprof;
    3) dynamically printed explain plan from v$_SQL on the page while executing the query;
    4) to test in a different environment i created an another DAD using the pl/sql webtool kit and tried the same thing and rewrite works like a charm...
    whats the issue here...why are apex schemas not re-writing the queries????
    appreciate any help...thanks

    Jes, per your request
    --create materialized view
    CREATE MATERIALIZED VIEW "RPLANSWEB"."MV_FCG_ALL_SUMMARY_TAB"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 81920 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "RPLANSWEB"
    BUILD IMMEDIATE
    USING INDEX
    REFRESH FORCE ON DEMAND
    USING DEFAULT LOCAL ROLLBACK SEGMENT
    ENABLE QUERY REWRITE
    AS SELECT fcg, year, fcg_desc,
    fac, efr, fac_desc, efr_desc,
    ums_round, fcg_allow_drillable allow_drillable,
    MAX(category_code_um1) category_code_um1,
    SUM(perm_asset) perm_asset,
    SUM(temp_asset) temp_asset,
    SUM(semi_asset) semi_asset,
    SUM(lease_asset) lease_asset,
    SUM(planned_constr) planned_constr,
    SUM(all_perm_asset) all_perm_asset,
    SUM(total_asset) total_asset,
    SUM(allow) allow, SUM(rqmt) rqmt,
    SUM(perm_planned_constr) perm_planned_constr,
    SUM(perm_planned_constr_rqmt_delta) perm_planned_constr_rqmt_delta,
    ROUND(DECODE(SUM(rqmt), 0, 0, SUM(all_perm_asset)/SUM(rqmt)*100)) perm_rqmt_pctsat,
    ROUND(DECODE(SUM(allow), 0, 0, SUM(all_perm_asset)/SUM(allow)*100)) perm_allw_pctsat,
    ROUND(DECODE(SUM(rqmt), 0, 0, SUM(total_asset)/SUM(rqmt)*100)) total_rqmt_pctsat,
    ROUND(DECODE(SUM(allow), 0, 0, SUM(total_asset)/SUM(allow)*100)) total_allw_pctsat,
    ROUND(DECODE(SUM(all_perm_asset), 0, 0, SUM(rqmt)/SUM(all_perm_asset)*100)) perm_rqmt_pctutl,
    ROUND(DECODE(SUM(all_perm_asset), 0, 0, SUM(allow)/SUM(all_perm_asset)*100)) perm_allw_pctutl,
    ROUND(DECODE(SUM(total_asset), 0, 0, SUM(rqmt)/SUM(total_asset)*100)) total_rqmt_pctutl,
    ROUND(DECODE(SUM(total_asset), 0, 0, SUM(allow)/SUM(total_asset)*100)) total_allw_pctutl,
    SUM(coarse_screen_asset) coarse_screen_asset,
    SUM(total_excess) total_excess,
    SUM(total_deficit) total_deficit,
    SUM(perm_excess) perm_excess,
    SUM(perm_deficit) perm_deficit,
    SUM(all_perm_excess) all_perm_excess,
    SUM(all_perm_deficit) all_perm_deficit,
    SUM(temp_excess) temp_excess,
    SUM(satisfy_rqmt) satisfy_rqmt
    FROM summary_tab_dd
    GROUP BY fcg, year, fcg_desc,
    fac, efr, fac_desc, efr_desc,
    ums_round, fcg_allow_drillable;
    sql plus> log in as parsing schema user (not APEX_PUBLIC_USER)
    sql plus> SELECT fcg, year, fcg_desc,
    SUM(perm_asset) perm_asset,
    SUM(perm_excess) perm_excess,
    SUM(perm_deficit) perm_deficit,
    SUM(all_perm_excess) all_perm_excess,
    SUM(all_perm_deficit) all_perm_deficit,
    SUM(temp_excess) temp_excess,
    SUM(satisfy_rqmt) satisfy_rqmt
    FROM summary_tab_dd
    where year=2007
    GROUP BY fcg, year, fcg_desc;
    --execution plan
    SELECT STATEMENT     ALL_ROWS     12     291     17460                         
    HASH(GROUP BY)          12     291     17460                         
    MAT_VIEW REWRITE ACCESS(FULL) RPLANSWEB.MV_FCG_ALL_SUMMARY_TAB     ANALYZED     11     291     17460                         "MV_FCG_ALL_SUMMARY_TAB"."YEAR"=2007
    --execution plan from sql workshop (application express)
    SELECT STATEMENT 42,341 55 3,882 1,990,027
    HASH GROUP BY 42,341 55 3,882 1,990,027
    TABLE ACCESS FULL SUMMARY_TAB_DD 109,158 47 3,329 5,130,426 "YEAR" = 2007
    --execution plan from an APEX page (displayed from v$sql and V$SQL_PLAN)
    OPERATION: SELECT STATEMENT OPTIONS: OBJECT_NAME: OBJECT_ALIAS: OBJECT_TYPE: OPTIMIZER: ALL_ROWS SEARCH_COLUMNS: 0 COST: 4600 CARDINALITY: BYTES: CPU_COST: IO_COST: ACCESS_PREDICATES: FILTER_PREDICATES: PROJECTION:
    OPERATION: HASH OPTIONS: GROUP BY OBJECT_NAME: OBJECT_ALIAS: OBJECT_TYPE: OPTIMIZER: SEARCH_COLUMNS: 0 COST: 4600 CARDINALITY: 109158 BYTES: 8732640 CPU_COST: 549150132 IO_COST: 4569 ACCESS_PREDICATES: FILTER_PREDICATES: PROJECTION: "FCG"[VARCHAR2,6], "FCG_DESC"[VARCHAR2,15], SUM("PERM_DEFICIT")[22], SUM("PERM_EXCESS")[22], SUM("SATISFY_RQMT")[22], SUM("TEMP_EXCESS")[22], SUM("ALL_PERM_EXCESS")[22], SUM("ALL_PERM_DEFICIT")[22], SUM("PERM_ASSET")[22]
    OPERATION: TABLE ACCESS OPTIONS: FULL OBJECT_NAME: SUMMARY_TAB_DD OBJECT_ALIAS: SUMMARY_TAB_DD@SEL$1 OBJECT_TYPE: TABLE OPTIMIZER: SEARCH_COLUMNS: 0 COST: 3329
    as you can see while executing the script in sql developer the optimizer is finding the relevant materialized view, not in the case of APEX's SQL Workshop or Page.
    appreciate your time

  • Query Designer is not picking the host:port

    Dear All
    We have installed BI 7.0 on Netweaver 2004s alongwith BI Java. When we run a query and execute it does not pick the hostname:port but come as
    http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZSD_C03_Q009&VARIABLE_SCREEN=X&DUMMY=1
    Please check i have activated all services in SICF and SMICM - all the services is running
    and i have added the icm/hsotnamefull in the instance profile also.
    is there any thing missing.
    Whether PI/Xi is to be also installed and u think it is necessry to configure SLD?
    regards
    balaji

    Japnese yen is maintained in units of 100. Check the entry in TCURX table for Yen. That is why the value is getting multiplied by 100 and getting displayed.
    JPY (Japanese Yen) and others have a 0 in the TCURR-CURRDEC field which means 0 decumals. SAP applications will process amounts in these currencies by dividing the input value by 100 for storing in tables. Then, when being displayed, it will do a conversion exit and multiply the stored table value by 100 to show the correct amount.
    SAP stores currency values in a data type that has a fixed interpretation of two decimal places. There are some currencies that do not work well with that setting. Usually that is because for some currencies , a fraction o the currency unit is meaningless. That is true of the Japanese Yen, the Turkish Lira, Korean Won and many other currencies whose value is often 10 US cents or less.
    Here's a full explanation of the decimal issue in SAP. It is not just
    limited to BW but is a system-wide situation.
    1. By default there are two decimals on the data base, e.g. 123.45
    2. When there is no corresponding entry in TCURX, these two decimals
    are displayed in the query.
    3. When there is an entry in TCURX, it determines the division factor
    when reporting. (default = 2)
    Example TCURX = NO ENTRY: Database entry = 123.45
    There is no division
    The above number is displayed as 123.45
    Example TCURX = 3: Database entry = 123.45
    There is a division by 10 (because 3 - 2 = 1).
    The above number is displayed as 12.345.
    example INR currency.
    Example TCURX = 0 Database entry = 123.45
    There is a division by 0.01 OR Multiplication by 100

  • Single select option in table view as radio button without design

    Hi,
    When I use the Content design = "Design2002" or design = "Design2003" then I get a checkbox in table view by giving the single select option. But when I do not use any design for the Content then I get a radio button in the table view.
    How do I get a radio button in the table view with Content Design = "Design2002" or design = "Design2003"?
    Message was edited by: Brian McKellar
    Assume you are asking about design=2002 versus 2003? Updated question.

    Hallo Sachin,
    Later this afternoon I will check your question with a colleague for an answer. We are all offsite today.
    Until then, it would be good if you review your questions Tableview radio button event..
    ++bcm

  • Master data is not getting displayed in the Query Designer

    Hi,
    I have a DSO in which I have an InfoObject called Emp No. in the Data Field.
    The Emp.No is being maintained as master with (Emp Name, Address, Telephone No, DOB) as attributes.
    I have loaded the data in the Emp. No. master. Then tried loading the transaction data in DSO.
    The Emp.No is there in the DSO active data, but in the query designer its not getting displayed.
    Hope its clear.
    Please help.
    Thanks

    Hi,
    I have brought the Emp. No. in the Key Field and also have activate the master data again.
    Yet my Query Designer doesn't have the Emp. No.
    I have done a full load for both Master and Transaction.
    Please advice me what the other alternative.
    Thanks

  • The reference to the table, view or sequence is not allowed in this context

    Hi,
    I'm triying to execute the SP that I describe below and the OS give me an error:
    CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
        TBL_NAME VARCHAR2,
        START_DATE DATE,
        RESULT_ OUT NUMBER
      ) AS
      BEGIN
      DECLARE
        v_tbl_name VARCHAR2(30);
        v_start_date DATE;
        v_result NUMBER := 0;
        v_select_aux VARCHAR2(32767) := ' ';
        v_temp_table VARCHAR2(30);
        v_exists NUMBER;
      BEGIN
        v_tbl_name := TBL_NAME;
        v_start_date := START_DATE;
        v_temp_table := 'temp_' || v_tbl_name;
        SELECT count(*) INTO v_exists FROM tab WHERE lower(tname) = lower(v_temp_table);
        IF (v_exists = 1) THEN
          v_select_aux := '
            DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
          EXECUTE IMMEDIATE (v_select_aux);
          COMMIT;
        END IF;
        v_select_aux := 'CREATE TABLE ' || v_temp_table || ' AS
                                  SELECT ch.date_ month_revenue,
                                       s.date_sub month_sub,
                                       s.codpromoter,
                                       u.OPERATOR,
                                       SUM (ch.total) AS TOTAL_OK
                                       FROM cscv_sub_charges_' || to_char(v_start_date, 'YYYY_MM')|| ' ch
                                       INNER JOIN cscv_subs s
                                       ON ch.id_sub = s.ID
                                       INNER JOIN cscv_users u
                                       ON s.id_user    = u.ID
                                WHERE ch.STATUS = 0
                                GROUP BY ch.date_, s.date_sub, s.codpromoter, u.OPERATOR';
        EXECUTE IMMEDIATE (v_select_aux);
        COMMIT; 
         v_select_aux := '
    INSERT INTO ' || v_tbl_name || ' (
             month_revenue,
             month_sub,
             codpromoter,
             operator,
             TOTAL_0,
             TOTAL_1,
             TOTAL_2,
             TOTAL_3,
             TOTAL_4,
             TOTAL_5,
             TOTAL_6,
             TOTAL_7,
             TOTAL_8,
             TOTAL_9,
             TOTAL_10,
             TOTAL_11
            SELECT
             month_revenue,
             month_sub,
             codpromoter,
             operator,
             TOTAL_0,
             TOTAL_1,
             TOTAL_2,
             TOTAL_3,
             TOTAL_4,
             TOTAL_5,
             TOTAL_6,
             TOTAL_7,
             TOTAL_8,
             TOTAL_9,
             TOTAL_10,
             TOTAL_11
            FROM
               SELECT
                  month_revenue,
                  month_sub,
                  codpromoter,
                  operator,
                  sum(total_ok) total_0,
                  0 total_1,
                  0 total_2,
                  0 total_3,
                  0 total_4,
                  0 total_5,
                  0 total_6,
                  0 total_7,
                  0 total_8,
                  0 total_9,
                  0 total_10,
                  0 total_11
                 FROM '|| v_temp_table ||'
              WHERE to_char(month_sub,''mm/yyyy'') = to_char(sysdate,''mm/yyyy'')
              GROUP BY month_revenue,month_sub,codpromoter, operator
              UNION ALL
              SELECT
                  month_revenue,
                  month_sub,
                  codpromoter,
                  operator,
                  0,
                  sum(total_ok),
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                 FROM '|| v_temp_table ||'
              WHERE to_char(month_sub,''mm/yyyy'') = to_char((to_date(sysdate,''dd/mm/yy'') - INTERVAL ''1'' MONTH),''mm/yyyy'')
              GROUP BY month_revenue,month_sub,codpromoter, operator
            GROUP BY month_revenue,
             month_sub,
             codpromoter,
             operator
        EXECUTE IMMEDIATE (v_select_aux);
        v_result := v_result + SQL%ROWCOUNT;
        COMMIT;
        v_select_aux := '
          DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
        EXECUTE IMMEDIATE (v_select_aux);
        COMMIT;
        RESULT_ := v_result;
      END;
      END P_CSCV_AGR_MONTH_REVENUE;
    BEGIN
    DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
    END;
    /and the output is:
    Error at line 1
    ORA-06550: líne 2, column 32:
    PLS-00357: The reference to the table, view or sequence 'CSCV_AGR_MONTH_REVENUE'  is not allowed in this context
    ORA-06550: líne 2, column 1:
    PL/SQL: Statement ignoredwhat could I do to resove the problem??
    Thanks in advance...

    Hi,
    Your procedure's signature is
    CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
    TBL_NAME VARCHAR2,
    START_DATE DATE,
    RESULT_ OUT NUMBER
    ) i.e. it is expecting two input parameters, TBL_NAME in VARCHAR2 format and the other START_DATE in DATE format. Also you need a variable with data type as NUMBER to hold the value of OUT parameter RESULT_
    Now look at the way you are calling this procedure
    BEGIN
    DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
    END;
    /first parameter has to be a VARCHAR2, so enclose CSCV_AGR_MONTH_REVENUE into single quotes.
    second parameter should be a date, so use to_date() function.
    Lastly declare a variable with data type as Number for holding value of out parameter RESULT_
    Something like this :
    declare
    t_num number;
    begin
    a('CSCV_AGR_MONTH_REVENUE',to_date('01/01/2010','MM/DD/YYYY'),t_num);
    dbms_output.put_line(t_num);
    end;Vivek L

  • Not able to find the New ods created in Query Designer.

    Hi,
    I am trying to create a new query on an ODS(new) in Query Designer but not able to find the ODS . The ODS is present in the system however when we check . Please advice whats going wrong.

    Hello Prakash,
    I know the solution
    Go to RRMX -> Queries -> Select New Query -> and then click on InfoArea -> Select ur new ODS -> and Click OK
    U will be able to see characteristics and keyfigures..
    Drag and drop and click on execute....
    Reward if its helpful.....
    Thanks,
    Sonu

Maybe you are looking for