Why we need internal tables how it has its own significance for its purpose

we can maintain tables in oracle also and some other features .but how internal tables differ from them in its functioning

u2022 In ABAP/4, you work mainly with tables. Tables are the essential data structures in the R/3 System. Long-life data is stored in relational database tables.
u2022 Besides database tables, you can create internal tables which exist only during the runtime of your program. ABAP/4 provides various operations for working with internal tables. You can, for example, search for, append, insert, or delete lines.
u2022 The number of lines in an internal table is not fixed. Depending on requirements, the system increases the size of internal tables at runtime.
u2022 You can use internal tables to perform table calculations on subsets of database tables. For example, you can read a certain part of a database table into an internal table (see Reading Data into an Internal Table).
From the internal table, you can then calculate totals or generate a ranked list.
In ABAP/4, you can distinguish between internal table data types, which define the structure of internal tables, and internal table data objects, which are the actual internal tables and can be filled with data. An internal table data type is an abstract definition of a data structure which can be used to declare data objects as internal tables.
u2022 Another use for internal tables is reorganizing the contents of database tables according to the needs of your program. For example, you can read data relevant for creating a telephone list from one or several large customer tables into an internal table. During the runtime of your program, you can then access this list directly without having to perform a time-consuming database query for each call.
Table type
The table type determines how ABAP will access individual table entries. Internal tables can be divided into three types:
Standard tables have an internal linear index. From a particular size upwards, the indexes of internal tables are administered as trees. In this case, the index administration overhead increases in logarithmic and not linear relation to the number of lines. The system can access records either by using the table index or the key. The response time for key access is proportional to the number of entries in the table. The key of a standard table is always non-unique. You cannot specify a unique key. This means that standard tables can always be filled very quickly, since the system does not have to check whether there are already existing entries.
Sorted tables are always saved sorted by the key. They also have an internal index. The system can access records either by using the table index or the key. The response time for key access is logarithmically proportional to the number of table entries, since the system uses a binary search. The key of a sorted table can be either unique or non-unique. When you define the table, you must specify whether the key is to be UNIQUE or NON-UNIQUE. Standard tables and sorted tables are known generically as index tables.
Hashed tables have no linear index. You can only access a hashed table using its key. The response time is independent of the number of table entries, and is constant, since the system access the table entries using a hash algorithm. The key of a hashed table must be unique. When you define the table, you must specify the key as UNIQUE.
I hope it helps.
Have a look at below link for details:
[Internal Tables|http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/frameset.htm]
Best Regards,
Vibha
Please mark all the helpful answers

Similar Messages

  • My project need to be saved as a Video_TS/Audio_TS file for burning purposes with a company that does bulk burring. how do i go by this?

    my project needs to be saved as a Video_TS/Audio_TS file for burning purposes with a company that does bulk burring. how do i go by this?

    VIDEO_TS (and an empty audio_ts) folders are part of a standardised DVD structure.  So, what you need a DVD-authoring tool.  FCPX offers to create a very simple DVD, one movie, two designs (black or white), no menu, done.  Older Macs came pre-installed with iLife/iDVD  … export your project as a 'Master', drag into iDVD, select any design template ...   Apple axed 'disk creation' about 7 years ago ... the AppStore is crowded with other, convenient, consumer, template based  tools. Professional structured DVDs are only optional with obsolete DVDSP (part of FC-suite) or Adobe Encore .....

  • I need help my iphone 5c has been on charge for 5 hours and still has not turned on past the charging symbol, what can i do? (baring in mind i got this phone 2 days ago brand new.)

    i need help my iphone 5c has been on charge for 5 hours and still has not turned on past the charging symbol, what can i do? (baring in mind i got this phone 2 days ago brand new.)

    Do you see a lightning bolt near the battery , Battery is charging (supposedly(  IF  not return to where  you purchased it  (also make sure that the charger is on)  if still not charging with lighting bolt bring it back

  • I need to know how to size a media server for 800-1200 user

    i need to know how to size a media server for 800-1200 user

    Please clarify what you mean. Do you already have an iPhone? If so, and it came from the US and is (presumably) carrier locked, you're out of luck. NONE of the US carriers will unlock iPhones. There are no exceptions.
    The unlocked iPhone 4S is not yet available in US Apple retail stores. All phones sold at retail in the US are currently carrier locked.

  • I have a presentation to make to a customer and need to know how many educational apps are there for the iPad/iPod?

    I have a presentation to make to a customer and need to know how many educational apps are there for the iPad/iPod? More specifically special education apps.
    Thanks

    Keep in mind as well that not all apps are "created equal".  Some are really good, and others are not very good.  You might also want to look at some education sites for recommendations.  An example of a general iPads in education forum is
    http://ipadeducators.ning.com/
    but I imagine some exist for special education needs as well.  Our healthcare organization is using some apps for working with autistic children and find them very helpful. 

  • Why does my internal table(with header line) ignore 4 of its fields?

    Hi Gurus,
    I am a newbie to ABAP how has spent far to much of my weekend time trying to solve the following problem;
    when trying to insert data from table cdpos into my internal table, I only get the two object* fields, the other 3 are not even part of the internal table according to the debugger.
    my select code is:
      SELECT  fname tabkey changenr    objectclas objectid
       FROM  cdpos
       INTO CORRESPONDING FIELDS OF i_cd_index
      WHERE tabname = 'XXX'
       AND  fname   = 'XXX'
       AND  chngind = 'U'   
      ENDSELECT.
      IF sy-subrc <> 0.
      ENDIF.
    - If I use a wa like line of i_cd_index the other fields will show up.
    - I have tried with including 'TABLE' in the INTO statement, same result.
    Please help out, getting very frustrated here....
    /Mike

    Hi Magdic,
    I have completely coded for but i have taken as parameters rather direct values (XXXX). Under stand the code and select statement you will get it. Program which i have shown is working fine.
    Do one thing first go the table CDPOS take one entry of Objectid, Tabname, fname and chngind and then enter in the selection and find whether the values are fetched correctly or not.
    To my knowledge there might be no data in your table.
    Anyhow try the below code.
    TABLES: CDPOS.
    DATA: ITAB LIKE CDPOS OCCURS 0 WITH HEADER LINE.
    parameters: p_CHGID like CDPOS-chngind,
                p_TAB like CDPOS-TABNAME,
                P_FNAM LIKE CDPOS-FNAME.
    SELECT OBJECTID TABNAME FNAME CHNGIND FROM CDPOS INTO CORRESPONDING FIELDS OF ITAB WHERE OBJECTID = P_CHGID
                                                                                    AND TABNAME = P_TAB
                                                                                    AND FNAME = P_FNAM.
    APPEND ITAB.
    ENDSELECT.
    WRITE: ITAB-OBJECTID, ITAB-TABNAME, ITAB-FNAME, ITAB-CHNGIND.
    Cheers!!
    Balu

  • Why we need of tables in smartforms

    very very urgent

    Follow these steps to create a table
    In the window, right click, say create table,
    In the table tab, click details,
    Specify a Line type say L1, define how many columns you want and their width, you can also do this on the table painter by drag-drop.
    Now in the Header,Main Area,Footer wherever you want as per your requirements, Right Click, say create table line, specify the line type you defined in the table painter.
    In the Data section, click Loop at INTERNAL TABLE into WORK AREA
    In the cells of the rows, print the work areas
    EXAMPLE:
    If you want 5 columns, you need to declare 5 cells in one line type of the table
    Click on Table -> Details, then do the following
    Line Type 1 2 3 4 5
    L1 2mm 3mm etc
    Here specify the width of the columns as many as you want..
    then in the header/main area of the table, click create Table Line, Rowtype is L1, automatically 5 cells will come,In each cell create a text element, display the variable to be printed there
    &wa-1&
    &wa-2&
    and so on

  • What is event handler in oopsand why we need it  and how to use it ?

    Hi  everyone ,
    I am new to sdn.I did not understand event handler  in oops .Please replay to this .
    Thanks & Regards,
    Sudeep Subudhi.
    Moderator Message: Welcome to SDN. Please read the [Forum Rules of Engagment|Welcome and Rules of Engagement; before posting your question.
    Edited by: Suhas Saha on Jan 9, 2012 2:51 PM

    EDIT: BAH! I posted too slow... but there is still some information about saving and clearing in there
    Its for making a playlist while your 'on the go'. So you click and hold the middle button the selected song (or album) should flash... Then you go into the playlist menu (music>playlists>on-the-go) and use it like any normal playlist...
    When there's songs on the playlist it gives you the option to save or clear at the end of the song list, you select either one and it'll ask for conformation.
    It works in both manually sync and auto sync mode. But if you have it on auto sync the play list will be created in iTunes...
    So I'm not sure why you don't see songs in it after yo assign them to it, try sending a whole album and then music>playlists>on-the-go the album songs should be listed.
    As for reasons to use it well maybe while out and about you realise that you want to hear from two artists at the same time, Radiohead and Bowie, in a shuffle mode. You could make it a on-the-go playlist. Or there's a few podcasts you want to hear in order... so you go down the list and assign them to on-the-go.
    Some people use the On the go to note songs that need to be looked at in iTunes later, maybe because its too quiet, badly imported or they don't understand how such a bad song found its way onto the iPod.
    Once you save it if you try and put more songs to it, 'on-the-go-1' will be created.
    -hope this helps

  • Using 3 internal table how we will create join

    how we will make join by takin data from 3 internal table , plz tell me in details?

    assume that 3 itabs have a common fld1 
    and we r joining all3 into 4th ,  itab4
    loop itab1.
    read table itab2 with key fld1 = itab1-flad1.
    read table itab3 with key fld1 = itab1-flad1.
    move corresponding fields from itab1 to itab4.
    move corresponding fields from itab2 to itab2.
    move corresponding fields from itab3 to itab2.
    append itab4
    clear itab1, itab2 itab3, itab4.
    endloop
    now itab4 contains all the join flds
    Reward if useful

  • Internal table - how to find double entries ?

    HI,
    im using an internal table with
    field1
    field2
    field3
    field4
    field5
    where field1 and field2 are key fields.
    how can i find out duplicate(same key) entries with a select or read or loop?
    thx,
    gordon

    hi
    declare one more table of like that
    as
    let the table u have is tab1
    now
    data: record type i.
    sort tab1 by field1 field2.
    loop at tab1.
    record  = sy-index +1.
    read table tab1 from index record where key field1 =  tab1-field1
    and
    field2 =  tab1-field2.
    if sy-subrc = 0
    write : 'This is duplicate record'.
    endif.
    endloop.
    Cheers
    Snehi

  • Why we need to restart server when we compile servlet (not for jsp)

    hi
    why we need to restart server/appln when we compile servlet .
    same thing is not true for jsp
    as jsp converts to servlets then also it need not require restart of server/appln.
    Danny

    Dear Friends
    I hope you guys are doing something with tomcat , So please help me.
    can anyone solve my problem.
    I am starting my tomcat using startup and the dos window just closes after opening . I don't know why?
    The errors generated are as:
    Using CATALINA_BASE: C:\TOMCAT 4_1_30\jakarta-tomcat-4.1.29
    Using CATALINA_HOME: C:\TOMCAT 4_1_30\jakarta-tomcat-4.1.29
    Using CATALINA_TMPDIR: C:\TOMCAT 4_1_30\jakarta-tomcat-4.1.29\temp
    Using JAVA_HOME: C:\jdk1.3.0_02
    Catalina.start: java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en_US
    java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en_US
         at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
         at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
         at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1548)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    Using CATALINA_BASE: C:\TOMCAT 4_1_30\jakarta-tomcat-4.1.29
    Using CATALINA_HOME: C:\TOMCAT 4_1_30\jakarta-tomcat-4.1.29
    Using CATALINA_TMPDIR: C:\TOMCAT 4_1_30\jakarta-tomcat-4.1.29\temp
    Using JAVA_HOME: C:\jdk1.3.0_02
    Catalina.start: java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en_US
    java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en_US
         at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
         at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
         at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1548)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    i need your help desperately.
    I hope you will respond soon.
    thanks
    vishal

  • Need information on how to create Idoc Inbound Interfaces for Business Sys

    Hi,
    I'm losing it.
    Can anyone point me to some documentation or an example of how to create inbound interfaces for Business Systems in PI 7.1.
    Here's the scenario
    I'm working on a B2B integration process which sends inbound idocs to an ECC 6.0 system.
    I've created the Business System communication component  but under the Inbound Interfaces it is blank.
    I want to have MBGMCR.MGBMCR03 as an inbound interface.
    But I forget how to get it there.
    For Business components you can just add the inbound interface.
    I've already defined the Business System in the SLD pointed it to the correct Tech System, imported the idoc definitions in the Enterprise Service Builder and set up IDX1, IDX2 to ensure the metadata exists in PI.
    But for Business systems the hep says that it's got to come from the SLD.
    Outbound/Inbound Interfaces
    For each business system, the interfaces that are installed on the business system are also entered in the SLD. These interfaces are displayed in this frame. You cannot add any other interfaces.
    I know I've done this before, but I can't remember how.
    Cheers,
    John

    Hi John ,
    Please have a look at the following links which might be of help to you
    PI 7.1 IDocs interfaces act as operations
    http://www.sdn.sap.com/irj/scn/weblogs;?blog=/pub/wlg/7933
    /people/peter.gutsche/blog/2008/10/27/what146s-new-in-sap-netweaver-pi-71
    There is a section in the following link on IDOC , have a look at the links in that section
    https://wiki.sdn.sap.com/wiki/display/XI/ImportantBlogsand+Notes
    Best Regards

  • Need document on how to create write back template for 11g

    Can anybody provide documentation on how to create write back template for OBIEE 11g?
    Thanks

    Can anybody provide documentation on how to create write back template for OBIEE 11g?Yes! Oracle does. How about you start by reading it? I will give a hint, it's on the System's Administration guide.

  • Need post to GL whach has been set up for Automatic posting.

    HI Guru's
    interest balances were uploaded in to different a/c and now user wants to post to the right a/c (interest a/c) but the GL master has been set up for automatic posting. this posting are done from treasury contract(loan).  is there anyway can we post a JV to this a/c?

    Hi Mythria
    I would advice you to not change the GL master account setting to post manually, as this would become an audit issue later,
    instead I would suggest to create a new GL account for interest (manual adjustment) and post JV to this new account.
    You may include this new account in your financial statement at the same place where you have the interest a/c to which you wanted to post
    Regards
    Sach!n

  • How to generate 2 TB database for testing purpose

    Hi All,
    I need to generate 2 TB of database. This is for test purpose, so please provide me with any information that could achieve this in simple steps.
    If you could provide script that will be the best. I have 10.2.0.4 database on HPUX 11.31 PA-RISC server.
    Regards,
    MS

    user13414195 wrote:
    I need to generate 2 TB of database. This is for test purpose, so please provide me with any information that could achieve this in simple steps. Scripts for what exactly? Single table? Multiple tables? Generate raw (meaningless) row data? Generate data for tables that include foreign key constraints and so on? Data for selecting via full table scans or index scans? Or is this simply to test row inserts? What about update and deletes?
    You need to be a lot more specific about what you mean with testing purposes.
    I have 10.2.0.4 database on HPUX 11.31 PA-RISC server.Note that premiere support for 10.2 has been terminated in July 2010 - whereas it only terminates in January 2015 for 11.2. So it makes a lot more sense to be on a newer version of Oracle.

Maybe you are looking for

  • IPhone 3G in a coma state though I was using iOS4 for a while.

    iPhone 3G in a coma state though I was using iOS4 for a while (until today that is). Now "restored" to iOS4.2. The problem still persists. When it's plugged into PC and charging, pressing Power / Home button always wakes iPhone from lock / sleep. Whe

  • Tolerance Groups for G/L Accounts - How to configure

    Hi all, I've got a few basic questions on this topic, hope you can help! 1. I have created an entry in the transaction "Define tolerance groups for G/L accounts". For this entry I have filled in the company code and tolerance values, but I haven't fi

  • Iphone 5 camera is not working soon after I downloaded ios7.  Camera is frozen and shows a blur picture.

    Hi Apple, Can you tell me if there's a reason for my camera not working on my iphone 5. Soon after downloading ios7 , the camera's front picture has frozen and shows blurred picture . The app itself is frozen also  , can't bring up photos from photo

  • Invoking OS process from webstart ...

    Hi, I managed to invoke a 'desktop process' from a webstart based app. I used the Runtime object as below ... ------------------ code snippet ---------------------------- Runtime runtime = Runtime.getRuntime(); String desktopProgram = "path/foo.exe";

  • Reducing CPU usage of Flash animation

    Hello! I have a simple Flash animation - fading in and out different images. I have done it with an Actionscript (changing alpha value). That worked ok only on new processors - on all others it eats 100% CPU. I then tried to do it with timeline (moti