Skip to main content

TYPES OF INTERNAL TABLE.

Types of Internal Tables:

1. Indexed internal tables.

2.Hashed internal tables.


INDEXED INTERNAL TABLES :

>> Indexed  internal tables are  two types 1. STANDARD Internal tables                                                                        2.SORTED       Internal tables.



STANDARD INTERNAL TABLES:

>>  It  accepts  duplicate records  ,because  here ,all fields  are  non-unique.

>> Pushing  data from workspace to internal table is always through  APPEND  keyword.

>>Searching  of  a record  is  Linear Search(line by line).

SYNTAX:

 Data <internal table>  like  standard table of <workarea>.

note:
        If  you do  not specify  standard  table in above  syntax,
   then  by default  it is standard table ,in real time senario  we use standard internal table.


SORTED INTERNAL TABLES:

>> It   may or may not  accept  the  duplicates  records.

>> in sorted  table  we  must  specify  atleast  one  field  as  unique/ non-unique.

>> Pushing  data  from  workrea  to internal table is always through INSERT  keyword.

>> Searching  of  a record  is  done  by  BINARY  SEARCH.

SYNTAX:

Data <internal table>  like  sorted  table of <work area>
with  unique /  non-unique  key <field name>.

eg:
     data it like sorted table  of   wa  with  unique key eid.

HASHED INTERNAL TABLES:

>> This  table  will not  accepts  duplicate  records.

>> here ,we  must  specify  at least  one  field  ,as  unique.

>> Pushing  data  from  workarea  to  internal table  is  always  through    COLLECT  keyword.

>> Searching  of  a  record  is  by  using  HASHED algorithm

SYNTAX:

Data <internal table >  like  hashed  table  of  <work area>
with  unique key  <field>.

we  can  specify  more than  one  unique  key  by  providing  space  between the  fields.

note:

In  the  real  time  we  always  use  standard internal tables, because  we  are  working with  the  data  of  database  table. IN the  database  there is  no  duplicate.

sometimes  we  use   ashed  internal tables.


message:
i  will discuss  in detail  in  further  post.

Comments

Popular posts from this blog

ABAP BASICS CONTINUEATION

message: daily just follow my post maximum i will cover upto 90% of abap.                   DATA TYPES IN ABAP Data type specifies what type of the variable it is. data types in abap are divided into two categories.                                    NUMERIC DATATYPE                                   CHARACTER DATATYPE         1. Integer  [ I ]                                             1. Char  [ C ]           2. Float       [ F ]                                         ...

STEPS TO LOG ON TO SAP

            STEPS   TO   UP (ON) THE  SERVER: >> Double  click  on   the  SAP  Management  console  on desktop.   >> Select   the   server   , right   click ,   all tasks,  start. >> Provide  the  password. >>Expand  the server [ECC6], double click on the  ABAP WP               Table  in   the  leftside  , contiuncely  click  on  Refresh  button       until  the  status  is  wait   then  minimize  the  server. >>  Check  until  the  status  is  wait  ,if  it is  in  run  status  you             cannot  login.  so  check  until  status  is  wait. ...

INTRODUCTION TO SAP ABAP

                                                        SAP SAP   stands   as Systems Applications  and  Products in data processing. manufacturing unit Purchasing : The    purchasing department purchases  raw materials from the shops . Warehouse: The raw materials which are received  by  the unit is stored in the ware house. Finance: The amount of the raw materials are paid to shops by the finance department. Production: The production department looks after the production from the raw materials which are in the warehouse. Sales and Distribution: This department looks after the sales. Shipping: Shipping department looks after delevering the products from ware houseto the customers. And again finance department collects the amount from the customers. Human resou...