abap2

Upload: raza887

Post on 14-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 ABAP2

    1/3

    internal tables: It are tables for holding data during runtime

    In ABAP, internal tables fulfill the function of arrays. Since they are dynamic data objects, they save

    the programmer the task of dynamic memory management in his or her programs.

    Internal table will usually be associated with a structure or work area.

    Internal table cannot be accessed outside the program environment.Accessing Internal Tables

    You access internal tables line by line. You must use a work area as an interface for

    transferring data to and from the table.Grant Taylor

    Creating Internal Tables

    There are two ways by which you can create internal tables1. First create an internal table data type using the 'TYPES' statement and then create

    a data object referring that data type.

    2. Create an internal table data object directly with the 'DATA' statement.

    TYPES: BEGIN OF LINE,

    COLUMN1 TYPE I,

    COLUMN2 TYPE I,

    COLUMN3 TYPE I,

    END OF LINE.

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and aunique key of the component COLUMN1.

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and aunique key of the component COLUMN1.

    There are mainly four types of loops in ABAP programs, they areLoops with DO statement (Mainly for unconditional loops

    There are mainly four types of loops in ABAP programs, they areLoops with DO statement (Mainly for unconditional loops

    There are mainly four types of loops in ABAP programs, they are

    http://www.google.com.pk/search?tbo=p&tbm=bks&q=inauthor:%22Grant+Taylor%22http://www.google.com.pk/search?tbo=p&tbm=bks&q=inauthor:%22Grant+Taylor%22http://www.google.com.pk/search?tbo=p&tbm=bks&q=inauthor:%22Grant+Taylor%22
  • 7/30/2019 ABAP2

    2/3

    Loops with DO statement (Mainly for unconditional loops

    Internal table cannot be accessed outside the program environment.

    Dan KennedyDan KennedyGrant Taylor

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    http://www.google.com.pk/search?tbo=p&tbm=bks&q=inauthor:%22Grant+Taylor%22http://www.google.com.pk/search?tbo=p&tbm=bks&q=inauthor:%22Grant+Taylor%22http://www.google.com.pk/search?tbo=p&tbm=bks&q=inauthor:%22Grant+Taylor%22
  • 7/30/2019 ABAP2

    3/3

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.

    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a

    Learning English - Words, Grammar and Dialogues

    Learning English - Words, Grammar and DialoguesLearning English - Words, Grammar and DialoguesLearning English - Words, Grammar and Dialogues