Member acces profile error(A table name, specified in an sql command)

Hi friends,
In my bpc application(A) below 3 dims are secure dims.
1. entiiy  (std)
2. category (std)
3. location (custom dim)
while defining one member access profile,
Read Only      : CATEGORY 100
Read & Write      : CATEGORY 200,500
for whatever combinatio i use, for other secure dims (eg: category,location where base member,or parent members ) i'm getting below error  message
A table name, specified in an sql command, is unknown.
We are on bpc75nw sp04.
Pls suggest us .
dump(st22):
Short text
    A table name, specified in an SQL command, is unknown.
What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_UJE_MEMACCESS_CACHE========CP" had to be
     terminated because it has
    come across a statement that unfortunately cannot be executed.
Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
     not caught in
    procedure "REMOVE_MEMACCESS" "(METHOD)", nor was it propagated by a RAISING
     clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    An invalid table name "/1CPMB/RDWCSUMAS" was specified in an Open SQL command:
    Due to one of the following reasons, the error occurs only at runtime:
    - the table name was specified dynamically, or
    - the SELECT clause, WHERE clause, GROUP-BY clause, HAVING clause, or
      ORDER-BY clause was specified dynamically.
Thanks,
naresh
Edited by: Naresh P on Feb 19, 2011 10:40 AM

Hi Naresh,
As far as I know You have specify Explicit Access to all the dimensions mentioned as Secured in your Application.
You can't skip the secured Dimesions.
In your case if you want to restrict only one dimension for 1 Member Access Profile then give Read & Write access to other 2 Dimensions and select ALL members.
This might solve your problem.
Hope it helps.
Chaithanya

Similar Messages

  • Member Access Profile - update from table MemberAccess

    Hello,
    We need to do an update in all our member access profiles. As we have 710 profiles, it's very time consuming to update each of them seperately.
    I was looking into the table MemberAccess profile to update the profiles. I manage to update all profiles with one query but unfortunately it seems that we still need to go into SAP BPC Admin to process each profile. If I don't process in SAP BPC Admin, I get the error in Excel: 'There is a problem in dimension file: Entity' and the current view in Entity dimension just shows ...more... instead of the correct security!
    Is there another way of updating the MemberAccess profiles in 1 go, without needing to process it individually? This would save us a lot of time!
    Thanks,
    Sofie Luyten

    Sofie,
    Are you assuming it didn't work because of the "Return Value = 0" result? That stored procedure isn't designed to return anything so whether it ran properly or not you wouldn't get much back (except an error message is something went very wrong).
    The only way that you can know if it worked is to look at the acsEntity table and make sure it has all of the proper records. I guess you can also start up SQL Profiler before executing the stored procedure to see what the stored procedure runs and make sure that's what you want. I'm not sure how familiar you are with SQL though so that may not be helpful for you.
    Jimmy

  • No table name specified in ejb-jar.xml file

    Hi, I have an entity bean defined as follows:
    <enterprise-beans>
    <entity>
    <display-name>SponsorEJB</display-name>
    <ejb-name>SponsorEJB</ejb-name>
    <home>com.ultradns.j2ee.components.sponsor.ejb.SponsorHome</home>
    <remote>com.ultradns.j2ee.components.sponsor.ejb.Sponsor</remote>
    <ejb-class>com.ultradns.j2ee.components.sponsor.ejb.SponsorEJB</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
         <resource-ref>
              <res-ref-name>jdbc/jdbc/OracleDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>     
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>sponsor</abstract-schema-name>
    <cmp-field>
    <primkey-field>guid</primkey-field>
         <query>
              <query-method>
                   <method-name>findAll</method-name>
                   <method-params></method-params>
              </query-method>
              <ejb-ql>
                   <![CDATA[ SELECT OBJECT(a) FROM sponsor AS a]]>
              </ejb-ql>
         </query>
    </entity>
    </enterprise-beans>
    In the database, I want this entity bean refers to a table named "sponsor", but I could not specify the relation in the ejb-jar.xml file. So when I deployed this bean, it auto created a table called "SponsorEJB". Where is this name come from, from display-name or ejb-name field?
    Basically, how can I specify a bean "SponsorEJB" referes to a table "sponsor"?
    Thanks,

    First thing, to stop OC4J auto-creating tables, edit the file %J2EE_HOME%/config/application.xml. Change the first orion-application tag so that one attribute says autocreate-tables="false"
    The ejb-jar.xml file describes your EJB's to the container. It is not supposed to describe which table each entity bean maps too, as this is an implementation specific property, so would not be portable between databases. Therefore you have to configure the container to point an entity to a table. Sun uses the sun-j2ee-ri.xml file to do this, and this has to be included in the deployment.
    OC4J however uses the file 'orion-ejb-jar.xml', and will generate this for you. Since you have already deployed your application, this will have already been generated. Go to the directory %J2EE_HOME%/application-deployments. There will be a directory corresponding to your application name. In there is a directory corresponding to your ejb module name, and in there is the 'orion-ejb-jar.xml' file. If you open this file, you will see the entity deployment tags, an example of one is below. Edit the tag so that the table attribute points to the table in your database (note that there is a data-source attribute as well, so make sure that this points to the correct schema). The example below points the EJB Emp to the table EMP:
    <entity-deployment name="Emp" max-instances="10" location="Emp" wrapper="EmpHome_EntityHomeWrapper3" table="EMP" data-source="jdbc/rob9iDS" locking-mode="optimistic" update-changed-fields-only="true" min-instances-per-pk="0" max-instances-per-pk="50" disable-wrapper-cache="true">
    Hope this helps,
    Rob

  • MySQL error: "Incorrect table name ``": [was: please help me]

    the script language is php & mysql database
    i created 2 files :
    the first : i made in it the following steps :
    1- created recordset
    2- dragged and dropped one field which i need to delete
    3- put ( delete ) word and linked it with the second page by parameter id
    and the second page : i made a blank page with one recordset and made it filter by ( id )
    next, from insert menu clicked on data objects , insert record and delete record
    after that when i preview the the first page in the browser and click in ( delete ) link
    the massege appeared is :
    Incorrect table name ''
    the first page php code :
    <?php require_once('../Connections/dwcon.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_rscomment = 10;
    $pageNum_rscomment = 0;
    if (isset($_GET['pageNum_rscomment'])) {
      $pageNum_rscomment = $_GET['pageNum_rscomment'];
    $startRow_rscomment = $pageNum_rscomment * $maxRows_rscomment;
    mysql_select_db($database_dwcon, $dwcon);
    $query_rscomment = "SELECT * FROM `comment`";
    $query_limit_rscomment = sprintf("%s LIMIT %d, %d", $query_rscomment, $startRow_rscomment, $maxRows_rscomment);
    $rscomment = mysql_query($query_limit_rscomment, $dwcon) or die(mysql_error());
    $row_rscomment = mysql_fetch_assoc($rscomment);
    if (isset($_GET['totalRows_rscomment'])) {
      $totalRows_rscomment = $_GET['totalRows_rscomment'];
    } else {
      $all_rscomment = mysql_query($query_rscomment);
      $totalRows_rscomment = mysql_num_rows($all_rscomment);
    $totalPages_rscomment = ceil($totalRows_rscomment/$maxRows_rscomment)-1;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>التحكم في التعليقات</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="../styles.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    #contmain #main #page #content table tr td div strong {
        color: #0F0;
    -->
    </style>
    </head>
    <body>
    <!-- start header -->
    <div id="contmain">
    <div id="menu">
            <ul>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
                <li><a href="../index.php"></a></li>
            </ul>
        </div>
    <div id="main">
    <div id="header">
    <div id="logo">
        <h1><a href="../index.php"></a><a href="" id="metamorph"></a></h1>
        </div>       
    <!-- end header -->
    </div>
    <!-- start page -->
    <div id="page">
      <div align="center">
        <!-- start sidebar two -->
      </div>
      <div id="sidebar2" class="sidebar">
          <ul>
              <li>
                    <h2> </h2>
                    <div class="title_back">
                    <ul>
                      <table width="130" height="136" border="0">
                        <tr>
                          <td height="47" bgcolor="#99CC66"><h1><a href="cp.php">اللوحة الرئيسية</a></h1></td>
                          <td bgcolor="#99CC66"><img src="../images/icons/Dreamweaver.png" width="36" height="35" alt="" /></td>
                        </tr>
                        <tr>
                          <td height="40" bgcolor="#99CC33"><h1><strong>المقالات</strong></h1></td>
                          <td bgcolor="#99CC33"><img src="../images/icons/Dreamweaver.png" width="36" height="35" alt="" /></td>
                        </tr>
                        <tr>
                          <td height="41" bgcolor="#99CC66"><h1><strong><a href="logout.php">تسجيل الخروج</a></strong></h1></td>
                          <td bgcolor="#99CC66"><img src="../images/icons/Dreamweaver.png" width="36" height="35" alt="" /></td>
                        </tr>
                      </table>
                      <li></li>
                    </ul>
                </div>
              </li>
              <li>
                    <h2> </h2>
                    <div class="title_back">
                      <ul>
                      <li><!-- end sidebar two -->
        <!-- start content -->
    </li>
                    </ul>
                    </div>
              </li>
          </ul>
      </div>
      <div id="content">
                <div class="box">
                 <div class="box2">
                <h4 align="right"><a href="#"></a></h4>
                <p> </p>
                <p> </p>
                 </div>
                </div>
                <?php do { ?>
                  <table width="299" border="0" align="center" cellpadding="5" cellspacing="5">
                    <tr>
                      <td colspan="2" bgcolor="#006666"><div align="center"><strong>العمليات</strong></div></td>
                      <td width="154" bgcolor="#006666"><div align="center"><strong>العنوان</strong></div></td>
                    </tr>
                    <tr>
                      <td width="42" bgcolor="#99CC66"><p><img src="../images/icons/Multiply, delete.png" width="43" height="40" alt="hh" /></p>
                        <p><a href="deletecomment.php?comm_id=<?php echo $row_rscomment['comm_id']; ?>">حذف</a></p></td>
                      <td width="53" bgcolor="#99CC66"><p><img src="../images/icons/Configuration Files or Utilities.png" width="44" height="39" alt="yy" /></p>
                        <p><a href="updatecomment.php?comm_id=<?php echo $row_rscomment['comm_id']; ?>">تعديل</a></p></td>
                      <td bgcolor="#99CC66"><?php echo $row_rscomment['comment']; ?></td>
                    </tr>
                  </table>
      <p> </p>
                  <div class="box">
                <div class="box2"> </div></div>
                  <?php } while ($row_rscomment = mysql_fetch_assoc($rscomment)); ?>
      </div>
        <!-- end content -->
        <div id="bottom" style="clear: both;"></div>
    </div><!-- end page -->
    <!-- start footer -->
    <div id="footer">
        <h1>&copy;</h1>
        <h1><a href=http://www.metamorphozis.com/" title="Flash Website Templates"></a>
            </h1>
    </div>
    </div>
    </div>
    <!-- end footer -->
    <div style="text-align: center; font-size: 0.75em;"></div></body>
    </html>
    <?php
    mysql_free_result($rscomment);
    ?>
    the second page php code is :
    <?php require_once('../Connections/dwcon.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if ((isset($_GET['comm_id'])) && ($_GET['comm_id'] != "")) {
      $deleteSQL = sprintf("DELETE FROM ``comment`` WHERE comm_id=%s",
                           GetSQLValueString($_GET['comm_id'], "text"));
      mysql_select_db($database_dwcon, $dwcon);
      $Result1 = mysql_query($deleteSQL, $dwcon) or die(mysql_error());
      $deleteGoTo = "commentcontrol.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
        $deleteGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $deleteGoTo));
    $colname_Recordset1 = "-1";
    if (isset($_GET['comm_id'])) {
      $colname_Recordset1 = $_GET['comm_id'];
    mysql_select_db($database_dwcon, $dwcon);
    $query_Recordset1 = sprintf("SELECT * FROM `comment` WHERE comm_id = %s", GetSQLValueString($colname_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $dwcon) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    $colname_rscomment = "-1";
    if (isset($_GET['comm_id'])) {
      $colname_rscomment = $_GET['comm_id'];
    mysql_select_db($database_dwcon, $dwcon); 
    $query_rscomment = sprintf("SELECT * FROM `comment` WHERE comm_id = %s", GetSQLValueString($colname_rscomment, "int")); 
    $rscomment = mysql_query($query_rscomment, $dwcon) or die(mysql_error()); 
    $row_rscomment = mysql_fetch_assoc($rscomment); 
    $colname_rsdeletecomment = "-1";
    if (isset($_GET['comm_id'])) {
      $colname_rsdeletecomment = $_GET['comm_id'];
    mysql_select_db($database_dwcon, $dwcon);
    $query_rsdeletecomment = sprintf("SELECT * FROM `comment` WHERE comm_id = %s", GetSQLValueString($colname_rsdeletecomment, "int"));
    $rsdeletecomment = mysql_query($query_rsdeletecomment, $dwcon) or die(mysql_error());
    $row_rsdeletecomment = mysql_fetch_assoc($rsdeletecomment);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>حذف التعليق</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="../styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <!-- start header -->
    <div id="contmain">
    <div id="menu">
            <ul>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
                <li><a href="../index.php"></a></li>
            </ul>
        </div>
    <div id="main">
    <div id="header">
    <div id="logo">
        <h1><a href="../index.php"></a><a href="http://www.metamorphozis.com/" id="metamorph"></a></h1>
        </div>       
    <!-- end header -->
    </div>
    <!-- start page -->
    <div id="page">
      <div align="center">
        <!-- start sidebar two -->
      </div>
      <div id="sidebar2" class="sidebar">
          <ul>
              <li>
                    <h2> </h2>
                    <div class="title_back">
                    <ul><li></li>
                    </ul>
                    </div>
              </li>
              <li></li>
              <li>
                <div class="title_back"> </div>
                </li>
            </ul>
        </div><!-- end sidebar two -->
        <!-- start content -->
    <div id="content">
                <div class="box">
                 <div class="box2">
                <h4 align="right"> </h4>
    <p> </p>
                 </div>
                </div>
    <p> </p>
                <div class="box">
            <div class="box2"> </div></div>        
        </div>
        <!-- end content -->
        <div id="bottom" style="clear: both;"></div>
    </div><!-- end page -->
    <!-- start footer -->
    <div id="footer">
        <p>&copy; </p>
        <p><a href="http://www.metamorphozis.com/" title="Flash Website Templates"></a>
            </p>
    </div>
    </div>
    </div>
    <!-- end footer -->
    <div style="text-align: center; font-size: 0.75em;"></div></body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>--------------------------------------------------------------------

    When posting in a forum like this, please give your post a meaningful subject line. It helps everyone, including others who might have the same problem, and are looking for a solution.
    The cause of your error message almost certainly lies in your second page, which has this code:
    if ((isset($_GET['comm_id'])) && ($_GET['comm_id'] != "")) {
    $deleteSQL = sprintf("DELETE FROM ``comment`` WHERE comm_id=%s",
    GetSQLValueString($_GET['comm_id'], "text"));
    What's causing the problem is the extra pair of backticks around `comment`. It should be this:
    if ((isset($_GET['comm_id'])) && ($_GET['comm_id'] != "")) {
      $deleteSQL = sprintf("DELETE FROM `comment` WHERE comm_id=%s",
                    GetSQLValueString($_GET['comm_id'], "text"));

  • Dynamic Select query is failing with error "Invalid Table Name"

    OPEN rc FOR 'SELECT count(*) from :s' USING tab_name;
    fetch rc into rec_count;
    CLOSE rc;
    my requirement is to build dynamic select query to retrieve the total count of rows in each table ( variable tab_name contains the table_name )
    But I am getting stuck by this errror, not sure if there is any alternative !
    ORA-00903: invalid table name
    ORA-06512: at line 43

    OPEN rc FOR 'SELECT count(*) from '||tab_name;
    fetch rc into rec_count;
    CLOSE rc;
    -- This will work
    1. Create a sql statement.
    2. Open ref cursor for that statement.

  • Problem in using table name dynamically in PL/SQL

    I tried to create a procedure to use table name dynamically and got the following error. Anything wrong with my procedure?
    NFADV>declare
      2   cnt number;
      3   cursor cur is select table_name from user_tables where table_name in ('EMP','DEPT');
      4  begin
      5   for c1 in cur
      6   loop
      7    execute immediate select count(*) into cnt from c1.table_name;
      8      dbms_output.put_line('Count is : '||cnt);
      9   end loop;
    10  end;
    11  /
    declare
    ERROR at line 1:
    ORA-06550: line 7, column 21:
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively-quo
    ORA-06550: line 8, column 5:
    PLS-00103: Encountered the symbol "DBMS_OUTPUT"
    ORA-06550: line 8, column 45:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , * % & - + / at mod remainder rem <an identifier>
    <a double-quoted delimited-identifier> <an exponent (**)> as
    from into || multiset bulkThanks and Regards
    Kaustubh

    Hi,
    The wrong part is in execute immediate, it should be as follows:
    execute immediate ('select count(*) from '|| c1.table_name)
    into cnt
    (not tested)
    Regards
    AK

  • Help with iTunes ERROR: duplicate file name specified - where/how?

    When starting up iTunes (version 10.6.1) I get an error message:
    Duplicate file name was specified.
    Needless to say, no clue as to what file name it is referring to. Furthermore, there are 5 songs which I can not play, bought from the iTiunes store. Contacted the iTunes store - they "enabled" the download for those 5 songs. When I connect to the iTunes store, login and check for downloads etc. I get the error message:
    Unable to check for available downloads. Duplicate file name was specified.

    The way to fix this is
    1. Go to Computer
    2. Click Operating System Hard-Drive (C:)
    3. Scroll to Program Files (or) Program Files (x86)
    4. Scroll to iTunes, open it
    5. Find iTunes.exe
    6. Right Click and go to Properties
    7. Click Compatibility you will see something that stats
    Privilege level
    Run this program as an administrator.
    8. Click this and Click Apply and then Ok NOW Open iTunes
    This worked on mine let me know if it doesnt!

  • Custom Administrative Template Error 53 Key name specified more than once

    Hi All,
    Hope I've picked the correct forum. I am making my first foray into setting up a custom administrative template for some software that is developed in house. The current deployment method is to merge a reg file on each computer that requires the registry
    settings. I am trying to set this up so that it is controlled via GPO.
    My idea is that in the a GP can set the registry settings for one or more areas that are controlled by the software. 
    The problem I have - I get Error 53 Keyname specified more than once on Line 9 (second KEYNAME). In total I will have about 30 different sites this needs to be set up for.
    Does this mean that I can't set more than one registry key per "Policy" setting in the GPO?
    The adm file I have so far is below
    TIA
    Jason
    ---------------------------------------------CUT---------------------------------------------
    CLASS User
    CATEGORY "App Site Settings"
    POLICY !!Site1Policy
    EXPLAIN !!Site1Explain
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME "SystemDatabase"
    VALUEON "D:\\App\\Data\\App.mdw"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME "ConfigPath"
    VALUEON "D:\\Site1\\Data"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME "ConfigFile"
    VALUEON "D:\\App\\Data\\App_Comms.mdb"
    VALUEOFF DELETE
    VALUENAME "SysConfig"
    VALUEON "D:\\Site1\\Data\\SITE1_SYS.mdb"
    VALUEOFF DELETE
    END POLICY
    POLICY !!Site2Policy
    EXPLAIN !!Site2Explain
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME "SystemDatabase"
    VALUE "D:\\App\\Data\\App.mdw"
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME "ConfigPath"
    VALUE "D:\\Site2\\Data"
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME "ConfigFile"
    VALUE "D:\\App\\Data\\App_Comms.mdb"
    VALUENAME "SysConfig"
    VALUE "D:\\Site2\\Data\\Site2_SYS.mdb"
    END POLICY
    END CATEGORY
    [strings]
    Site1Policy = "Site1 settings"
    Site1Explain = "Enabling this setting configures the registry settings for dummy Site1."
    Site2Policy = "Site2 settings"
    Site2Explain = "Enabling this setting configures the registry settings for dummy Site2."

    Well - I ended up sorting this out - and no - you can't have the Keyname keyword twice - unless you enclose the the setting in a PART statement. Below is what I ended up with:
    ---------------------------------------------CUT---------------------------------------------
    CLASS USER
    CATEGORY "ApplicationSettings"
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    POLICY !!SITE1Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    POLICY !!SITE2Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    END CATEGORY
    [Strings]
    ArbitrationDefault =D:\SITE\Data
    ArbitrationPolicy =Arbitration path
    ConfigFileDefault =D:\App\Data\App_Comms.mdb
    ConfigFilePolicy =Application configuration file
    PolicyExplain =Enter Explainition of the Registry settings here
    SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
    SysConfigPolicy =Application site system configuration file
    SystemDBDefault =D:\App\Data\App.mdw
    SystemDBPolicy =Application system database path
    SITE1Policy =Site1 Application Settings
    SITE2Policy =Site2 Application Settings

  • Dynamic Table name in Inner Join in  4.6c

    data: tab1(10) type c value 'MARA',
            tab2(10) type c value 'MAKT'.
    data: dbtab1(10) type c,
             dbtab2(10) type c .
    dbtab1 = tab1. 
    dbtab2 = tab2. 
    DATA: BEGIN OF itab occurs 0,
               matnr TYPE mara-matnr,
               maktx type makt-maktx,
    END OF itab.
    DATA: column_syntax TYPE string,
                dbtab_syntax TYPE string.
    PARAMETERS: p_matnr TYPE mara-matnr.
    dbtab_syntax = '( (dbtab1) AS t1 '
    &' INNER JOIN (dbtab2) AS t4 ON t1MATNR = t4MATNR )'.
    SELECT  matnr maktx
    FROM (dbtab_syntax)
    INTO TABLE itab  WHERE t4~matnr   = p_matnr.
    Got the following error:
    "A table name, specified in an SQL command, is unknown"
    It seems not able to read dynamic table name in dbtab_syntax.
    thanks
    anya
    Moderation Message: Duplicate Post.
    Edited by: kishan P on Nov 29, 2010 11:17 AM

    Hi,
    Check this link.
    [http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/frameset.htm]
    [Re: accessing dynamic internal table's fields??;
    hope it'll help u.
    Regards,
    Sneha.
    Edited by: sneha kumari on Jun 18, 2009 1:57 PM

  • Invalid table name  error when updating object in collection using SQL

    Hi,
    I have pl/sql code where I am selecting a object from a collection using sql select query. I am processing this record and now I want to update the collection with the new object. ie. ensure that the object that was fetched be removed and this new one be added.
    considering my_ot is the object type and my_tt is the table type.
    DECLARE
    my_col my_tt;
    my_col1 my_tt
    my_var my_ot;
    my_var2 VARCHAR2(10);
    BEGIN
    // populating my_col1 with select query
    //populating my_col with select query
    FOR my_col1.FIRST .. my_col.LAST LOOP
    //populating my_var2
    BEGIN
    SELECT my_ot(c.field1, c.field2 ,c.field3) INTO my_var FROM TABLE(my_col) c WHERE c.field3 = my_var2
    //processing the field my_VAR
    UPDATE TABLE(my_col) c SET c.field1 = my_var.field1 , c.field2 = my_var.field2 , WHERE c.field3 = my_var.field3;
    EXCEPTION WHEN NO_DATA_FOUND
    my_col.EXTEND;
    my_col(my_col.LAST) := // new my_ot object
    END;
    END LOOP;
    Here, when compiling the update query is not being compiled. I am getting a error 'invalid table name'. Is there any way to modify an object in the collection without knowing its index?
    If not, is it possible to find the index of a object in the collection in select query?
    Thanks in advance
    Paddy

    Hi,
    Is there any way to find the index of a object in the collection? Then I will simply replace the object at that index, right!
    Thanks
    Paddy

  • Table(): invalid table name

    The following line is a part of a PLSQL procedure which takes object_reference as an argument.
    delete from table(deref(object_reference).nested_table) where column_value = 'something';
    Error: invalid table name. Why? How do I accomplish this correctly?

    Oracle 10.2 . Any table. It doesn't matter. Or does it?
    I'm trying to query against a nested table (also called collection) of an object to which I have a reference. This object may be in any (object) table. A more elaborate example:
    create type item_ty (
    code number
    create type items_ty as table of item_ty;
    create type box (
    items items_ty,
    member procedure put_item(code number),
    member function take_item(code number)
    create type body box is
    begin
    member procedure put_item(code number) is
    begin
    insert into table(deref(self).items) item_ty(code); -- ERROR: invalid table name
    end;
    member procedure take_item(code number) is
    begin
    delete from table(deref(self).items) where column_value = code; -- ERROR: invalid table name
    end;
    end;

  • Use of quotes in a table name?

    Hello,
    It seems Oracle treats a table name with and without quotes differently.
    SQL> create table abc (x integer);
    SQL> create table "abc" (y integer);
    These two commands result in two different tables as can be seen from the following commands:
    SQL> desc abc;
    SQL> desc "abc";
    However, I cannot get the list of tables.
    SQL> select * from tab where tname like '%abc%';
    returns just one row.
    SQL> select * from all_objects where object_name like '%abc%' also does not show me abc and "abc" as two separate tables.
    Q1. Is there a way to obtain the proper list?
    Q2. What is the proper qualifier for specifing a table name? For example, SQL Server supports "[" and "]" around the table name. However, I could not find the equivalent grammar for PL/SQL.
    The following command works (by trial and error):
    SQL> select * from (abc);
    However, the following doesn't:
    SQL> drop table (abc);
    which means that "(" and ")" are not the qualifiers.
    Thank you in advance for your help.
    Pradeep

    Import and export and the other tools use quotes so
    that objects will be properly re-created as they were
    originally specified, even if some one uses reserved
    words or case sensitive names. At least they should. I recently had a customer using FoxPro (!) to access my Oracle Datawarehouse and he named one of his column "ALTER" (age in german). Then he complained that my database is not working because he was getting an Oracle error (ORA-00936: missing expression)!
    However, if some developer made me
    type:
    SELECT "MyCol1", "MyCol2", ...
    FROM "HisTable"
    WHERE "SomeStrangeColumnName" = 42every time,
    I would think seriously of homocide :-).I know the feeling :-)

  • 'desc table name ' query

    Hi,
    I am unable to execute query 'desc <table name>' .
    This query is used to show the description of a given table specified by <table name>.
    It shows me the error like 'not a SQL statement'
    I am working with JSP and JDBC.
    Or if you know anyother way to display table description let me know,
    Waiting for reply.
    Thank You.
    Ketan.

    >I am unable to execute query 'desc <table name>' .
    This query is used to show the description of a given table specified by <table name>.
    It shows me the error like 'not a SQL statement'
    It is Most obvious Tht U wud get an Error as 'desc <table name>' is an Native SQL Query Which wud alwys b dependent on the Database.
    In order to get the info U want there are two Ways to achieve it.
    1).USING PROPERTIES OF ResultSetMetaData
    2).USING getColums method OF DatabaseMetaData
    Method 1:
    =======
    Statement st = con.createStatement();
    ResultSet rs = st.executeQuery("SELECT * FROM EMP");
    ResultSetMetaData rsmd = rs.getMetaData();
    for(int i = 1 ; i <= rsmd.getColumnCount(); i ++){
    System.out.println(rsmd.getColumnName(i)+"   "+rsmd.getColumnType(i));
    } U may go about exploring methods of ResultSetMetaData further.
    But it i personally feel the space complexity & time complexity in the following method is more.
    Method 2:
    ========
    con = DriverManager.getConnection(con_url,uname,pwd);
    DataBaseMetaData dbmd = con.getMetaData();
    ResultSet rs = dbmd.getColumns(null,null,TableName,null);
    while(rs.next()){
    System.out.println(rs.getString(3)+"   "+rs.getString(4));
    // TABLE_NAME  & TABLE_TYPE
    }This method enables us to get relevent info required.
    One of the important things is that both of these methods are platform independent.
    U may go by using either of these methods depending on your requirement.
    Hop this might help u....
    REGARDS,
    RaHuL

  • How to set dynamic table name in sql query?

    I want set dynamic table name by parameter in sql query,just like:
    select * from :tbname
    but run report is error,BI P report table name is invalidation.
    What can i do? Thanks!

    Hi,
    that's only possible inside a data template with a lexical parameter.
    Regards
    Rainer

  • Invalid Table Name in query

    Hello, I'm trying to create a report on a table name that is in an item. This is the simple query I'm using for the report:
    Select * from :P9_MERGE_TABLE;
    I get an Invalid Table Name error. Is there any way I can build the query to get around this problem.
    thanks,
    Jan

    Certainly you can use a bind variable for a table name when building a dynamic sql query. But this is not exactly what I would call "binding the value of variable to a sql statement. You cannot bind a table name to a static sql query (hope this is the correct wording).
    For example:
    It is ok, to create the following static query:
    SELECT * from emp where empno = :P1_EMPNO;But this will not work
    SELECT * from :P1_TABLE_NAME;In this case, you have to do it the way discussed in this thread.

Maybe you are looking for

  • Why can't I log into my ATT Yahoo page from firefox, when it works perfectly in Internet Explorer?

    I haven't ever had this problem before. I have ATT.YAHOO.COM set as my home page. Today I went to log into my account to then check my yahoo mail, and the screen that allows me to log on never loads. Same goes for just hitting the CHECK MAIL as well.

  • Excise reports using XL reporter

    Hello experts                      I generated Excise reports using files available in Indian  legal reports.How can we get drill down facility in these reports? Regards Manoj

  • PR (ME51n) enhancement for F4 help on Tracking no (BEDNR)

    Hi all, I need to do an enhancement on PR ME51n to incorporate F4 help on Tracking number (BEDNR) in the Item Table. I think i have to change the fieldcatalog for the ALV. I cannot figure out how to do that. Any help would be greatly appreciated. Tha

  • Work Protect Mode in VC

    Hi All, Work protect mode is possible in Visual Application? If so, how can we achieve this functionality? Kindly clarify. Thanks, Sridhar.

  • Installing XE Client en Windows 7 and using OLEDB

    Hello, I'm trying to use XECLient with OLEDB on Win 7 but when installing XE client on Windows 7, the "Oracle Provider for OLE DB" doesn't appear in the Providers List (ex : in a udl file). I've tried to do this "regsvr32 OraOLEDB10.dll" and this is