PROBLEM WITH TABLE NAMES

HI Experts,
I need to give my new table name as z_xxx_xxxx_xxxxxx.
But iam not able to give this name and create a new table since.
The length is bigger.
and it is not allowing me to keep the undersocres in the second place.
Can any one advice

Hi Karthick,
Check out the following links:
http://help.sap.com/saphelp_45b/helpdata/en/0d/d2f7d04a0c11d182b80000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/4a56b2185851468b39b719daa2d3aa/content.htm
Regards,
Rajesh K Soman
<b>Please reward points if found helpful</b>

Similar Messages

  • Problem with table name lengths.

    Has anyone experienced with table name length problem?
    When tables are created with schema registration, and the name is longer than 14 characters, the table is created. But when I "select * from xxxx_xxxx_xxxx_xxxx" it says that the table doesn't exist.
    What's the max length of a table name? Or is this a problem with XDB?
    Thanks,
    Benjamin

    Found the problem.
    All table names must be all capitalized and seperated with underscore.
    Is there something I need to set in oracle? or is this a bug? The tables are created but can't be accessed because of the case of table name... that doesn't make sense.

  • Problem with table name in procedure

    Hi Team,
    I have a procedure in which table name is stored in a variable.
    I want to use this table_name in one select statement of a same procedure.
    declare
    v_table_name varchar2(30);
    begin
    v_table_name:='EMPLOYEE';
    FOR cur IN
    ( select ename,empno,deptno from v_table_name )
    loop
    dbms_output.put_line(cur.ename);
    end loop;
    end;
    Edited by: rajendra on Feb 26, 2012 9:29 AM

    sb92075 wrote:
    you must utilize EXECUTE IMMEDIATEWhy? Plain cursor variable will do:
    declare
        v_table_name varchar2(30);
        v_cur sys_refcursor;
        v_ename varchar2(20);
        v_empno number;
        v_deptno number;
    begin
        v_table_name:='EMP';
        open v_cur for 'select ename,empno,deptno from ' || v_table_name;
        loop
          fetch v_cur
            into v_ename,
                 v_empno,
                 v_deptno;
          exit when v_cur%notfound;
          dbms_output.put_line(v_ename);
        end loop;
        close v_cur;
    end;
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Problem with writing a procedure with table name as an input parameter

    Hi all,
    I am writing a procedure with table name as an input parameter:
    below is the code
    create or replace procedure prc(in_tbl in varchar2)
    as
    begin
    execute immediate ' truncate table tlb ';
    insert into tbl
    select a,b,c from in_tbl;
    end;

    user579585 wrote:
    Hi all,
    I am writing a procedure with table name as an input parameter:
    below is the code
    create or replace procedure prc(in_tbl in varchar2)
    as
    begin
    execute immediate ' truncate table tlb ';
    insert into tbl
    select a,b,c from in_tbl;
    end;You'll also need to use dynamic sql for the insert:
    execute immediate 'begin insert into tbl select a,b,c from '||in_tbl||'; end';

  • Problem with Table control lines

    Hi Friends,
    This is the problem with table control lines:
    I have screen with table control and I would like change the table control lines dynamicaly.
    Exp:
    In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.
    here is the code:
    Initial values in gt_scr400 = 8
    Initial values in tc_scr400 = 8
    Now added one more recor into gt_scr400 , now gt_scr400  = 9.
      LOOP AT   gt_scr400
           INTO wa_scr400
           WITH CONTROL tc_scr400
           CURSOR tc_scr400-current_line.
      ENDLOOP.
    I have used this logic :
      DESCRIBE TABLE gt_scr400 LINES g_rec_300 .
      tc_scr300-lines = g_rec_300.
    but its not modifying the lines in my table control.
    How to change the TC lines based on ITAB total records.
    Thanks,
    Sridhar

    there is a field in TableViewName-xxx
    don't remember the exact field name for (total no of records)
    you can check it in debug.  when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated.

  • Problem with reserved names

    hi everyboody
    i have a problem with reserved names
    i have a table t
    drop table t;
    create table t
    t_id int,
    "DATE" date
    then i insert it
    insert into t values(1,'15.04.10');
    insert into t values(2,'16.04.10');
    select * from t;
    it'sw work correct
    T_ID DATE
    1 15.04.10
    2 16.04.10
    but when i try to create procedure for insert, like this
    create or replace procedure my_proc(p1 int,p2 date)
    as begin
    insert into t values(p1,p2);
    end;
    i receive error message
    i know that the problem is with the name of the second column called "DATE"
    and if we changed this name (for example "tDATE") the procedure will be work
    but i can't change this name
    if anybody knows the solution please help me

    Karthik:
    No, it is not a bug, it is just the way that Oracle works. The list of reserved words can be found in the view v$reserved_words. There is a column in that view called reserved. A word that is in the view and has Y in the reserved column is "really" reserved, that is you will get an error if you use it in an inappropriate place (like a column name) without quoting it. Words with N in the reserved column should not be used as object names, but because they either became special later in Oracle history or for other reasons can be used unquoted but shouldn't be.
    Although I don't know the exact internal mechanism, from experience, it appears to work this way. When Oracle stores the name of a table or column, it always makes it upper case, unless it is double quoted in which case the case is preserved. When it retireves the names, it does not make any changes to the name as it is stored, so always retieves the name as it was stored.
    In the OP's case, by using double quotes he got around the reserved word issue, but by using all upper case within the double quotes what ended up stored in the data dictionary was a reserved word. The sql statement probably worked in sql because it is just doing a string match to see if the specified column names are right, and in the absence of a column list, may even be just looking to see if the type and number is correct without actually looking at the name. I suspect this because it works even if you explicitly list the columns as long as DATE is double quoted.
    SQL> INSERT INTO t (id, "DATE") VALUES (1, sysdate);
    1 row created.
    SQL> roll
    Rollback complete.However, if you do not double quote the column, you get:
    SQL> INSERT INTO t (id, DATE) VALUES (1, sysdate);
    INSERT INTO t (id, DATE) VALUES (1, sysdate)
    ERROR at line 1:
    ORA-01747: invalid user.table.column, table.column, or column specificationIn the case of the PL/SQL, my quess would be that the compiler is retrieving the column names form the data dictionary, then barfing on something similar to the ORA-1747 error above in the compilation process.
    John

  • Problem with table formatting

    I'm having a lot of problems with tables not reflecting their formatting when I open them in a browser. I've tried opening in Safari, Firefox & Camino with the same results. For example, a row with the following html content has a much larger height & aligns the text to the top when opened in a browser:
    <tr>
              <td height="15" colspan="3" valign="middle"><h6 align="center">Summer 2009</h6>
              </td>
            </tr>
    If it matters, this is a row in a table nested in another table. Here's the code down to the row in question (all tags are closed properly in the remaining code):
    <table width="600" border="2" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top"><img src="images/events.jpg" width="250" height="35"></td>
        </tr>
        <tr>
          <td align="left" valign="top">
          <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
            <tr>
              <td height="15" colspan="3" valign="middle"><h6 align="center">Summer 2009</h6>
              </td>
            </tr>
    I am using a style sheet for text. Here's the code for "h6" if that matters:
    h6 {
    font-family: Verdana, Geneva, Arial;
    font-size: 14px;
    font-weight: bold;
    color: #660099;
    Any ideas is appreciated. This is driving me nuts. Spacing and alignment sometimes work and sometimes don't work. Dreamweaver is supposed to make such things easier!
    Kevin

    Header tags are usually used round a bit of text, not parts of a table, and if you don't specify the margins on them, can force different amounts of space below in different browsers. Try making the bottom margin on h6 zero, and confine it to text within a cell.
    Also, if you can upload your page somewhere and let us have the url it will be easier to troubleshoot.

  • Problem with variable name in ZXRSRTOP include (virtual KF)

    Hi all,
    I am coding a routine to use a virtual key figure in the BEx.
    I have just a little problem with the name of a variable:
    as explained in the documentation, I created the variable with the prefix G_POS_, the name of the infocube and the name of the infoobject all together:
    DATA: G_POS_BC_ST_003_C_DIV__C_COMPAR   type i.
    The problem is that this variable name is longer than 30 characters, so the system doesn't accept it.
    Is there a workaround, other than changing the name of the infoobject (which is a navigational attribute)?
    Any help would be appreciated.
    Loï

    Hello Marc,
    I understand that I have to use a concatenate function and a dynamic call of the variable with (variable) instruction, but i do not understand how to implement it.
    the infocube name is BC_ST_003
    the characterisdtic name is C_DIV__COMPAR
    So, in the include ZXRSRTOP the statement
    DATA : G_POS_BC_ST_003_C_DIV__COMPAR
    does not work due a length problem (see first post)
    But in the same include the statement
    +DATA: l_global_name type c.
    concatenate 'GPOS' 'BC_ST_003' 'C_DIV__C_COMPAR' into l_global_name separated by '_'.+
    drives to the following error : statement is not accessible.
    Could u please provide me with an example of the code in the include ZXRSRTOP, and in the include ZXRSRZZZ for the use of this variable.
    Thanks in advance.
    Loï

  • Problem with tables -- need help!

    I am having problems with table formatting, when using
    Preformatted text. The tables look fine in the WYSIWYG editor, but
    have lots of extra space above and below the text when looking at
    the output files.
    I will attach the code from one of the HTML files from my
    project, so you can see what I'm talking about.
    Thanks.

    Well, if you're talking about the single-celled table with
    the line:
    <p class=Preformatted>[assembly:
    Ace.AceAssembly]</p>
    </pre>
    ... you can eliminate the <P> tags. that will give you
    one line less. Otherwise, your remaining space is the result of the
    <PRE> tag. It, like the <XMP> tag, gives it one line of
    space beneath as well.
    Your alternative beyond that would be to, when needed, wrap
    up the script in Javascript. That line, for instance, wouldn't need
    it.

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • What could be the problem with table REGUH

    Hi exprts
    i developed a report . its wrking ok in developemt system
    but in Quality system ,
    the below query is taking more time.
    in quality even  i have taken slection criteria which is very less than devlopment selection.
    please tell me the below query is performance wise not good or
    is there any problem with table REGUH in quality system?
      IF NOT ( t_bsak_aux[] IS INITIAL ).
        SELECT laufd laufi xvorl zbukr lifnr rwbtr kunnr empfg"
               vblnr ausfd rzawe
          FROM reguh
          INTO TABLE t_reguh
          FOR ALL ENTRIES IN t_bsak_aux
          WHERE laufd <> space
            AND laufi <> space
            AND zbukr = t_bsak_aux-bukrs
            AND lifnr = t_bsak_aux-lifnr
            AND vblnr = t_bsak_aux-augbl.
    thanks in advance
    regards
    neeru

    Hi,
    Using SPACE against the keys (LAUFI, LAUFD - specifically LAUFD) will most likely return no results. LAUFD, being one of the keys and the date which the program is supposed to run (considering that this is settlement data - it has already run) - implies that this field will be populated.  Putting " = SPACE" in your where clause is saying that you want to find records from the table where those fields are not populated.  That is fine for LAUFI, considering it is the indicator for a proposal only. In my requirement, my client did not want to see proposals but only real payment runs - therefore, LAUFI = SPACE is correct. 
    The reason you are having poor performance while selecting form this table is because it is a cluster table like bseg.  This thread explains a little bit of why cluster tables are a performance nightmare when trying to select - although it is about bseg, you will get the idea:
    http://blogs.ittoolbox.com/sap/db2/archives/select-from-bsegrfblg-performance-problem-14247
    I'm trying to find an alternative to get bank account information regarding payments - I will post a reply if I am lucky to find one! 
    Good luck

  • Problem with table MBEWH

    Hello SAP experts , im having a little problem with table MBEWH because the data i whant to extract isnt the correct one, i saw that this table stores all the prices for the materials and it groups them by year and by month but when i check to see what was the price for a specific material the price i had on that time periord inst the same as the one on the system, also i manage my material with baches and when i check to  see if that batch was in that period of time it isnt so im really confused as to how the system saves the historical data on this table, thank you in advanced.
    kind regards

    read OSS note 193554 , it explains everything

  • Problem with table paging [PDK for NET]

    Hi All,
    I have a problem with table paging in PDK for .NET (ver 2).
    The Table has 14 visible rows.
    The lead selection is set to "SINGLE"
    When the user selects a row I can use
    Table1.SelectedKeys(0) Mod Table1.VisibleRowCount
    in order to get the info of the selected row.
    If I will page using the "Prev/Next" page of the Table UI element it will also work.
    However, when I press "Prev/Next" item and then select a row it chooses the wrong row.
    (See picture: http://img509.imageshack.us/img509/3882/table5tq.jpg)
    What can I do in order to solve the problem?
    Thanks,
    Omri

    Hi Omri,
    how are you doing ?
    The SAPTable is similar to a DataGrid control and need to be bound to the datasource on every postback
    a good idea is to keep the dataset available in the page or on the server ( so that you dont need to keep making expensive fetch operations
    The selected row is affected by the recordset (dataset) and needs additional programming
    A work around for the selected row issue is to save it in a server side hidden variable (or anything that will persist) and read and set the value in the page / next button handler
    with respect,
    amit

  • Bex analyzer - internal error problem with table c_t_variable

    HI All,
         When ever I try to refresh a query in Bex-Analyzer ,Iam getting "internal error problem with table c_t_variable".
         Please advise
    Edited by: Aparna Duvvuri on Jan 13, 2010 10:53 AM

    Hi Aparna,
    try to open the query in RSRT and debug the query.the error is due to some  customer exit variable so try to debug the code for the variable and rectify it.
    Thanks,
    Ashok

  • Problem with song names

    Hey, I'm having this problem with song names. For example, instead of the song title being "Song Title" it will be like "Artist Name - Song Title". It's like this for half my files. I'm trying to organize my music files and every time I fix it, it keeps going back.
    This has happened to me before and usually if I double click it, it will automatically change. This time, nothing seems to work except doing it manually ("Get Info)" and that would take too long since I have 7,000 files like this. I posted this on another board and somebody said to right click the songs and click Update ID3 v2.4 which originally worked, but now nothing but manually doing it works.
    This is like this when I open it for other programs, but I know iTunes caused. I think it has something to do with the "Keep my iTunes Folder Organized" check because iTunes renames the file. I also tried reinstalling itunes and readding my files.
    Thanks for any help!

    I don't completely understand what you are trying to say, but iTunes doesn't automatically change your tag information.
    iTunes stores a copy of the tag information in the library database. When you play a track, iTunes re-reads the tag information from the song file and updates the library data. This produces the efferct that iTunes appears to change tag information but it isn't, it is meerly reflecting a change that already happend.
    Do you have any other software on your PC that can automatically change tag information? For example Windows Media player can do it if you select an option to retrieve data from the internet and overwrite existing info. But other software may do it too.
    If you want to force iTunes to re-read all tags, go to your Music view and go to Edit>>Select All. Then right click in the selection and choose Get Info. Don't change anything, just exit by clicking OK. iTunes will update the library with the tag information from the song files.

Maybe you are looking for