Question on FIND IN TABLE... REGEX

Hello,
I am trying to do a FIND IN TABLE itab, where itab is a table of strings. One of the strings is like the following:
<bi:item name="CHART_ITEM_1" designheight="380" designwidth="730" type="CHART_ITEM">
I'm trying to search for it using a REGEX pattern. So here's how I did it:
CREATE OBJECT text_regex EXPORTING pattern = 'item name*type="CHART_ITEM"'.
So apparently, the above statement does not work, as the results returned is 0.
What gives? Any help would be much appreciated. Thanks in advance!

Hi,
I think your reg. expression is wrong. * does not stand for zero or more characters It is an operator which represents zero or more occurrences of some literal. You need to use literal . which represents any character. So your expression should look like item name.*type="CHART_ITEM".  There is a program DEMO_REGEX_TOY which you can use for reg. expression testing.
Cheers

Similar Messages

  • How do you find a table that doesn't have a specific word in it.

    I have two questions.
    questions 1
    How do you find a table that doesn't have a specific word in it by using a query on the whole database?
    questions 2
    How would i list all of my cars names in my database not showing duplicates?
    I have tried, tried and tried some more to get both of these, but I guess i don't know how to query a specific word.
    I also don't know how to query everything in just 1 column name.
    If anyone could help with these that would be great I have been trying queries for over an hour now and no luck.
    Thanks

    798837 wrote:
    I tried the all_tab_columns, just like you did it, however that just gives me the column name I am looking for what is not in a column.
    For example I need to find all the tables where mustang is not = 'red' but using a single query i need to find all of the tables.
    As for number 2
    I am looking for something like this
    select distinct column_name
    from all_tab_columns
    where column_name ='AcertainColumn';Now I'm even more confused. In your example, is MUSTANG a column name? Or is it the value of a MODEL column in the CARS table? And how could that possibly relate to something that exists in multiple tables?
    If your data model is at all reasonable, I would expect that you would just want
    SELECT *
      FROM cars
    WHERE model = 'Mustang'
       AND color != 'Red'but I can't see how this would relate to data stored in multiple tables.
    Justin

  • Question related to Logical table source

    Hi All,
    I have very basic questions -
    (1) When do we create multiple logical table sources within a dimension?
    (2) If a dimension has more than one logical table sources , when do we need to map the underlying table to other underlying table of logical table sources.
    For exp consider these tables XLE_Entity_Profile, XLE_REgistration , AP_Invoice_ALL
    AP_Invoice_All is a fact table. relationship between XLE_Entity_Profile & XLE_REgistration is (1:M).
    Join info is as below -
    (a) XLE_Entity_Profile.Legal_entity_id = AP_Invoice_ALL.Legal_entity_id
    to get the registration of LE the where clause is as below-
    (b) XLE_Entity_Profile..Legal_entity_id = XLE_REgistration.Source_id and XLE_REgistration.Source_table = 'XLE_Entity_Profile'
    I have created the alias of XLE_REgistration as XLE_REgistration_LE.
    With in a dimension , i have 2 logical table source - XLE_Entity_Profile & XLE_REgistration_LE.
    logical table source 'XLE_REgistration_LE' has where clause 'XLE_REgistration.Source_table = 'XLE_Entity_Profile'
    When i query , LE name , LE Registration Name, i get error like -
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14070] Cannot find logical table source coverage for logical columns: [LE_NAME]. Please check more detailed level keys are mapped correctly. (HY000)
    Le Name is from XLE_Entity_Profile and LE Registration Name is from XLE_REgistration_LE.
    But when using the properties of logical table source ' XLE_REgistration_LE' , i map it to 'XLE_Entity_Profile' ,i get the correct result.
    I am not able to understand why am i getting error in first way of modeling.
    Thanks , Ashish

    Hi Ashish,
    first about logical table sources (lts): you can create different lts for aggregation and/or fragmentation. Aggregation means that data is aggregated on another level among different physical tables. Fragmentation means that the content is different over different tables (other rows).
    In your case, I think the problem is that your dimension is not denormalized, which results in a snowflake.
    What I understand is that you have the following (physical diagram):
    Invoice (fact table) >----- Entity (Dim) >----- Registration (Dim)
    You have the following joins:
    invoice.entity_id = entity.entity_id
    and entity.entity_id = registration.source_id and registration.source = 'something'
    First idea:
    I would create the following join (in physical diagram):
    Invoice (fact table) >---- Registration (Dim)
    Where:
    invoice.entity_id = registration.source_id and registration.source = 'something'.
    Then in your Entity dimension you should create a hierarchy:
    Grand Total Level
    Entity
    Registration.
    In your dimension you should create the first lts: Entity
    Set the aggregation content of this lts to Entity.
    This lts contains only one physical table.
    Map only the entity columns to the Entity physical table.
    Then create the second lts:
    Entity and Registration.
    Set the aggregation content of this lts to Registration.
    This lts must contain two physical tables, Entity and Registration.
    Map the entity columns to the Entity physical table and the registration columns to the registration physical table.
    Let me know if it works or not.
    Regards,
    Stijn

  • Find all tables used in a stored procedure

    Hi,
    I have a requirement where i have to find all the tables used in a stored procedures from different  databases.
    Ex: i have a stored procedure where i use few tables from MASTER database and some from STAGE database.When i have written a query to find all tables used in the stored procedure, i am getting only those database table where i run the query and procedure
    exists.
    I have stored procedure SP1 in Master database, but i use the tables from both master and stage.
    When i run this, i am getting the tables only from Master database but not from stage. i hope my requirement is clear.
    I am trying to find all the tables from all databases used by a stored proc.
    ;WITH stored_procedures AS (
    SELECT 
    o.name AS proc_name, oo.name AS table_name,
    ROW_NUMBER() OVER(partition by o.name,oo.name ORDER BY o.name,oo.name) AS row
    FROM sysdepends d 
    INNER JOIN sysobjects o ON o.id=d.id
    INNER JOIN sysobjects oo ON oo.id=d.depid
    WHERE o.xtype = 'P')
    SELECT proc_name, table_name FROM stored_procedures
    WHERE row = 1
    ORDER BY proc_name
    Please advice

    Your question is not entirely clear. You need to run the query on different databases.
    You may find this blog post helpful
    How to get information about all databases without a loop
    Check the last script in that blog post and modify to your particular purpose.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How to find affected tables in the database

    Hi Friends,
    Is there any way to find the tables affected in the database when book a trade in the Application in Oracle. Please help me to find the affected tables.
    Thanks,
    ragu.
    Edited by: user533548 on Apr 3, 2009 5:08 AM
    Edited by: user533548 on Apr 3, 2009 5:13 AM

    Hi Karthick_Arp,
    You take any application for example when you book details about a new employee the rows will be affected in the database we generally use the empid to identify
    what are the tables affected is there any way like this when you book a trade in the Application to find what are all the tables affected in the database.I think that
    you have understand my question.
    Thanks,
    ragu.
    Edited by: user533548 on Apr 3, 2009 5:09 AM
    Edited by: user533548 on Apr 3, 2009 5:13 AM

  • Trying to use ALL_TAB_COLS  to find two tables based on input rows

    I'm using 9i.
    I'm trying to use the ALL_TAB_COLS table to find two tables that contain columns I can join them on. I know the names of the two tables. We can call them table1 and table2. I just using the columns that are stored in them below to find a common set of tables.
    The query I'm using is the following
    select distinct did.TABLE_NAME, did.COLUMN_NAME 
    from     
        (Select * from ALL_TAB_COLS 
        where column_name in('SO_LINE_ID','SO_LINE_NUMBER', 'SO_ORDER_NUMBER', 'SO_HEADER_ID','AR_CUSTOMER_TRX_LINE_ID')
        --and OWNER = 'FTBV'
        ) did 
    join 
        (Select * from ALL_TAB_COLS 
        where column_name in('SCHED_DISTRIBUTION_ID', 'CODE_COMBINATION_ID', 'PRODUCT_BUSINESS_CODE', 'PRODUCT_GROUP_CODE', 'PRODUCT_CODE')
        --and OWNER = 'FTBV'
        ) iii
    on did.TABLE_NAME = iii.TABLE_NAME;It's giving me limited results.
    What I need is something that can find interim tables that would link my two tables together based on the unique columns I've provided. Does such a query exist?
    Thanks in Advance.

    Only if there is a defined foreign key relationship. If there is one the queries you want are on the Constraints page of Morgan's Library at www.psoug.org. If they do not exist then you need to find a subject matter expert that can explain the application's design.
    The fact that you are asking this question is a strong indication of a lack of proper documentation at your facility: Something you might wish to address.

  • Find the table names in a package body

    How to find the table names in a package body in single query .(SQL).

    Hi,
    you can find dependent objects of a package from below query
    select distinct referenced_name ,REFERENCED_TYPE from ALL_DEPENDENCIES where name = 'PACKAGE' and  referenced_owner not in ('SYS','PUBLIC') and referenced_type = 'TABLE';
    Thanks
    Handle: user12057782
    Status Level: Newbie
    Registered: Oct 13, 2009
    Total Posts: 5
    Total Questions: 4 (4 unresolved)
    mark answered if helpful/correct
    Edited by: CKPT on Nov 22, 2010 1:21 PM

  • Possible to find the Table behind the form

    My question is Is it possible for the DBA to find the table behind the form.
    actually when i input the data from front end i want to know how can i found which table as updated.

    behind the form.Form as in front-end GUI sort of thing? Most DBAs of my acquaintance wouldn't know whether to laugh or cry at such a request. Seeing as how it confirms all the prejudices at the cluelessness of developers.
    The short answer is No. That's why we are supposed to document our applications. However, if you get a sympathetic DBA they might be prepared to track your session and find out what SQL you're issuing. It's then a question of co-ordinating your Form usage with what they see in the database.
    Cheers, APC

  • Script to find out table and index candidates to keep in the buffer pool

    I am looking for a script to find out tables and indexes to keep in the buffer pool.
    Could you help me on this ?
    thanks...
    Markus

    this is more of a open question. As you know ur data well. We do not know whats ur data. cachin tables in buffer pool is okay, but it might age out after not being used...instead you can use the KEEP POOL...to cache small tables/popular tables into the keep pool...as keep pool guarantees full caching .....
    here are some links on keep pool cacheing
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#sthref410
    http://www.dba-oracle.com/oracle_tips_cache_small_fts.htm
    http://www.dba-oracle.com/t_script_automate_keep_pool_tables_indexes.htm
    http://www.dba-oracle.com/oracle_news/news_caching_keep_pool_large_objects_clob_blob.htm
    Edited by: user630084 on Apr 8, 2009 5:48 AM

  • How find target table in interface which in package

    Hi All,
    I have a question?
    I created interface INT1
    I created variable VAR1
    I placed INT1 in package I need to get INT1 target table in to variable.
    Could you please help in write in the query to find target table of previous interface.
    Appreciate your help.

    Create a logical schema to refer work repository schema. For var1 with this logical schema, in the refresh section, run the following query:
    SELECT table_name FROM snp_pop WHERE pop_name = 'INT1';
    I do not see any hope to derive the interface name automatically unless you use scenarios and invoke it through variables.

  • Not able to find aliased tables when supplying username/password

    <p>I am able to run my report which contains several aliased tables just fine as long as I have the application (Viewer?) ask for the login credentials for the database. But it seems if I try to set the login credentials in the Viewer jsp, I then receive the following error message which states that it cannot find the table, stating that it is looking for a table with the alias name... not the actual name.</p><p>&#39;PositionEducation&#39; is the alias for a table named &#39;large_text&#39;, this table is aliased several times in the report so it can pull the different types of data it needs.</p><p>Thanks, Steve</p><p>*** Update  -- I did an update to the latest files and it pulled some newer jars from Crystal even though I had just installed this a few days ago :)... anyway, it now works where the application (Viewer?) does not ask me for credentials (I assume they are embedded within the rpt) and it goes on through like it did before. HOWEVER, I still have the problem that if I try to manually override the login credentials, I still receive the error as stated </p><p>*** End Update</p><p> </p><p> 2007-03-28 11:38:15,843 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] - <JRCAgent2 detected an exception: The table &#39;PositionEducation&#39; could not be found.<br />    at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)<br />    at com.crystaldecisions.reports.dataengine.bj.new(Unknown Source)<br />    at com.crystaldecisions.reports.common.as.a(Unknown Source)<br />    at com.crystaldecisions.reports.common.ae.a(Unknown Source)<br />    at com.businessobjects.reports.sdk.b.k.a(Unknown Source)<br />    at com.businessobjects.reports.sdk.b.w.m(Unknown Source)<br />    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)<br />    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)<br />    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.ag.a(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.av.if(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.an.new(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.cb.for(Unknown Source)<br />    at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)<br />    at com.crystaldecisions.proxy.remoteagent.u.a(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(Unknown Source)<br />    at com.crystaldecisions.reports.sdk.DatabaseController.setTableLocation(Unknown Source)<br />    at com.businessobjects.samples.JRCHelperSample.changeDataSource(JRCHelperSample.java:182)<br />    at com.businessobjects.samples.JRCHelperSample.changeDataSource(JRCHelperSample.java:80)<br />    at org.apache.jsp.WEB_002dINF.jsp.reports.Evaluation_002dviewer_jsp._jspService(Evaluation_002dviewer_jsp.java:76)<br />    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)<br />    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br />    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)<br />    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)<br />    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)<br />    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)<br />    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)<br />    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)<br />    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)<br />    at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:111)<br />    at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)<br />    at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:965)<br />    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:744)<br />    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)<br />    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)<br />    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)<br />    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)<br />    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)<br />    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:75)<br />    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)<br />    at net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:84)<br />    at net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:182)<br />    at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)<br />    at net.sf.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:305)<br />    at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)<br />    at net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:226)<br />    at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)<br />    at net.sf.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173)<br />    at net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:125)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br />    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br />    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br />   
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br />    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br />    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br />    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)<br />    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)<br />    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)<br />    at java.lang.Thread.run(Unknown Source)<br />><br /> </p>

    <p> </p><p>From the stack trace, the problem appears to be happening in the setTableLocation method call.</p><p>There&#39;s a known issue with the JRC when you try and transfer datasource location for multiple aliases pointing to the same database table. </p><p>You may, however, need not trigger the setTableLocation method call, if you wish merely to enter database logon credentials.</p><p>The way to enter it would be to use ReportClientDocument method getDatabaseController().logon(String, String).  This should get you the same behavior as with the viewer.</p><p>TUeda </p>

  • Crystal Reports Cant Find the table

    Hello ,
    I have a problem when i try to preview a report Crystal Reports says that cant find the table , it happend when add a table that in his name has an underscore example "SALES_REP" , im working with CR 2008 and open access ODBC driver.
    Can you help me with the problem?
    Thank you
    Manuel

    Hello,
    Try installing all CR patches and then test using OLE DB. If not an option we need to know more details of the database and driver/client?
    I recall this may be an issue and not sure if it's been patched or not. Try searching here to see if anyone else has had this problem.
    Thank you
    Don

  • How do I find what table a field is in?

    Hi,
    If I know a field name, how would I search the Data Dictionary to find the table (or tables) that the field is found in?
    For example, I have a program spec that that says field AZSUB is in table MARM, but it is not.  How can I find what table this field is actualkly in?
    Thanks for your help!
    Andy

    Hi Andrew,
    Just goto se11, enter the data element of that field and clisk on the where used list on the application tool bar. You will get all the tables in which the field appears.
    You got find out which would be your appropriate table may be using by the description of the table or the contents or by the links..
    Regards,
    Vinod Kumar

  • HOW TO  FIND OUT TABLE DESCRIPTION FROM JDBC?

    HOW WILL FIND OUT TABLE DESCRIPTION FROM JDBC?

    Have a look at ResultSetMetaData
    getColumnCount()
    getColumnName(int)
    getColumnTypeName(int)
    getColumnDisplaySize(int)
    ***Annie***

  • How to find out table name for the field in the webUI

    Hi.
    I am in CRM2007.
    So i go to the transaction code    BSP_WD_CMPWB
    In that i provide the component name as CRM_UI_FRAME.
    I press the Test button.
    So, it opend the WebUI.
    I want how to find out table of the particular input field?
    I mean from which table the data is retrived how to find out?
    When i enter some thing in the input field how to find out in which table that data is stored?
    By pressing F2 on the input field it opend View and Component Name.
    I want find out table of that particular field. How to find it?
    If anybody know about this explain it with Screen shorts if possible.
    Thank You.
    Krishna. B.

    hi
    goto tx genil_model_browser. Suppose you want to find fields reated to your order header eg sold to name. In component set write all and press F8. Then goto access object and in access object click on node BTAdminH. Click on attribute structure. Here you will find structure and attributes. If you click relationship then you will see all the relationship wrt btadminh. open any r/s that you require. and click on other object and attribute. You will get to know the structure.
    Best regards
    Pankaj kumar

Maybe you are looking for