Querying view definitions

I am doing some reporting on an Oracle Proprietary database there is no data diagram and I have to come up to speed as soon as possible. So I have two questions:
1.     What is the best Reference Manual for Oracle?
2.     I was trying to build a tool that I often use in SQL Server but running into a weird error. I pretty sure it has to do with the data type of the “Text” column but it is not cooperating with String functions on this column. The intent was to search the definitions of views or tables to find where a tables or columns are referenced. This is not the dependencies; this will go well beyond dependencies. The error happens with either of the commented out where clauses operating on the Text column but works fine on the Name or other columns. Any Ideas?
SELECT b.owner, b.view_name, b.view_type, b.text, a.column_name, a.column_id
from ALL_VIEWS B,all_tab_columns a
-- WHERE A.column_name LIKE '%PO%'           -- generates the error
-- WHERE INSTR((b.Text ), 'PO', 1,1) > 0          -- generates the error
Where INSTR((b.view_name ), 'PO', 1,1) > 0          -- no error
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
00932. 00000 - "inconsistent datatypes: expected %s got %s"
*Cause:   
*Action:
Error at Line: 24 Column: 19
Thanks
vbwrangler
Edited by: user6406804 on Nov 21, 2012 7:44 AM

Welcome to the forum!
This forum is NOT for sql or pl/sql questions. As the forum title says it is for sql developer questions only.
Please mark the question ANSWERED and repost the question in the sql and pl/sql forum and provide your 4 digit Oracle version.
PL/SQL
>
1. What is the best Reference Manual for Oracle?
>
Based only on the posted code you need to start with a SQL tutorial and learn the basics. Your code is using a CARTESIAN join and that is pretty much a rookie type of mistake.
The Oracle docs can be found at: http://www.oracle.com/pls/db112/portal.all_books and the SQL Language covers all aspects of SQL including the INSTR function.
>
2. I was trying to build a tool that I often use in SQL Server but running into a weird error. I pretty sure it has to do with the data type of the “Text” column but it is not cooperating with String functions on this column. The intent was to search the definitions of views or tables to find where a tables or columns are referenced. This is not the dependencies; this will go well beyond dependencies.
>
That is not a weird error but is to be expected when a function is not used appropriately. If you use sql*plus and 'desc all_views' you will see that the datatype of the TEXT column is LONG and that datatype is very difficult to work with and only has limited support in SQL. Generally you need to use PL/SQL and write a function or procedure to work with LONGs effectively.
>
The error happens with either of the commented out where clauses operating on the Text column but works fine on the Name or other columns. Any Ideas?
SELECT b.owner, b.view_name, b.view_type, b.text, a.column_name, a.column_id
from ALL_VIEWS B,all_tab_columns a
-- WHERE A.column_name LIKE '%PO%' -- generates the error
-- WHERE INSTR((b.Text ), 'PO', 1,1) > 0 -- generates the error
Where INSTR((b.view_name ), 'PO', 1,1) > 0 -- no error
>
As mentioned that query has several beginner level mistakes
1. you are doing a CARTESIAN join of the two tables (ALL_VIEWS and ALL_TAB_COLUMNS) since you do not join them together.
2. you filter on view_name but the CARTESIAN JOIN will join ALL records FOR EVERY TABLE from the ALL_TAB_COLUMNS view resulting in very large numbers of totally useless records.
3. the first WHERE clause does not generate the error on 11gr2 but is also likely will not produce any useful results. The LIKE expression '%PO%' is on the COLUMN_NAME but in the 3rd WHERE clause you are using 'PO' as sthe view name. It is likely that one of those two references is wrong.
4. the second where clause attempts to use the INSTR function on a LONG column and that function does not support that datatype.
See the INSTR function in the SQL Language doc
http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions073.htm
>
Both string and substring can be any of the datatypes CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB, or NCLOB. The value returned is of NUMBER datatype.

Similar Messages

  • Views - SELECT from VIEW and SELECT from the query inside view definition returning different results

    Hi,
    I am facing this weird issue. Any help would be appriciated.
    I have view with the following definition:
    CREATE VIEW [marketing].[OpenedMails]
    AS
    SELECT
    ID_EmailAddress, 
    ID_Date_Opened, 
    ID_Contact, 
    ID_MailSendJobs,
    COUNT(ID_OpenedMails) AS OpenCount,
    CASE
    WHEN ROW_NUMBER() OVER (PARTITION BY CAST(ID_EmailAddress AS VARCHAR(10)) + ' ' + CAST(ID_MailSendJobs AS VARCHAR(10)) ORDER BY ID_Date_Opened) = 1 THEN 1 
    ELSE 0 
    END
    AS UniqueOpenCount
    FROM            
    dbo.Fact_OpenedMails
    where ID_Contact = 382340
    GROUP BY ID_EmailAddress, ID_Date_Opened, ID_Contact, ID_MailSendJobs;
    order by ID_MailSendJobs 
    When I run the the select statement in the view definition I get combination of both 1 and 0 for the 'UniqueOpenCount' column.
    But when I run the select from the view itself using the following query:
    SELECT [ID_EmailAddress]
          ,[ID_Date_Opened]
          ,[ID_Contact]
          ,[ID_MailSendJobs]
          ,[OpenCount]
          ,[UniqueOpenCount]
      FROM [marketing].[OpenedMails]
    I get equal amount of rows but only 0 values for the 'UniqueOpenCount' column which seems to be very weird to me. Why is this happening ? Can anyone help regarding how to solve this ??
    Result from the select inside view definition:
    Result from the select query directly from the view:
    Thanks in advance.
    Vivek Kamath

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. You failed. Temporal
    data should use ISO-8601 formats – you failed again. Code should be in Standard SQL AS much AS possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    Things like “ID_Date_Opened” are wrong. The affixes “id” and “date” are called attribute properties in ISO-11179 and data modeling. Since a date is a unit of measurement on a temporal scale, it cannot be an identifier by definition. My guess is this would be
    “open_date” if it were done right. And the only display format in ANSI/ISO Standard SQL is ISO-8601 (yyyy-mm-dd)
    An email address of -1?? Email addresses are VARCHAR(256), not numeric. There is no reason to cast them AS string!
    Your vague “mail_send_jobs” is plural, but columns hold scalars and cannot be plural by definition. The partition cause can hold a list of columns: 
    WHEN ROW_NUMBER() 
         OVER (PARTITION BY email_address, mail_send_job 
                   ORDER BY open_date)
         = 1 
    THEN 1 ELSE 0 END 
    This still makes no sense, but the syntax is better. You do not understand how ROW_NUMBER() works. 
    Would you like to try again with proper Netiquette? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Function module to create query view from technical name of the query ?

    Hi Experts,
    I am trying to create webservice definition using function module.
    In this code, I am calling function module 'RSCRMBW_REPORT' which requires query view name ( we can see this in RSCRM_BAPI) as a value for parameter i_reportuid.
    For the time being I am hardcoding the value but I need to use a function module which will convert techincal name of query into query view.
    Can anyone have any idea about the above requirement? Or is there any other way to solve the problem?
    Thanks in advance
    Shamkant
    Edited by: SHAMKANT SONAWANE on Apr 7, 2009 5:38 AM

    Hi,
    You can use FMs CONVERSION_EXIT_GENID_INPUT  and CONVERSION_EXIT_GENID_OUTPUT to get query view.
    First call FM CONVERSION_EXIT_GENID_INPUT with parameter input as query technical name then it will return Output in the form of GENID .
    Pass this GENID as input parameter to FM CONVERSION_EXIT_GENID_OUTPUT to get query view as output.
    Eg :
    Test for function group      RRI5
    Function module              CONVERSION_EXIT_GENID_INPUT
    Uppercase/Lowercase
    Runtime:        6,652 Microseconds
      Import parameters               Value
      INPUT                           Y0IC_C03_Q0018_2
      Export parameters               Value
      OUTPUT                          4D1I916ID7TWS1CK27154WYZ8
    Test for function group      RRI5
    Function module              CONVERSION_EXIT_GENID_OUTPUT
    Uppercase/Lowercase
    Runtime:        2,818 Microseconds
      Import parameters               Value
      INPUT                           4D1I916ID7TWS1CK27154WYZ8
      Export parameters               Value
      OUTPUT                          0IC_C03/Y0IC_C03_Q0018_2
    0IC_C03/Y0IC_C03_Q0018_2 is expected query view.
    Hope it helps...
    regards,
    Raju

  • ORDER BY in view definitions

    ORDER BY was not allowed in view definitions in 7.3.4. It is allowed in 8.1.6 but I have not seen any documentation to say when or why it was introduced.
    There is an old rule that a select statement does not guarantee the order of rows without an order by. Does this mean that this rule is no longer strictly true, ie the order IS guaranteed if selecting from a view which itself contains an order by ?
    If the order of rows in this case is NOT guaranteed, then why allow an order by in the view definition?
    This was brought to my notice by other writers to this forum who have pointed out that
    (if the view does indeed guarantee the order of rows), then the pseudo column ROWNUM at last becomes useful for applying sequence numbers to queried rows if an in-line view with an order by is used. ROWNUM used to be of limited use because it was assigned before the order by.

    SriDHAR,
    Please don't take offense. My comment was not aimed at you. When I wrote the post, I was expressing some cumulative frustration at various things about these forums, including the unpredictable performance of the search feature, lack of forum monitoring, and a series of recent posts on this topic, not just this thread, that included various correct and incorrect responses and repetition of the question and starting of new threads on the same topic by the same people, even after correct responses were given, and requests for things like a "guarantee" even after "various people have suggested that technique". What I had in mind, when I wrote the portion of the post that you quoted, was some of the various responses that constituted nothing more than repetition of the question as if hadn't already been posed and answered. I certainly don't fault you or anyone else for responding with an answer. Perhaps hearing it from one more person one more time or explained in a slightly different way will make a difference. I certainly did not mean to imply that my explanation was any better than yours. I was merely expressing frustration at my prior efforts having gone to waste, since people are apparently unable to sufficiently refine the search criteria and wade through the duplicate topics to find it and similar efforts by many of us on various topics.
    I encourage those who ask questions to search for the answers first themselves, both in the on-line documentation, where the master index search seems to work very well, and in the forums, where the search mechanism seems to work sporadically. I know I have seen some others post similar suggestions and unfortunately they are frequently not well-received, although sometimes that may be due to how the suggestion was phrased.
    On some other forums, the discussions are monitored by multiple moderators or system operators who quickly remove duplicate posts, move posts to the correct forums, provide links to previous discussions on the same topic, and guide new users as to how to use the forums. The end result is that the forums are a lot less cluttered with repetitive stuff, which makes reading, searching, and everything easier and faster. Unfortunately, we don't seem to have that on this forum. I have heard that the monitoring of these forums by Oracle personnel is voluntary. I have noticed that same Oracle personnel, like Robert Pang, routinely respond to certain topics, like utl_smtp, and Goeff Lee seems to have adopted the Objects forum. A long time ago, Rick Post did a good job of monitoring this SQL and PL/SQL forum, but he vanished long ago. That was before the new forum format. So, as far as I know, we don't currently seem to have a monitor for this forum. I noticed that, for a while, the Forumm Administrator tried to monitor the Feedback forums, but was overwhelmed, and said "I give up" and appears to have quit deleting or moving off-topic posts, and rarely even responds to on-topic ones anymore. The longer it goes unchecked, the worse it gets.
    I have seen some other forums, where, lacking official moderation, groups of frequent responders have taken it upon themselves to do what they can. Obviously, we can't delete duplicates or move things to the correct forums, and requests for moderators to do this has fallen on deaf ears, but we can point out duplicates and suggest searching documentation and previous posts. I would be interested in hearing what everyone else thinks we should do. Should we try to act as monitors ourselves? Or should we simply ignore duplicates and not respond? Or should we provide links to prior posts? Or should we respond to everything anew? Eventually, the forums just get so cluttered that, regardless of original plan, things go unanswered, simply due to too many posts and too little time. Or do we need to inundate the feedback suggestions forum with requests for better search functions and monitoring. I know several have already been posted. I figured that once a suggestion was made, they didn't need to see duplicates, but maybe I was wrong. Maybe they need to hear it from all of us. What does everyone else think? I have been biting my tongue for a long time.
    Barbara

  • Select on view is long - Select on view definition short.

    Greetings Everyone -
    There is a view in Oracle called V$LOCK.
    If I do a count or a select on this view I get a result in *45 seconds*.
    There are only 77 records.
    However - If I do a select or a count on the view definition (found in V$FIXED_VIEW_DEFINITION)
    I get a result in no time. Immediately.
    I am signed in accordingly 'sqlplus / as sysdba'
    What's going on ??? My feable brain cannot comprehend!!!
    Thanks for any help,
    BB

    >
    There is a view in Oracle called V$LOCK.
    >
    On 11.2 that is not correct. A query of 'select * from dba_synonyms where synonym_name like '%LOCK%' shows
    V$_LOCK => V_$_LOCK
    V$LOCK => V_LOCK
    GV$_LOCK => GV_$_LOCK
    GV$LOCK => GV_$LOCK
    And a query of 'SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME LIKE '%LOCK%' shows
    GV_$LOCK => VIEW
    GV_$_LOCK => VIEW
    V_$LOCK => VIEW
    V_$_LOCK => VIEW
    So V$LOCK is a synonym. And you may be querying the correct underlying view for each of your queries but sometimes the queries may not be on the view that you think they are.
    >
    If I do a count or a select on this view I get a result in 45 seconds.
    There are only 77 records.
    However - If I do a select or a count on the view definition (found in V$FIXED_VIEW_DEFINITION)
    I get a result in no time. Immediately.
    >
    Let's see the first time you query data (when maybe there is nothing in the cache) it is slower than the second time you query the same data (when maby there is something in the cache)?
    That isn't unusual.
    >
    Well - that is interesting. Still it took you 11 seconds for 15 records !!!
    >
    Records? There aren't any 'records'. The V$s are 'dynamic' performance views not tables. And read consistency is not guaranteed for them. The data is continuously updated so if there are no updates the view data won't change and depending on the updated data the view data may barely change.
    It is unlikely that the data changed much, if at all, between your two queries.
    See 'About Dynamic Performance Views' in the Database doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28320/dynviews_1001.htm#i1398692
    >
    Oracle contains a set of underlying views that are maintained by the database server and accessible to the database administrator user SYS. These views are called dynamic performance views because they are continuously updated while a database is open and in use, and their contents relate primarily to performance.
    Although these views appear to be regular database tables, they are not. These views provide data on internal disk structures and memory structures.
    You can select from these views, but you can never update or alter them.
    >
    And see the NOTE just below (as well as the section that discuss the V$ and GV$ views
    >
    Because the information in the V$ views is dynamic, read consistency is not guaranteed for SELECT operations on these views.

  • SQLParseException occurred while composing Offline Database View definition

    While importing view definitions from CASE120 to offline database for some views I am getting following error.
    ERROR: An SQLParseException occurred while composing Offline Database View definitions: Error(s) parsing SQL:
    Unexpected token near *!* in the following:
    , MSI.LO T_CONTROL_CODE *!*LOT_CONTROL_CODE
    Unexpected token near *!* in the following:
    , DECODE*!*(MSI.REVISION_QTY_CONTROL_CODE,1,'N',2,'Y','N') ITEM_REVISION_CONTROL_FLAG
    Observation:
    Some views with less total length of query definitions got imported, but big views were erroring out above said exception. Is there any restriction on the length of view? i.e. no of characters in the view definition? Is there any work around for this issue?
    Thanks in Advance,
    Salil Gumaste

    Hi Velázquez
    Have you tried to modify your application and select "Process Application", this will rebuild your OLAP cube.
    From past experience,and as per Santosh post, the errors appear your dimensions have not been processed.
    You can try to do the following:
    Process all of the dimensions
    Modify the applications in your appset with selection the available options ( Rebuild SQL Index and Process Application )
    Perform a full optimize of the application
    Backup the Appset
    Restore the Appset
    This should hopefully resolve your errors
    Hope this helps
    Kind Regards
    Daniel

  • TP problems, transporting the query views

    Hello Expert's
    I created two query views on the exiting querys, now i transporting the two views,
    How to do transfer the views,
    i am confusing following procedures,
    1. In RSA1 -> Transport Connector ->Object types -> query views ->Two query views are selected. YES (or)No
    2. If selecting views i am not selecting the query and query elements, only the views. YES (or) No
    3 And i saved the querys in Package and created a TP. YES (or) No
    if selecting the query views after that what i has done
    please suggest me suitable answer
    it urgent
    thanks in advance
    aravind.s

    Hello Anand,
    1. In RSA1 -> Transport Connector ->Object types -> query views ->Two query views are selected. YES (or)No
    Yes, Collect only the view if the Query is already transported. If the query is not transported then select the Query with Dataflow afterwards it will collect all the views as well.
    2. If selecting views i am not selecting the query and query elements, only the views. YES (or) No
    Yes, if the query are already transported.
    3 And i saved the querys in Package and created a TP. YES (or) No
    Yes, definitely you have to capture these views in a package and transport request.
    Once the views are collected in a transport request , release the request and inform the transport team to import to the target system (Qual or Prod)
    Note : In BI/BW BEx tranports are handled differently and not like other objects such as InfoCube, InfoObject. So whenever you are working with BEx Objects make sure that you assing a transport request in the following
    RSA1->Transport Connect -> BEx Icon (Truck Symbol) -> Assign Package and Request using the Assign Button.
    If you transport system is configured to capture the BEx objects during creation or modification then the above step is not required.
    Thanks
    Chandran

  • SQL for View Definition using outer join

    Hello everyone,
    I am creating a view using the statement below
    SELECT *
    FROM table_a A
    ,table_b B
    ,table_c C
    WHERE A.sg_code = B.sg_code and
    B.st_code = 'E' and
    A.sg_code = C.sg_code(+) and
    C.st_code = 'T'
    The structure of the view is as follows
    View
    sg_code| Name | start_date | end_date |
    1 | Test |13-03-2008 | NULL |
    Table_a
    sg_code,Name
    Table_b
    sg_code,st_code,actual_date
    the view can have a null for the column 'end_date'
    This means there will not be a record inserted in the Table_b for end_date=null, there will only be a record for actual_date=start_date
    In this scenario when I query the view I am not seeing the newly created record just because there is a condition "C.st_code = 'T'" with the outer join on the sg_code.
    When I look into the individual tables I see the records.
    Table A
    Pg_code,Name
    1 Test
    Table B
    Id pg_code As_of_date
    1 1 13-03-2008
    How should I modify my view definition so that I can query the view even if there is a null for 'end_date'
    Thanks
    fm

    the last line should be:
    C.st_code(+) = 'T'
    by failing to include the (+) on that line, you made it NOT an outer join. an outer joined table must be outer joined on every where criteria, including to constants.

  • Administrator - view definition

    Hi,
    I wanted to add a field to a view. Somehow, the view definition is not valid. I double-checked it in another environment, but it is also invalid. I don't understand how it was created.
    The general format of the view is:
    CREATE OR REPLACE VIEW ARFG_AR_TRANSACTIONS
    (transaction_id,......)
    as
    SELECT /* UNIQUE ATTRIBUTES */ ....
    The list of fields within the parenthesis includes the following:
    ...global_flex_gui_type_5, global_flex_wine/cigarette_5, ...
    Running the create gives an error, of course, on the wine/cigarette.
    How was the view ever created? I am fearful of changing anything like that not knowing what report might be effected by the change.
    Can anyone offer an explanation?
    Leah

    Hi Tamir and Rod,
    I received a full explanation from Metalink. I don't really want to publicize the SR# since then my info is exposed. The following part of the explanation, I think, gives a good enough summary:
    The Business View Generator (BVG) uses a template view ARFV_AR_TRANSACTIONS to generate (create) the view ARFG_AR_TRANSACTIONS. It does this by querying the flexfields referenced in template view in inserting the relevant descriptions obtained from the flexfields into the generated view.
    As part of the generation process, the BVG will create the SQL DDL to define the generated view, and then run that DDL to create the view, however the reason that the BVG is able to create the view which includes a "/" where you appear to be getting an error is probably because the BVG is quoting the column names.
    If either of you knows how to contact me privately, I will gladly pass along the SR.
    Thank you for your help.
    Leah

  • How to create a query view in sap bw?

    can any one please tell me how to create a query view in sap bw 3.5?

    Hi,
    you can do this by using Bex analyzer and WAD ..
    gop through this link ..
    http://help.sap.com/saphelp_nw70/helpdata/en/0e/1339427f82b26be10000000a155106/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0d/af12403dbedd5fe10000000a155106/frameset.htm
    hope this helps you ..
    Reagrds,
    shikha

  • Error while saving a query view

    Hi All,
    I am trying to save a query view in my favourites and it is failing with below message:
    Namespace '/BIC/' must be set to 'changeable' (transaction SE06)
    I have created many query view so far, this issue has just started. Could you please help us with this, as it is very urgent.
    Thanks and regards,
    Shashidhar.

    Hi,
    Please set the setting as described in note 337950, it will help to fix the issue.
    solution:
    Releasing the object changeability
    This setting is only intended for production or test systems that are
    set to not changeable. It is not suitable for development systems.  For
    this reason, this setting is only effective if at least one of the
    conditions specified under 'Cause and prerequisites' is met.
    Go to the Administrator Workbench (Data Warehousing Workbench,
    transaction RSA1) -> 'Goto' -> 'Transport Connection' and choose 'Object
    Changeability'. To display the function, you may have to enlarge the
    window or press the arrow keys nearby.
    In the following dialog box you can select the object types that you
    want to be changeable, even though the system is set to not changeable.
    These objects are not connected to the transport system; this means that
    no transport dialog boxes are displayed. This only applies, however, if
    the preconditions mentioned under 'Cause and prerequisites' are met.
    First, after releasing an object type, only objects that are original,
    that is, those that were created in this system  can be changed. This
    prevents changes to objects that were imported into the system. However,
    changes to these objects may be overwritten again during a new
    transport.
    You can set all objects to changeable (even the ones imported into the
    system) using the context menu (right mouse button), although this
    setting is not recommended for the reasons mentioned above.
    Thanks,
    Venkat

  • Query View name not saved in "Analysis Grid Properties" under Data Provider

    Hi BW World;)
    We are on BI 7.0
    I have created a BI workbook which contains a query view.
    However when we go into design mode and then "analysis grid properties" for this query view then "change data provider" it does not show the query view name but the query name. (we have saved the workbook)
    Is this the normal scenario?
    Surely should show the "query view name " and not the "query name" as confuses what data provider is being used?
    Is this a bug?
    Best
    Stevo.... Points of course... Thanks in advance.;)
    Edited by: bw4eva999 on Sep 10, 2009 4:40 PM     spelling

    Hi,
    You have created a workbook on top of a Query View which is again depends on a Query.Now the base for Query View is a Query.So the underlying Data Provider for a workbook is a Query.
    Hence when you go to Properties of grid->Change Data Provider,it shows the Query and the InfoCube,but not the Query View.
    So this is not a bug and this how its been designed.
    If you click for the Information of that workbook,it will show the Query and Info Provider,but not the query View.
    Though it looks like wierd,it is not a bug.
    Rgds,
    Murali

  • BEX Query Views - Reqd in PRD but need to create in Dev - Data Issues

    Hello Bw Gurus 
    BI 7.0 ECC 4.7
    We have a BEx Query in BI production which uses a work centre hierarchy. The user wants to create query views on this query to use in BI production.
    Our normal transport procedure of a new development object would be BI DEV - QA - PRD
    However the DEV environment does not have all the work centres and the data of PRD. So if the query view needs to be created in DEV then we could not set up the view correctly as there is not the workcenters or the data in DEV.
    Hopefully that makes sense?
    Apart from allowing Query Views to be created in BI PRD directly is there any solution?
    Best,
    Steve Jones

    If you need exact char values for workcenter to create your views you can quickly create the master data (just the values you want) in Dev and use them to create the views...

  • Unable to open a query view in web analyzer

    Hi All
    In web analyzer i have saved a Query view, Using save as tab.
    when i tried to open that Query view through open tab in web analyzer it is throughing some exceptional error.
    Is this the right way to access the saved query view, can anyone help me with your suggestion?
    Thanks
    Sushma

    Hi,
    Check this
    [http://help.sap.com/saphelp_nw70/helpdata/EN/43/bc5c78da1e1bbce10000000a1553f7/frameset.htm]

  • Bc4j view definition not found

    Within the doDML method in my PatientImpl class, I have implemented this snippet of code to insert a record into the TransactionLog entity after an insert into the Patient entity.
    DBTransaction trans = getDBTransaction();
    TransactionLogViewImpl txnLogView =
    (TransactionLogViewImpl)trans.createViewObject(
    " hmdclinical.customactiondemo.model.bc4j.TransactionLogView ");
    TransactionLogViewRowImpl row =
    (TransactionLogViewRowImpl) txnLogView.createRow();
    row.setAction('TEST');
    txnLogView.insertRow(row);
    txnLogView.remove();However, the error returned is "JBO-25002: Definition hmdclinical.customactiondemo.model.bc4j.TransactionLogView of type View Definition not found".
    What am I doing wrong ? My View object is called TransactionLogView and my business components package is hmdclinical.customactiondemo.model.bc4j ??
    Help ?
    Also - is it possible to perform the insert and then requery the same row to check for data in other columns on the table had that been populated by a trigger as the result on the insert performed by my business rule code ?? If i make the attribute refresh after update can I do a
    row.setAttribute
    view.insertRow(row)
    row.getAttribute ??
    How else would I get the values back from the row just inserted ??
    Thanks,
    Brent

    Please ignore the first part of my question - stupid typo that i always make !
    But the second part....
    Also - is it possible to perform the insert and then requery the same row to check for data in other columns on the table had that been populated by a trigger as the result on the insert performed by my business rule code ?? If i make the attribute refresh after update can I do a
    row.setAttribute
    view.insertRow(row)
    row.getAttribute ??
    How else would I get the values back from the row just inserted ??
    Can someone help me with this ?
    Thanks,
    Brent

Maybe you are looking for

  • Error when importing a web service from ES Workplace to NWDS

    Hi guys, I'm working with SAP NetWeaver Developer Studio (SAP NetWeaver 7.1 Composition Environment SP03 PAT0000 Build id: 200710302120) The connection (through Services Registry) to the ES Workplace was successful. I found the service definition and

  • Format tree creation "from scratch" in PMW

    Hi, We are using two banks, who have different requirements regarding the Tax-id prefix in the Batch Header record of he US ACH DME files. Bank 1, with whom we are live, uses the "1" prefix to the Taxid, which is generated by RFFOUS_T. Our pre-existi

  • Use XML files stored in directory of Application server as a input for XI ?

    I have a scenario that there is a xml file stored in sap application server for example /inf/ERQ/XML/XXX.xml which i want to use it as an input for XI. I know that there is an adapter in XI for getting xml file stored in normal path but in my situati

  • Oracle 8i, Why would it accept date of 00-JUN-01 without an error

    I have an application (On Track for Training) written in power builder and using sqlnet. When the user signs on to the Oracle 8i Database, using ODBC driver 8.1.5.5, some of my users send an invalid date into a controlkey field. The format has a 00 d

  • My Ipad is locked - not by me

    My Ipad is locked - and it is not by me. I don now the opening code - do any member here know what i can do. My Iphone has also been used by "find my Iphone" but not by me either. But it is not locked. Another strange thing happened thismorning: All