Structure of table

hi everybody,
1. how to describe the structure of the table without using describe keyword in isqlplus....
2.Is there any possibilities to find the data in table without using the where clause;
eg: select salary from employees where last_name='King';
regards,
s.h

845946 wrote:
eg: select salary from employees where last_name='King';
Actually, I just thought of another way! Use USING:
SELECT last_name, salary
FROM employees
GROUP BY ROWID, last_name, salary
HAVING last_name = 'King';I included ROWID in the GROUP BY just in case there are two employees named King with the same salary: Using ROWID will make both records uniue.

Similar Messages

  • Differrences between structure and table in data dictionary in ABAP?

    What is the differrences between structure and table in data dictionary in ABAP?
    are they same?

    Tables :
    1. The place where the data is stored so that you can retrieve at any time.
    2. There can be more than one record stored
    Structures :
    1. The data / info stays only during the runtime of the application and will not get stored at all during the run time ....
    2. Only one record can be stored at the runtime .....
    A structure forms the skeleton of the table.
    A structure comprises components i.e., fields. Types are defined for the components A component can refer to an elementary type (via a data element or by directly specifying the data type and length in the structure definition), another structure or a table type. A structure can therefore be nested to any depth
    Tables can be defined independently of the database in the ABAP Dictionary. The fields of the table are defined with their (database-independent) data types and lengths.
    When the table is activated, a physical table definition is created in the database for the table definition stored in the ABAP Dictionary. The table definition is translated from the ABAP Dictionary to a definition of the particular database.

  • "The Dictionary structure or table "*C865" is either not active or does"

    Hello experts,
    I have a transaction - VKOA. I get the following error on executing this t-code. The program used by this t code is SAPL089C.
    The error is
    Runtime errors         SYNTAX_ERROR
    Occurred on     11/23/2009 at   05:12:58                                                                               
    Syntax error in program "SAPL089C ".                                                                               
    What happened?                                                                               
    The following syntax error occurred in the program SAPL089C :                                  
    "The Dictionary structure or table "*C865" is either not active or does not exist."                       
    Error in ABAP application program.                                                                               
    The current ABAP program "SAPLSVIM" had to be terminated because one of the                    
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.          
    Error analysis             
    The following syntax error was found in the program SAPL089C :                       
    The Dictionary structure or table *C865 is either not active or does not exist.
    Please suggest a suitable solution to this problem...
    Many Thanks in adv.
    Kunal
    Edited by: kunal kotak on Nov 23, 2009 6:53 PM

    Hi ,
    I will try the solution propesed by Max.
    In the meantime, I would like to confirm if there is something related to SAP Note # SAP Note 72121. Refer the following details from the note.
    Symptom
    When you maintain account determination (FI or SD), you get the error
    message:
    The DDIC structure or table "*C400" is not active or does not exist.
    OR
    The system writes a dump with DBIF_NTAB_TABLE_NOT_FOUND, C400 was not
    found.
    C401 can also appear instead of C400.
    Additional key words
    Tables C400, C401.
    Program: SAPL089C, L089CT00
    Transaction: VKOA
    Solution as per the note
    1. Execute the program RV12A002. On the selection screen, enter Usage C,
    Tables 400 to 401.
    WARNING: Make sure that you only delete C400 and C401!
    Execute the program.
    2. Execute program RV12A001. On the selection screen, enter Usage C and
    mark 'Reports & Screens'.
    Can there be sometihing similar to this for C865 table as well. Just a thought.

  • ORA-00932 Using Structured XML Table

    Hello,
    I'm having a problem in trying to create and use a Structured XML Table.
    I have created very small sample that illustrates my problem:
    I have registered the following schema:
    <schema
    targetNamespace="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd"
    xmlns:jjm="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd" xmlns="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <complexType name="JjmType">
    <choice maxOccurs="unbounded">
    <element name = "Key" type = "string"></element>
    <element name = "Type" type = "string"></element>
    <element name = "AccessID" type = "string"></element>
    </choice>
    </complexType>
    <element name ="Jjm" type="jjm:JjmType"/>
    </schema>'
    Then I created the following table:
    CREATE TABLE JJM_SCHEMA of XMLType
    XMLSCHEMA "http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd"
    ELEMENT "Jjm";
    Then I inserted the following row:
    insert into JJM_SCHEMA values(xmltype('<Jjm
                             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                             xsi:noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
    <Key>anp</Key>
                   <Type>User</Type>
    <AccessID>TSL2</AccessID>
    </Jjm>'));
    Then I do the following query:
    SELECT
    extract(value(x),
    '/Jjm[Type="User"]') AS jjmXML FROM JJM_SCHEMA x
    WHERE existsNode(value(x),'/Jjm[Type="User"]') = 1;
    I get this error:
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected UDT got CHAR
    However, if I remove the Xpath predicate [Type="User"] from the "extract()" function and WHERE clause...
    SELECT
    extract(value(x),
    '/Jjm') AS jjmXML FROM JJM_SCHEMA x
    WHERE existsNode(value(x),'/Jjm') = 1;
    The query works.
    Also, If I change the schema from <choice maxOccurs="unbounded"> to <sequence>... either query works.
    I need the "choice" type element to work with the Xpath predicate. Am I missing something?
    Thanks in advance.
    Jim McDowall

    Jim
    Which version of the database are you using...
    Testing with 9.2.0.4.0 I had to add an xmlns declaration to the instance document before I could insert it into the table
    <Jjm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd" xsi:noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
         <Key>anp</Key>
         <Type>User</Type>
         <AccessID>TSL2</AccessID>
    </Jjm>
    However once that was done I get the following.
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Aug 20 15:40:32 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> spool testcase.log
    SQL> set trimspool on
    SQL> connect &1/&2
    Connected.
    SQL> --
    SQL> set timing on
    SQL> set long 10000
    SQL> set pages 10000
    SQL> set feedback on
    SQL> set lines 132
    SQL> --
    SQL> SELECT extract(value(x),'/Jjm[Type="User"]') AS jjmXML
    2 FROM JJM_SCHEMA x
    3 WHERE existsNode(value(x),'/Jjm[Type="User"]') = 1
    4 /
    JJMXML
    <Jjm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tsldev01.thesoftlife.com:7887/SoftTop/S
    noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
    <Key>anp</Key>
    <Type>User</Type>
    <AccessID>TSL2</AccessID>
    </Jjm>
    1 row selected.
    Elapsed: 00:00:02.07
    SQL> SELECT extract(value(x),'/Jjm') AS jjmXML
    2 FROM JJM_SCHEMA x
    3 WHERE existsNode(value(x),'/Jjm') = 1;
    JJMXML
    <Jjm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tsldev01.thesoftlife.com:7887/SoftTop/S
    noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
    <Key>anp</Key>
    <Type>User</Type>
    <AccessID>TSL2</AccessID>
    </Jjm>
    1 row selected.
    Elapsed: 00:00:00.00
    SQL> /
    JJMXML
    <Jjm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tsldev01.thesoftlife.com:7887/SoftTop/S
    noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
    <Key>anp</Key>
    <Type>User</Type>
    <AccessID>TSL2</AccessID>
    </Jjm>
    1 row selected.
    Elapsed: 00:00:00.00
    SQL> quit

  • STRUCTURE OF TABLE CUSTOMER IN SQL

    PLZ TELL ME THE STRUCTURE OF TABLE CUSTOMER AND ORDERS
    IN SQL. AS I WANT TO WORK ON THESE TWO TABLES....
    THANKS'

    Search script of demobld.sql you will find this script there where customers,emp,dept structure as well data..
    Khurram

  • Structure of table and work area are not compatible - table control wizard

    Structure of table and work area are not compatible is the error i am getting when specifying my internal table and work area in my table control?  What am I doing wrong?

    hii
    this error comes when you have different structure of work area then internal table..so work area will not work here and you will not be able to append records in internal table.
    check strucure of internal table and work area.it should be like below.
    TYPES:
      BEGIN OF type_s_kna1,
         kunnr LIKE kna1-kunnr,            " Customer Number
         name1 LIKE kna1-name1,            " Name
         vbeln LIKE vbap-vbeln,            " Sales Document
      END OF type_s_kna1.
    * Internal Table And Work Area Declarations For Customer Details      *
      DATA : t_kna1 TYPE STANDARD TABLE OF type_s_kna1,
             fs_kna1 TYPE type_s_kna1.
    regards
    twinkal

  • Calrification of structure and table type

    hai experts,
    what is the difference between STRUCTURE AND TABLE TYPE?

    Refer this for TABLE TYPE
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm
    STRUCTURE
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2d74358411d1829f0000e829fbfe/content.htm
    SE11, In structre u <b>cant maintain any values</b>. Its just used as a refernce.
    In tables u can maintain values.

  • Extractor andExtract structure and table Relation

    Hi All,
    Is there any system table which provides the Datasource/Extractor/ Extract
    structure and table Relation Information.
    For ex:
    Data source 2LIS_02_ITM uses following tables for data
    EKKO
    EKPO

    Hi Murali,
    I'm not really sure if there exists a table to give the information that you've asked for...
    Let me to tell you something to find out the tables referred in a datasource.
    Execute your datasource in RSA3 in Debug mode. This will give you the details of the tables used by that datasource.
    assign points if useful ***
    Thanks,
    Raj

  • How can we use IMPORT-EXPORT as structure and TABLES parameters?

    Hello Sir,
    I have used SAPRFC with single IMPORT and EXPORT parameter.
    Could anybody give me an example in I can use IMPORT/EXPORT as structure and TABLE parameter as input?
    of course from/to PHP.
    Regards,
    RH

    Thanks

  • Changing structure of tables

    Hi all,
    I would like to know whether it is possible to change the structure of tables in Visual Composer. As far as I know it is only possible to put characteristics and key figures in the colums of the table. However, I would like to put some characteristics in the rows of the table. Is this possible?
    Thanks in advance,
    Ralph

    If I understand you correctly, you are asking for a pivot control in VC, similar to the one in BW?
    Alas, there is no pivot control available in VC, but as long as you use e.g. MDX statements or BW queries and the dynamic port functionality (like in the adding columns), you can always add "rows". VC flattens the multidimensional result into a 2 dimensional.
    The number of rows itself is not limited.
    Other things known from WAD, like hierarchies in rows, automatic coloring, etc. is not available with the current version of VC.
    Hope this answers your question. If not, could you provide an example, what you would like to achieve?

  • Binding Structure/Internal Table to Workflow from Webdynpro

    Hi Gurus,
    I have to trigger workflow from WEBDYNPRO application. For now I have two ways they are:
    1. Triggering WFLow using SAP_WAPI_START_WORKFLOW (Successfull):
    How could I bind Structure/Internal Table (DDIC referred structure) to workflow directly. Presently I am mapping indvidual fields which makes my code complex using FM SAP_WAPI_START_WORKFLOW.
    2. Triggering WFLow using SAP_WAPI_CREATE_EVENT (Bindind issues):
    Also When I try to submit using BOR event with SAP_WAPI_CREATE_EVENT workflow triggers successfully But I cannot able to bind the values. So are there any specific configuration need to be made.( like making task as General while triggering workflow using SAP_WAPI_START_WORKFLOW).
    <<text removed>>
    Edited by: Matt on Aug 5, 2011 7:49 PM

    Hi
    Please make use of the below code
    INCLUDE cntn01_swc.
    DATA lt_kna1    TYPE TABLE OF kna1.
    DATA lt_cont    TYPE TABLE OF swcont.
    DATA lv_wiid    TYPE          sww_wiid.
    swc0_create_container  lt_cont.
    SELECT * FROM kna1 INTO TABLE  lt_kna1 UP TO 10 ROWS.
    swc0_set_table lt_cont 'CUST' lt_kna1.
    CALL FUNCTION 'SWW_WI_START'
      EXPORTING
        creator                      = sy-uname
        task                         = 'WSXXXXXXXX'
        do_commit                    = 'X'
      IMPORTING
        wi_id                        = lv_wiid
      TABLES
        wi_container                 = lt_cont
      EXCEPTIONS
        id_not_created               = 1
        read_failed                  = 2
        immediate_start_not_possible = 3
        execution_failed             = 4
        invalid_status               = 5
        OTHERS                       = 6.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    The other way to do is you  can also make use of OO ABAP classes to trigger the workflow. If you want to create a rfc function module then create a wrapper function module .
    SAP_WAPI_START_WORKFLOW cannot transfer structures or tables which are more thatn 255 characters. So the work around is  either make use of  OO  container or SWCONT container.
    The above code snippet should be included in the assistance class of the webdynpro application and you need to include the define the include cntn01_swc in the class local types  under macros.
    and then you create a method ....... and include the above code in that method.   excluding the include statement.
    Regards
    Pavan

  • PO structures or tables that hold the values at Routine level

    hi
    can any one tell me what are all the MM structures or tables that holds value of mode of transport (OIC_MOT) and Order acknowledgment requirement (KZABS) values at VOFM routine level.
    if we caunt find these values at the routine level through structures, is there any other method to get those values at the routine level
    vamsi

    hi Mav,
    it's normal to have + and - records in infocube, the way infocube work is always ADD/INSERT records, any changes to data will be - first then insert new value, e.g
    Data come from transaction
    Date           Customer     Order Qty
    12.12.2005     A            100
    Data go to infocube
    Date           Customer     Order Qty
    12.12.2005     A            100
    Then transaction change :
    Date           Customer     Order Qty
    12.12.2005     A            50
    so in infocube will have 3 records :
    12.12.2005     A            100
    12.12.2005     A           -100
    12.12.2005     A             50
    -- total = 50 (correct)
    so its' normal to have - in infocube
    you can eliminate these records by do infocube compression.
    hope this helps.

  • How do I implement Tree structure in table in JSP?

    Hi
    how do I implement Tree structure in table in JSP? any body suggest?
    Thanks
    siva

    If you're using JSP+JSTL, use the JSTL's c:forEach tag. If you're using JSP+JSF, use the Tomahawk's t:tree tag.

  • Difference between Info structure and Table

    Hi Friends
    I need to know difference between info structure and table (updating a table using a scheduled program),Which one of this is better and why?
    Please help me to get the Pros and Cons of the two available approach.
    Thanks
       Mitesh

    Hi,
         No different, these are just transparent tables like any other. You can select data from them the same as any other transparent table.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4342729&messageID=1424611
    https://forums.sdn.sap.com/click.jspa?searchID=4342729&messageID=3609095
    Regards

  • Structure & Internal Tables

    What is the difference between Structure & Internal Tables,
    Regards.

    Hi chidambar,
    to say simply the internal table can have data within it but a structure is that which can be used by an internal table to define its columns ,it cannot have data on its own
    coming to thoery this may help you,but dont confuse more with the theory
    Structures
    A structure is a sequence of any elementary types, reference types, or complex data types.
    You use structures in ABAP programs to group work areas that logically belong together. Since the elements of a structure can have any data type, structures can have a large range of uses. For example, you can use a structure with elementary data types to display lines from a database table within a program. You can also use structures containing aggregated elements to include all of the attributes of a screen or control in a single data object.
    The following terms are important when we talk about structures:
    Nested and non-nested structures
    Flat and deep structures
    A nested structure is a structure that contains one or more other structures as components. Flat structures contain only elementary data types with a fixed length (no internal tables, reference types, or strings). The term deep structure can apply regardless of whether the structure is nested or not. Nested structures are flat so long as none of the above types is contained in any nesting level.
    Any structure that contains at least one internal table, reference type, or string as a component (regardless of nesting) is a deep structure. Accordingly, internal tables, references, and strings are also known as deep data types. The technical difference between deep structures and all others is as follows. When you create a deep structure, the system creates a pointer in memory that points to the real field contents or other administrative information. When you create a flat data type, the actual field contents are stored with the type in memory. Since the field contents are not stored with the field descriptions in the case of deep structures, assignments, offset and length specifications and other operations are handled differently from flat structures.
    Internal Tables
    Internal tables consists of a series of lines that all have the same data type. Internal tables are characterized by:
    The line type, which can be any elementary type, reference type, or complex data type.
    The key identifies table rows. It is made up of the elementary fields in the line. The key can be unique or non-unique.
    The access method determines how ABAP will access individual table entries. There are three access types, namely unsorted tables, sorted index tables and hash tables. For index tables, the system maintains a linear index, so you can access the table either by specifying the index or the key.
    Hashed tables have no linear index. You can only access hashed tables by specifying the key. The system has its own hash algorithm for managing the table.
    You should use internal tables whenever you need to use structured data within a program. One imprint use is to store data from the database within a program.
    plz reward if helpful,
    plz get back to me for further queries.
    thanks and regards,
    srikanth tulasi.

  • How to update SIS Structure S503 table for Sales Order

    Hi All,
    I have a requirement where i want to restrict S503 table getting updated for an Item Category. Can somebody please help me in this.
    Complete scenario:
    I am splitting Sales Order line item into multiple Sub Line items based on batch determination. So for a line item 10 in Sales Order having ordered quantity 1000 i have 2 more sub line items 101 and 102 based on 2 available batches having 500 quantites each. When Sales Order is saved S503 have 1 entry for SO created but the ordered and confirmed quantity is doubled as it is picking it from main line item 10 as well as from 101 and 102.
    Is there any way to restrict the main line item entry quantity from getting in to SIS structures.
    Thanks,
    Sudhir.

    Hi,
    There is a change in the requirement.
    Scenario:
    I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
    For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
    Thanks.
    Balaram

Maybe you are looking for

  • Text Entry Interaction -- Password Processing

    Hi everyone, I have this text entry interaction set up to show asterisks when user types the password. I was wondering if it can be done in a way where I have 3 fields: field 1 asking the user to enter current password. field 2 asking the user to ent

  • PLEASE HELP - Problem with 2 column fixed template in Dreamweaver CS3

    I am trying to create a website using the 2 column fixed, right sidebar, header and footer html template in Dreamweaver CS3.  I tried putting a picture in the right side bar as well as with in the main content or left portion of the page, and neither

  • Newbie to sql developer, how to stop a query

    Hi All, A very basic question and I've searched through this forum and Tom's site, i think i read it somewhere but i forgot where and what it was. How can I stop a query running in Sql Developer with what key combination? Ctrl-C D E Q .........., hel

  • Pacman: Connection refused under Gnome

    Hi! I have following problem: When i try to install packages or try so sync pacman (running Gnome) it says for EVERY server "connection refused". (tried most of them and I'm not using the standard arch mirror) When I go to console with Ctrl+Alt+F1 it

  • af:tree issue

    Hi, I'm using the below code to get the pages from pages.xml <af:tree id="tree1" var="node2" initiallyExpanded="true" value="#{navigationContext.navigationModel[ 'modelPath=/oracle/webcenter/portalapp/navigations/MyLearningNavigation.xml'] .treeModel