Skip to main content

ATTRIBUTES OF INTERNAL TABLES

                       Attributes  of  Internal Tables:



KIND:

>> Kind  is the  keyword  which  returns  the  TYPE  of  the  internal  table.

>> If  the  internal table    is  Standard  then  it  returns  T.

>>If  the  internal table   is   Sorted  then  it  returns  S  and  if   Hashed   then it returns    H.


LINES:

>> Lines  is the  keyword   which returns  the  numbers  of   RECORDS  are  avaiable   in  the  internal tables.


SYNTAX:

 Describe  Table  <internal table >  kind  <variable 1>   lines <variable 2>.


>> By  default  a  variable  is  character  data type   and  its  length  is  1.

sample program:


DATA : V1,
              V2  TYPE  I.

DATA :  Begin  of  WA,
               bukrs  type  t001-bukrs,
              butxt   type   t001-butxt,
               ort01  type   t001-ort01,
             end  of  WA.

DATA    IT    like  hashed  table  of  WA  with  unique  key bukrs.

SELECT  bukrs    butxt  ort01   from  t001  INTO   table   IT.

DESCRIBE   table   IT  KIND  V1  LINES  V2.

WRITE :  V1, V2.

>> save ,  check, activate  andd  test  the  program  as  show  in  previous  post. 

we  can  write  program  in  upper  case  or  lower  case.
  
message:

in  next  post  i  will discuss  operations  on  internal tables


Comments

Post a Comment

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...