How to check one table exist or not in SAP

Hi, Gurus:
How to check one table exist or not in the SAP.
Thanks,

Hi,
Query the table DD02L..
Select single * from DD02L where tabname = 'Your table name'
                      AND TABCLASS = 'TRANSP'.  " For transparent tables.
Thanks
Naren

Similar Messages

  • How to check internal table sorted or not

    Hi all
    I need to check internal table sorted or not which is without header line and having only one field and six values. please let me know how to check it is sorted or not because i need to display message if it is not sorted.
    thanks,
    Minal

    Hi Minal,
    Go through  this info.
    Sorted tables
    This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.
    Stable sort
    The option
    SORT <itab> ... STABLE.
    allows you to perform a stable sort, that is, the relative sequence of lines that are unchanged by the sort is not changed. If you do not use the STABLE option, the sort sequence is not preserved. If you sort a table several times by the same key, the sequence of the table entries will change in each sort. However, a stable sort takes longer than an unstable sort.
    Examples
    DATA: BEGIN OF LINE,
            LAND(3)  TYPE C,
            NAME(10) TYPE C,
            AGE      TYPE I,
            WEIGHT   TYPE P DECIMALS 2,
          END OF LINE.
    DATA ITAB LIKE STANDARD TABLE OF LINE WITH NON-UNIQUE KEY LAND.
    LINE-LAND = 'G'.   LINE-NAME   = 'Hans'.
    LINE-AGE  = 20.    LINE-WEIGHT = '80.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Nancy'.
    LINE-AGE  = 35.    LINE-WEIGHT = '45.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Howard'.
    LINE-AGE  = 40.    LINE-WEIGHT = '95.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'GB'.  LINE-NAME   = 'Jenny'.
    LINE-AGE  = 18.    LINE-WEIGHT = '50.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'F'.   LINE-NAME   = 'Michele'.
    LINE-AGE  = 30.    LINE-WEIGHT = '60.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'G'.   LINE-NAME   = 'Karl'.
    LINE-AGE  = 60.    LINE-WEIGHT = '75.00'.
    APPEND LINE TO ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB STABLE.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB DESCENDING BY LAND WEIGHT ASCENDING.
    PERFORM LOOP_AT_ITAB.
    FORM LOOP_AT_ITAB.
      LOOP AT ITAB INTO LINE.
        WRITE: / LINE-LAND, LINE-NAME, LINE-AGE, LINE-WEIGHT.
      ENDLOOP.
      SKIP.
    ENDFORM.
    ************rewords some points if it is helpful.
    Rgds,
    P.Naganjana Reddy

  • How to check synonym vendor1 existed or not?

    Hi,
    I want to check synonym vendor1(synonym_name) existed or not in the databse.
    And also want to create a table_name(with out data).
    pls guide me.
    Regards,
    Venkat

    Hello,
    To check the synonym , please consider using one and or both or the disctionarry tables below :
    Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    Connected as SYS
    SQL> desc user_synonyms
    Name         Type          Nullable Default Comments                                     
    SYNONYM_NAME VARCHAR2(30)                   Name of the synonym                          
    TABLE_OWNER  VARCHAR2(30)  Y                Owner of the object referenced by the synonym
    TABLE_NAME   VARCHAR2(30)                   Name of the object referenced by the synonym 
    DB_LINK      VARCHAR2(128) Y                Database link referenced in a remote synonym 
    SQL> desc dba_synonyms
    Name         Type          Nullable Default Comments                                                
    OWNER        VARCHAR2(30)                   Username of the owner of the synonym                    
    SYNONYM_NAME VARCHAR2(30)                   Name of the synonym                                     
    TABLE_OWNER  VARCHAR2(30)  Y                Owner of the object referenced by the synonym           
    TABLE_NAME   VARCHAR2(30)                   Name of the object referenced by the synonym            
    DB_LINK      VARCHAR2(128) Y                Name of the database link referenced in a remote synonym
    SQL> to search of the synonym vendor execute the follwing
    SELECT *
    FROM user_synonyms
    WHERE synonym_name LIKE 'VENDOR%';
    SELECT *
    FROM dba_synonyms
    WHERE synonym_name LIKE 'VENDOR%'for the second question please give more details
    Regards,
    orawiss

  • How to check node value exists or not?

    for example
    <Hi>1</Hi>
    here for Hi value exists or not need to check.

    SQL> create table MY_XML_TABLE of XMLTYPE
      2  /
    Table created.
    SQL> insert into MY_XML_TABLE values ( XMLTYPE('<FOO><H1>FOO</H1><H2/></FOO>') )
      2  /
    1 row created.
    SQL> commit
      2  /
    Commit complete.
    SQL> set feedback on
    SQL> select *
      2    from MY_XML_TABLE
      3   where XMLExists('$x/FOO/H1' passing OBJECT_VALUE as "x")
      4  /
    SYS_NC_ROWINFO$
    <FOO>
      <H1>FOO</H1>
      <H2/>
    </FOO>
    1 row selected.
    SQL> select *
      2    from MY_XML_TABLE
      3   where XMLExists('$x/FOO/H1/text()' passing OBJECT_VALUE as "x")
      4  /
    SYS_NC_ROWINFO$
    <FOO>
      <H1>FOO</H1>
      <H2/>
    </FOO>
    1 row selected.
    SQL> select *
      2    from MY_XML_TABLE
      3   where XMLExists('$x/FOO/H2' passing OBJECT_VALUE as "x")
      4  /
    SYS_NC_ROWINFO$
    <FOO>
      <H1>FOO</H1>
      <H2/>
    </FOO>
    1 row selected.
    SQL> select *
      2    from MY_XML_TABLE
      3   where XMLExists('$x/FOO/H2/text()' passing OBJECT_VALUE as "x")
      4  /
    no rows selected
    SQL>

  • How to check whether file exist or not?

    hello,
    i wanted to know that how can i check whether a file exist or not independent of underlying Operating system?
    please help .
    Thank you.

    Use exists() on a File instance.

  • URGENT!!! how to check whether file exist or not on client side?

    hello,
    i am building appilication using JSP and javabeans.
    Problem is my application is like on server files are there for say colors and their corresponding car image in that color.so when i move my mouse over that particular color ,its corresponding car image is displayed.
    now say someone has deleted that corresponding car image file but image of color is there...........
    so i have to handle such excpetion.
    like if corresponding car image for that color is not there then that color image should also not be displayed.
    i dont want to do this checking on server side.
    pls help me!!!!!!

    You don't have access to the client files. It is a security violation in a normal internet environment. Imagine what people could do to your computer if they could see everything on it.

  • How to check with table for cursor..?

    How to check with table for cursor..?
    Here I have Table temp_final_plan
    Here i want to update if already exit...below is the procedure....
    CREATE OR REPLACE PROCEDURE spu_final_profit_plan
    AS
    -- Constant declarations
      ln_errnum number := 0;
    -- Variable declarations
       ls_errmsg app_errors.err_msg%TYPE;
       ls_appmsg app_errors.app_msg%TYPE;
       ls_appid  app_errors.app_id%TYPE;
    -- Cursor declaration for final_update_el
    CURSOR cur_final_update_el IS
        select '910' ent,
               '9127316' center,
               post_acct,
               sum(avg_mtd_01) sum_avg_mtd_01,
               sum(avg_mtd_02) sum_avg_mtd_02,
               sum(avg_ytd_01) sum_avg_ytd_01,
               sum(avg_ytd_02) sum_avg_ytd_02
          from mon_act_cypy
         where rec_type = 'A'
           and sum_flag = 'D'
           and yr = '2008'
           and substr(ctr_or_hier, 1, 2) = 'el'
           and ent || sub_ent in
               (select ent || sub_ent
                  from ent_ref
                 where roll_ent || roll_sub_ent = '999100')
         group by post_acct
        having sum(avg_mtd_01) <> 0
            or sum(avg_mtd_02) <> 0
            or sum(avg_ytd_01) <> 0
            or sum(avg_ytd_02) <> 0;
    -- Cursor declaration for final_update
    CURSOR cur_final_update IS
        select b.plan_ent b_plan_ent,
               b.plan_ctr b_plan_ctr,
               a.post_acct a_post_acct,
               sum(a.avg_mtd_01) sum_avg_mtd_01,
               sum(a.avg_mtd_02) sum_avg_mtd_02,
               sum(a.avg_ytd_01) sum_ytd_mtd_01,
               sum(a.avg_ytd_02) sum_ytd_mtd_02
          from mon_act_cypy a,
               plan_unit_tbl b
         where a.ent || a.ctr_or_hier = b.ent || b.ctr_or_hier
           and a.rec_type = 'A'
           and a.sum_flag = 'D'
           and a.yr = '2008'
           and b.hier_tbl_num = '001'
           and a.ent || a.sub_ent in
               (select ent || sub_ent
                  from ent_ref
                 where roll_ent || roll_sub_ent = '999100')
         group by b.plan_ent, b.plan_ctr, a.post_acct
        having sum(a.avg_mtd_01) <> 0
            or sum(a.avg_mtd_02) <> 0
            or sum(a.avg_ytd_01) <> 0
            or sum(a.avg_ytd_02) <> 0;
    -- Begin the procedure body
       BEGIN
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update_el IN cur_final_update_el
       LOOP
       EXIT WHEN rec_final_update_el%NOTFOUND;
       IF rec_final_update_el. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,       
           WHERE ent = rec_final_update_el.ent
             AND center = rec_final_update_el.center
             AND post_acct = rec_final_update_el.post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
                                             rec_final_update_el.center,
                                             rec_final_update_el.post_acct,
                                             rec_final_update_el.sum_avg_mtd_01,
                                             rec_final_update_el.sum_avg_mtd_02,
                                             rec_final_update_el.sum_avg_ytd_01,
                                             rec_final_update_el.sum_avg_ytd_02);
       END IF;
       END LOOP;
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update IN cur_final_update
       LOOP
       EXIT WHEN rec_final_update%NOTFOUND;
       IF rec_final_update. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update.sum_avg_ytd_02,       
           WHERE ent = rec_final_update.b_plan_ent
             AND center = rec_final_update.b_plan_ctr
             AND post_acct = rec_final_update.a_post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update.b_plan_ent,
                                             rec_final_update.b_plan_ctr,
                                             rec_final_update.a_post_acct,
                                             rec_final_update.sum_avg_mtd_01,
                                             rec_final_update.sum_avg_mtd_02,
                                             rec_final_update.sum_avg_ytd_01,
                                             rec_final_update.sum_avg_ytd_02);
       END IF;
       END LOOP;
    -- EXCEPTION handling section
       EXCEPTION
    -- Fire OTHERS Exception case by default
       WHEN OTHERS THEN
    -- ROLL BACK Transaction, if any failure
       ROLLBACK;
       ln_errnum := SQLCODE;
       ls_errmsg := SUBSTR(SQLERRM, 1, 100);
    -- Log the ERRORS into APP_ERRORS table using SPU_LOG_ERRORS procedure
       spu_log_errors(ln_errnum, ls_errmsg, ls_appid, ls_appmsg);
    -- End of the stored procedure
    END spu_final_profit_plan;
    [\pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I'm not sure what you mean by, 'How to check with table for cursor..?' but I'll offer a comment on your Code Snippet. I think you want to know how to check if a record exists so you know if you need to perform an INSERT or an UPDATE.
    Here is a snippet of your code. I'll put my comments in "Comment" style in your code.
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update_el IN cur_final_update_el
       LOOP
    /* There is no need to test for %NOTFOUND since you are using Cursor FOR Loop! 
    ** This construct automatically exits when the last record is processed. */
       EXIT WHEN rec_final_update_el%NOTFOUND;
    /* Is this where you would like to know how to Check if the record already exist??
    ** I asked this because, 'rec_final_update_el.' is not valid syntax.  Are you looking for
    ** an Cursor Attribute or Method you can check here? 
    ** I would suggest a Primary Key or Unique Index on ENT, CENTER, and POST_ACCT
    ** on the TEMP_FINAL_PLAN table. Then simply perform an INSERT and code an
    ** Exception to UPDATE when you get a DUP_VAL_ON_INDEX exception.  Otherwise,
    ** you will need to simply run an Implicit or Explicit Cursor to test if the row exists and
    ** use this return value to determine if you should INSERT or UPDATE.  */
       IF rec_final_update_el. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,       
           WHERE ent = rec_final_update_el.ent
             AND center = rec_final_update_el.center
             AND post_acct = rec_final_update_el.post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
                                             rec_final_update_el.center,
                                             rec_final_update_el.post_acct,
                                             rec_final_update_el.sum_avg_mtd_01,
                                             rec_final_update_el.sum_avg_mtd_02,
                                             rec_final_update_el.sum_avg_ytd_01,
                                             rec_final_update_el.sum_avg_ytd_02);
       END IF;
       END LOOP;I hope I've answered your question, but if I haven't please provide more details so we can better understand your request.
    Craig...

  • How to check Reconcilliation has happened or not for a payment document

    Hi,
    How to check Reconcilliation has happened or not for a payment document? Payment doc ABCDEF was created on 2nd. Now i am not sure whethr RECON has happend ot not
    Please help.

    Dear,
    If you have made payment to vendor and want to know whether reconciliation happened or not then check if this document exist in table BSIK then reconciliation has not been done.
    Regards,
    Chintan Joshi.

  • How many types of tables exists and what are they in data dictionary?

    hi,
    How many types of tables exists and what are they in data dictionary?
    regards.

    Hello Liu,
    Please search in forum before posting any question .
    anyhow check the below link :
    http://web.mit.edu/sapr3/dev/sap_table_types.htm
    Thanks
    Seshu

  • How to check the tables we have created in JDBC??

    I have created a table called COFFEE2 in a datasource called temp which is in SQL server...How to check the table values??
    i went into administrative tools and odbc cource then i could see the data source i have created but how to see the table??
    Can anyone help??
    thanx

    Hmm.. not sure that I understand the problem.
    Call getConnection on the DataSource, and then execute the select query on the connection.
    Kaj

  • How to check PSA Table Structure ?

    Hi Friends,
       Can you pls any one tell me how to find out PSA Table and how to check PSA Table Structure? .Thanks in advance.
    Regards,
    CS

    Hi Sri,
    Goto RSA1 trans> select your DS> right clcik> Manage> you will get a Pop-up with all the PSA requests--> on the top Left you can see the PSA name(Technical name) in the form PSA/BIC/BXXXXXX
    PSA & DS structue will be same. Goto RSO2 transaction> Enter your DS name> double click on the extract structure. It will take you to the Extract structure.
    (Or) if you know the extract structure name, directly goto Se11 trans & enter the technical name of Extract structure & Display.
    Take the screenshot & send it to your TL.
    Regards,
    Pavan

  • How to restore one table from the previous backup in 9.2.0.8 version.

    Hi,
    How to restore one table from the previous backup in 9.2.0.8 version.
    Thanks
    -Ganga

    Hi,
    What is the table you want to restore?
    Using export/import is supported with Oracle Apps database (for full database exp/imp, and certain schemas like custom ones). For the Apps schema, I believe it is not supported due to object dependencies and integrity constraints.
    Regards,
    Hussein

  • How to check oracle properly installed or not?

    Hello Friends,
    How to check oracle properly installed or not. cause during installation time the person who installed faced many problems. we have RISK base IBM p5 Series server and Oracle 10g RAC.
    i want to check installation made properly or not.
    Thanks,
    Nikunj Patel

    Installation for RAC environments means you are not only talking about one single installation, but several installations, and the number of installations and checking processes depend on factors such as the clusterware you are using, if you are using the Oracle clusterware or the proprietary clusterware, if you are using a separate oracle home to install the ASM or if you are using the same oracle home for both, the ASM and the RDBMS.
    First you must ensure you have installed all prerequisites according to your platform, i.e. patches, packages, kernel parameters, etc. which are listed at the install guide corresponding to your platform. Then you should use the cluvfy (cluster verifier tool) to check if the different install phases are properly installed
    The most critical and most of the times, problematic installation phase is the clusterware. So you should specify if you installed the Oracle clusterware or the proprietary clusterware. In a RAC environment if your clusterware is not properly installed, most probably you won't have a running RAC, so if your environment is functional there you may have high probabilities that it is OK, but to make sure, launch the cluvfy tool.
    The cluvfy tool verifies the process since the beginning and it ensures your environment meets the required minimum requirements to be at an operational level, it checks the pre/post install phases for the clusterware, pre/post install of the rdbms, and it is launched from the OS. It can be obtained as a standalone product or you can use the one found at the clusterware Oracle Home. For further references on this tool I suggest you to read this
    Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide
    10g Release 2 (10.2) for AIX
    Part Number B14201-04
    ~ Madrid

  • How to check the tables

    Dear experts!
    Thank you for your attention!
    I have studied the SAP SD for half a year, though I still don't know how to check certain table like:
    KNVS---customer master shipping data
    KNBK---customer master (bank detail)
    ADR---address table
    ect.
    could somebody help me?
    Best regard!
    Tangdark

    Hi Tang,
         SAP SD having lot of tables but i am telling main tables.
    VBAK   - Sales Document Headerdetailes
    VBAP   - Sales Document Itemdetailes
    VBEK   - Sales Document Scheduline data
    LIKP      - Delivery Header Detailes
    LIPS      - Deliver Item Detailes
    VBRK    - Billing Header Data.
    VBRP    - Billing Item Data.
    VBFA   - Sales Document Flow
    VBUK   - Sales document header status data
    VBUP   - Sales document item status data.......ctc.
    Regards
    Rajendra

  • How to check small table scan full table scan if we  will use index  in where clause.

    How to check small table scan full table scan if i will use index column in where clause.
    Is there example link there i can  test small table scan full table  if index is used in where clause.

    Use explain plan on your statement or set autotrace traceonly in your SQL*Plus session followed by the SQL you are testing.
    For example
    SQL> set autotrace traceonly
    SQL> select *
      2  from XXX
      3  where id='fga';
    no rows selected
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=13 Card=1 Bytes=16
              5)
       1    0   PARTITION RANGE (ALL) (Cost=13 Card=1 Bytes=165)
       2    1     TABLE ACCESS (FULL) OF 'XXX' (TABLE) (Cost=13 Card
              =1 Bytes=165)
    Statistics
              1  recursive calls
              0  db block gets
           1561  consistent gets
            540  physical reads
              0  redo size
           1864  bytes sent via SQL*Net to client
            333  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processed

Maybe you are looking for

  • Non-trival template use

    Hello My page design has all the components in the cells of a table. I am designing my menus/sub-menu in FW. The changing body of each page is in all the sections of the table below the row with the menus. I would like to lock all the sections of the

  • Trouble Downloading Quicktime

    I ran software update and downloaded Quicktime 7.6.9 update, after restarting my computer a message read "bad/damaged source code" and i cant watch movies, open final cut, or itunes. I have since tried to download quicktime from the Apple website, bu

  • Socket error on receive message on MDM 7.1 Console

    Greetings - This may be a simple question, but I couldn't find a solution, so here goes: I have a new install for MDM: OS: B.11.31 U ia64 (HP Unix) MDM: 7.1.0.5 DB: Oracle 10.2.0.4 MDM Console Client : 7.1.0.5.92 I have MDM server and database on sam

  • XI and SOA

    Hi sap Peoples,                         I am new in SAP XI. Can i know the link b/w Xi and SOA. What is SOA? Thanks&Regards Raja Mohamed.

  • How do I set a song from my music folder as a ringtone?

    I have downloaded a song onto my phone from iTunes but I cannot find a way to set it as my ringtone. It was not downloaded as a ringtone, just as a song. Is this something that can be done?