SlideShare a Scribd company logo
1
www.aspireit.net Call us 7058198728 / 8856033664
IntroductionIntroduction
ToTo
Internal TablesInternal Tables
3
Report - Internal TablesReport - Internal Tables
 Internal tables fulfill the function of arrays.
 Stores data extracted from database tables.
 Internal tables can be nested.
 It consists of Body and Header line.
 Body – Holds the rows of the internal table.
 Header line – Has same structure as row of the body
holding a single row only.
 Work Area :
 To change or output the contents of an internal table, you need a
work area.
 When processing an internal table, the system always fills the work
area with the contents of the current table line.
 You can then process the work area.
 Header line is the default work area for internal tables with header
line
www.aspireit.net Call us 7058198728 / 8856033664
4
Report - Internal TablesReport - Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
Report - Declaring Internal TablesReport - Declaring Internal Tables
5
TYPE typ OCCURS n
Defines an internal table without header line.
Example
TYPES: BEGIN OF LINE_TYPE,
NAME(20) TYPE C,
AGE TYPE I,
END OF LINE_TYPE.
DATA: PERSONS TYPE LINE_TYPE OCCURS 20,
PERSONS_WA TYPE LINE_TYPE.
PERSONS-NAME = 'Michael'.
PERSONS-AGE = 25.
APPEND PERSONS_WA TO PERSONS.
www.aspireit.net Call us 7058198728 / 8856033664
6
TYPE typ OCCURS n WITH HEADER LINE
Defines an internal table with header line. Such a table consists of any number of
table lines with the type typ and a header line.
Example
TYPES: BEGIN OF LINE_TYPE,
NAME(20) TYPE C,
AGE TYPE I,
END OF LINE_TYPE.
DATA: PERSONS TYPE LINE_TYPE OCCURS 20 WITH HEADER LINE.
PERSONS-NAME = 'Michael'.
PERSONS-AGE = 25.
APPEND PERSONS.
Report - Declaring Internal TablesReport - Declaring Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
7
 Referencing data dictionary object
 With header line
 DATA FLIGHT_TAB LIKE SFLIGHT OCCURS 10 WITH HEADER LINE.
 Without header line
 DATA FLIGHT_TAB LIKE SFLIGHT OCCURS 10.
 DATA FLIGHT_TAB LIKE SFLIGHT.
 Including structures
 You can Include another structure into Internal table.
DATA : BEGIN OF T_TAB1 OCCURS 10,
FIELDS1 LIKE BKPF-BELNR,
FIELDS2 LIKE BSEG-BUZEI,
END OF T_TAB1.
DATA : BEGIN OF T_TAB2 OCCURS 10.
INCLUDE STRUCTURE T_TAB1.
DATA : END OF T_TAB2.
In this example, T_TAB2 will also contain the fields FIELD1 & FIELD2.
Report - Declaring Internal TablesReport - Declaring Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
8
APPEND Statement
APPEND [wa TO | INITIAL LINE TO] itab.
 Appends a new line to the end of the internal table itab. If you specify wa TO,
the new line is taken from the contents of the explicitly specified work area
wa.
 If you use INITIAL LINE TO, a line filled with the correct value for the type is
added. If the specification before itab is omitted, the new line is taken from
the internal table itab.
 After the APPEND, the system field SY-TABIX contains the index of the
newly added table entry.
Report - Filling Internal TablesReport - Filling Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
9
INSERT Statement
INSERT [wa INTO | INITIAL LINE INTO] itab [INDEX idx].
 Inserts a new line into an internal table. If you specify wa INTO , the new line
is taken from the contents of the explicitly specified work area wa.
 When using INITIAL LINE INTO , a line containing the appropriate initial
value for its type is inserted into the table. If you omit the specification
before itab , the new line is taken from the header line of the internal table
itab.
 INDEX idx specifies the table index before which the line is inserted into the
table itab .
Report - Filling Internal TablesReport - Filling Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
10
Assigning internal tablesAssigning internal tables
 Internal tables without header line
 MOVE ITAB1 TO ITAB2.
 ITAB2 = ITAB1
 Internal tables with header line
 MOVE ITAB1[ ] TO ITAB2[ ].
 ITAB2[ ] = ITAB1[ ].
www.aspireit.net Call us 7058198728 / 8856033664
11
Extracting data from database tableExtracting data from database table
SELECT c1 c2 … cn|* FROM <dbtable>
INTO TABLE <itab>
WHERE <condition>.
 dbtable – Name of the database table
 c1,c2,…cn – columns in the database table
 itab – Internal table that holds the data
 condition – WHERE clause condition
www.aspireit.net Call us 7058198728 / 8856033664
12
LOOP AT Statement
LOOP AT itab.
LOOP AT itab INTO wa.
 Processes an internal table (DATA) in a loop which begins with LOOP and
ends with ENDLOOP. Each of the internal table entries is sent to the output
area in turn.
 When LOOP AT itab. is used, the header line of the internal table itab is used
as output area.
 In the case of LOOP AT itab INTO wa , there is an explicitly specified work
area wa.
 If the internal table is empty, all the statements between LOOP and
ENDLOOP are ignored.
 In each loop pass, SY-TABIX contains the index of the current table entry.
After leaving a LOOP, SY-TABIX has the same value as it had before.
Report - Retrieving Internal TablesReport - Retrieving Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
13
READ Statement
READ TABLE itab INDEX idx [INTO WA].
READ TABLE itab WITH KEY <k1> = <f1>
<k2> = <f2>…
<kn> = <fn> [INTO wa]
[BINARY SEARCH].
 Reads an internal table entry. An entry can be chosen using a key or its index
idx.
 With "READ TABLE itab.", the header line of the internal table itab is used as
the output area; with "READ TABLE itab INTO wa." the explicitly specified
work area wa is used for this purpose.
 For BINARY SEARCH, the internal table itab should be sorted by the keys
k1,k2…kn.
Report - Retrieving Internal TablesReport - Retrieving Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
14
MODIFY Statement
MODIFY itab [FROM wa] [INDEX idx].
 Changes an entry in the internal table itab .
 If you specify FROM wa , the line is replaced by the explicitly specified
work area wa . If the FROM specification is omitted, the line is replaced
by the header line from itab .
 With INDEX idx, you can specify the table index of the line to be
changed. The index specification can be omitted in a LOOP on an
internal table.
 The INDEX specification can also appear before the FROM
specification.
Note
The counting of table entries begins with 1.
Report - Modifying Internal TablesReport - Modifying Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
15
DELETE Statement
DELETE itab.
 The current entry of the internal table itab is deleted in a LOOP loop.
 Return code value is set to 0.
DELETE itab INDEX idx.
 Deletes the idx entry from the internal table itab .
 The return code value is set as follows:
 SY-SUBRC = 0 The entry was deleted.
 SY_SUBRC = 4 The entry does not exist.
Report - Deleting Internal TablesReport - Deleting Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
16
DELETE Statement
DELETE itab FROM idx1 TO idx2.
 Deletes the line area from index idx1 to idx2 from internal table itab. At least
one of the two parameters FROM idx1 or TO idx2 should be specified.
 If parameter FROM is missing, the area from the start of the table to line
idx2 is deleted.
 If parameter TO is missing, the area from line idx1 to the end of the table is
deleted.
 Start index idx1 must be greater than 0. The return code value is set as
follows:
 SY-SUBRC = 0 At least one entry was deleted.
 SY_SUBRC = 4 None of the entries were deleted.
Report - Deleting Internal TablesReport - Deleting Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
17
SORT Statement
SORT itab DESCENDING.
SORT itab ASCENDING.
SORT itab BY f1 f2 ... fi.
 Sorts the entries of the internal table itab in ascending order. The default
key is used as the sort key for internal tables.
 Sorts itab by the sub-fields f1, f2 , ..., fi which form the sort key. These fields
can be any type (even number fields or tables).
 Unless you specify otherwise, the sort is in ascending order. You can also
use additions 1 and 2 before BY if you want all sub-fields to apply.
 To change the sort sequence for each individual field, specify
DESCENDING or ASCENDING after each of the sub-fields f1 , f2 , ..., fi .
Report - Sorting Internal TablesReport - Sorting Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
18
CLEAR/REFRESHCLEAR/REFRESH
 CLEAR ITAB.
 If ITAB is an internal table without a header line, the entire table is
deleted together with all its entries.
 If, however, ITAB is an internal table with a header line, only the
subfields in the table header entry are reset to their initial values.
 To delete the entire internal table together with all its entries, you
can use CLEAR ITAB[ ] or REFRESH ITAB.
 NOTE:
 CLEAR f.
 Clears the field contents
www.aspireit.net Call us 7058198728 / 8856033664
19
DESCRIBE Statement
DESCRIBE TABLE itab.
 Returns the attributes of the internal table itab. You must use at least one of
the additions listed below.
Additions :
1. ... LINES lin
Places the number of filled lines of the table t in the field lin.
2. ... OCCURS n
Transfers the size of the OCCURS parameter from the table definition
to the variable n.
Report - Retrieving Internal Table attributesReport - Retrieving Internal Table attributes
www.aspireit.net Call us 7058198728 / 8856033664
20
 All these structures begin with AT and end with ENDAT. The sequence
of statements which lies between them is then executed if a control
break occurs.
 AT NEW f. / AT END OF f.
 f is a sub-field of an internal table processed with LOOP.
 The sequence of statements which follow it is executed if the sub-
field f or a sub-field in the current LOOP line defined (on the left)
before f has a different value than in the preceding (AT NEW) or
subsequent (AT END OF) table line.
 AT FIRST. / AT LAST.
 Executes the appropriate sequence of statements once during the
first (AT FIRST) or last (AT LAST) loop pass.
Report - Control Break With Internal TablesReport - Control Break With Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
21
AT FIRST
Statements are executed before any records are processed while
looping at Internal table.
Example :
LOOP AT itab.
AT FIRST.
WRITE : SY-ULINE.
ENDAT.
ENDLOOP.
Report - Control Break With Internal TablesReport - Control Break With Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
22
AT LAST
Statements are executed after all records are processed while looping
at Internal table.
Example :
LOOP AT itab.
AT LAST.
WRITE : SY-ULINE.
ENDAT.
ENDLOOP.
Report - Control Break With Internal TablesReport - Control Break With Internal Tables
www.aspireit.net Call us 7058198728 / 8856033664
23
AT NEW <Field Name>
Statements are executed at the beginning of a group of records
containing the same value for <Field Name>..
Example :
LOOP AT itab.
AT NEW I_LIFNR.
WRITE : SY-ULINE
ENDAT.
ENDLOOP.
Report - Control Break With Internal TablesReport - Control Break With Internal Tables
24
25
AT END OF <Field Name>
Statements are executed at the end of a group of records containing
the same value for <Field Name>.
Example :
LOOP AT itab.
AT END OF I_LIFNR.
WRITE : SY-ULINE.
ENDAT.
ENDLOOP.
Note :
AT NEW and AT END OF make sense only for a sorted
table.
Report - Control Break With Internal TablesReport - Control Break With Internal Tables
26
SUM Statement
SUM.
 SUM calculates the control totals of all fields of type I , F and P and places them
in the LOOP output area (header line of the internal table or an explicitly specified
work area).
 You can use the SUM statement both at the end and the beginning of a control
group
 Example:
LOOP AT itab.
AT LAST.
SUM.
WRITE : itab-fld1.
ENDAT.
ENDLOOP.
Prints the sum of values of fld1 in all rows of itab.
Fld1 should be a numeric type field
Report - SummationReport - Summation
27
COLLECT Statement
COLLECT [wa INTO] itab.
 COLLECT is used to summate entries in an internal table.
 COLLECT = APPEND, if no entries with the same key exists
 = Adds the numeric values to their corresponding field
values, if an entry with same key exists
 Used to create summarized tables.
Report - SummationReport - Summation
28
COLLECT Statement Example
Timesheets per employee per day
INT_EMPTMSHT – EMPNO(char), EDATE(date), HOURS(integer)
Total time per employee for the whole period under consideration
INT_TMSHTSUM – EMPNO(char),HOURS(integer)
INT_EMPTMSHT
1000 20040102 5
1000 20040103 7
1001 20040103 8
1001 20040106 3
Report - SummationReport - Summation
INT_TMSHTSUM
1000 12
1001 8
29
COLLECT Statement Example
LOOP AT INT_EMPTMSHT.
MOVE-CORRESPONDING INT_EMPTMSHT TO INT_TMSHTSUM.
COLLECT INT_TMSHTSUM.
ENDLOOP.
Report - SummationReport - Summation
INT_TMSHTSUM
1000 5
INT_TMSHTSUM
1000 12
INT_TMSHTSUM
1000 12
1001 8
INT_TMSHTSUM
1000 12
1001 11
INT_EMPTMSHT
1000 20040102 5
1000 20040103 7
1001 20040103 8
1001 20040106 3
30
Thank YouThank You For SAP ABAP Online / Classroom Training
 Please visit our website www.aspireit.net
 call us on 7058198728 / 8856033664

More Related Content

What's hot

MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
Olav Sandstå
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
vkyecc1
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
Olav Sandstå
 
MySQL 8.0.18 latest updates: Hash join and EXPLAIN ANALYZE
MySQL 8.0.18 latest updates: Hash join and EXPLAIN ANALYZEMySQL 8.0.18 latest updates: Hash join and EXPLAIN ANALYZE
MySQL 8.0.18 latest updates: Hash join and EXPLAIN ANALYZE
Norvald Ryeng
 
Ds important questions
Ds important questionsDs important questions
Ds important questions
LavanyaJ28
 
2 marks- DS using python
2 marks- DS using python2 marks- DS using python
2 marks- DS using python
LavanyaJ28
 
Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked list
LavanyaJ28
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
MYXPLAIN
 
Advanced functions in PL SQL
Advanced functions in PL SQLAdvanced functions in PL SQL
Advanced functions in PL SQL
Hosein Zare
 
Nested subqueries and subquery chaining in openCypher
Nested subqueries and subquery chaining in openCypherNested subqueries and subquery chaining in openCypher
Nested subqueries and subquery chaining in openCypher
openCypher
 
Optimizer overviewoow2014
Optimizer overviewoow2014Optimizer overviewoow2014
Optimizer overviewoow2014
Mysql User Camp
 
MYSQL join
MYSQL joinMYSQL join
MYSQL join
Ahmed Farag
 
The Stack And Recursion
The Stack And RecursionThe Stack And Recursion
The Stack And Recursion
Ashim Lamichhane
 
Ground Breakers Romania: Explain the explain_plan
Ground Breakers Romania: Explain the explain_planGround Breakers Romania: Explain the explain_plan
Ground Breakers Romania: Explain the explain_plan
Maria Colgan
 
Sap abap
Sap abapSap abap
Sap abap
Jugul Crasta
 
ADS_Lec2_Linked_Allocation
ADS_Lec2_Linked_AllocationADS_Lec2_Linked_Allocation
ADS_Lec2_Linked_Allocation
Hemanth Kumar
 
Exploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic FunctionsExploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
 
83 matrix notation
83 matrix notation83 matrix notation
83 matrix notation
math126
 
Application sql issues_and_tuning
Application sql issues_and_tuningApplication sql issues_and_tuning
Application sql issues_and_tuning
Anil Pandey
 

What's hot (19)

MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
 
MySQL 8.0.18 latest updates: Hash join and EXPLAIN ANALYZE
MySQL 8.0.18 latest updates: Hash join and EXPLAIN ANALYZEMySQL 8.0.18 latest updates: Hash join and EXPLAIN ANALYZE
MySQL 8.0.18 latest updates: Hash join and EXPLAIN ANALYZE
 
Ds important questions
Ds important questionsDs important questions
Ds important questions
 
2 marks- DS using python
2 marks- DS using python2 marks- DS using python
2 marks- DS using python
 
Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked list
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
 
Advanced functions in PL SQL
Advanced functions in PL SQLAdvanced functions in PL SQL
Advanced functions in PL SQL
 
Nested subqueries and subquery chaining in openCypher
Nested subqueries and subquery chaining in openCypherNested subqueries and subquery chaining in openCypher
Nested subqueries and subquery chaining in openCypher
 
Optimizer overviewoow2014
Optimizer overviewoow2014Optimizer overviewoow2014
Optimizer overviewoow2014
 
MYSQL join
MYSQL joinMYSQL join
MYSQL join
 
The Stack And Recursion
The Stack And RecursionThe Stack And Recursion
The Stack And Recursion
 
Ground Breakers Romania: Explain the explain_plan
Ground Breakers Romania: Explain the explain_planGround Breakers Romania: Explain the explain_plan
Ground Breakers Romania: Explain the explain_plan
 
Sap abap
Sap abapSap abap
Sap abap
 
ADS_Lec2_Linked_Allocation
ADS_Lec2_Linked_AllocationADS_Lec2_Linked_Allocation
ADS_Lec2_Linked_Allocation
 
Exploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic FunctionsExploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic Functions
 
83 matrix notation
83 matrix notation83 matrix notation
83 matrix notation
 
Application sql issues_and_tuning
Application sql issues_and_tuningApplication sql issues_and_tuning
Application sql issues_and_tuning
 

Similar to Aspire it sap abap training

Lecture06 abap on line
Lecture06 abap on lineLecture06 abap on line
Lecture06 abap on line
Milind Patil
 
ALTER TABLE Improvements in MariaDB Server
ALTER TABLE Improvements in MariaDB ServerALTER TABLE Improvements in MariaDB Server
ALTER TABLE Improvements in MariaDB Server
MariaDB plc
 
Discover the power of Recursive SQL and query transformation with Informix da...
Discover the power of Recursive SQL and query transformation with Informix da...Discover the power of Recursive SQL and query transformation with Informix da...
Discover the power of Recursive SQL and query transformation with Informix da...
Ajay Gupte
 
IBM Informix Database SQL Set operators and ANSI Hash Join
IBM Informix Database SQL Set operators and ANSI Hash JoinIBM Informix Database SQL Set operators and ANSI Hash Join
IBM Informix Database SQL Set operators and ANSI Hash Join
Ajay Gupte
 
258lec11
258lec11258lec11
258lec11
wingsrai
 
Understanding index
Understanding indexUnderstanding index
Understanding index
Chien Chung Shen
 
Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007
paulguerin
 
97102 abap internal_tables
97102 abap internal_tables97102 abap internal_tables
97102 abap internal_tables
Anasshare
 
Stacks and Queue - Data Structures
Stacks and Queue - Data StructuresStacks and Queue - Data Structures
Stacks and Queue - Data Structures
Dr. Jasmine Beulah Gnanadurai
 
Sap abap-data structures and internal tables
Sap abap-data structures and internal tablesSap abap-data structures and internal tables
Sap abap-data structures and internal tables
Mustafa Nadim
 
Joins
JoinsJoins
Abap internal tables
Abap internal tablesAbap internal tables
Abap internal tables
NTF (India) Pvt. Ltd.
 
Les10[1]Creating and Managing Tables
Les10[1]Creating and Managing TablesLes10[1]Creating and Managing Tables
Les10[1]Creating and Managing Tables
siavosh kaviani
 
Internal tables in sap
Internal tables in sapInternal tables in sap
Internal tables in sap
Dharma Raju
 
SQL WORKSHOP::Lecture 9
SQL WORKSHOP::Lecture 9SQL WORKSHOP::Lecture 9
SQL WORKSHOP::Lecture 9
Umair Amjad
 
Sql Queries
Sql QueriesSql Queries
Sql Queries
webicon
 
Integrity constraint fundamentals of dbms.pdf
Integrity constraint fundamentals of dbms.pdfIntegrity constraint fundamentals of dbms.pdf
Integrity constraint fundamentals of dbms.pdf
Saikrishna492522
 
Les09
Les09Les09
Etl2
Etl2Etl2
V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx
V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptxV.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx
V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx
EmmanuelAzuela3
 

Similar to Aspire it sap abap training (20)

Lecture06 abap on line
Lecture06 abap on lineLecture06 abap on line
Lecture06 abap on line
 
ALTER TABLE Improvements in MariaDB Server
ALTER TABLE Improvements in MariaDB ServerALTER TABLE Improvements in MariaDB Server
ALTER TABLE Improvements in MariaDB Server
 
Discover the power of Recursive SQL and query transformation with Informix da...
Discover the power of Recursive SQL and query transformation with Informix da...Discover the power of Recursive SQL and query transformation with Informix da...
Discover the power of Recursive SQL and query transformation with Informix da...
 
IBM Informix Database SQL Set operators and ANSI Hash Join
IBM Informix Database SQL Set operators and ANSI Hash JoinIBM Informix Database SQL Set operators and ANSI Hash Join
IBM Informix Database SQL Set operators and ANSI Hash Join
 
258lec11
258lec11258lec11
258lec11
 
Understanding index
Understanding indexUnderstanding index
Understanding index
 
Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007
 
97102 abap internal_tables
97102 abap internal_tables97102 abap internal_tables
97102 abap internal_tables
 
Stacks and Queue - Data Structures
Stacks and Queue - Data StructuresStacks and Queue - Data Structures
Stacks and Queue - Data Structures
 
Sap abap-data structures and internal tables
Sap abap-data structures and internal tablesSap abap-data structures and internal tables
Sap abap-data structures and internal tables
 
Joins
JoinsJoins
Joins
 
Abap internal tables
Abap internal tablesAbap internal tables
Abap internal tables
 
Les10[1]Creating and Managing Tables
Les10[1]Creating and Managing TablesLes10[1]Creating and Managing Tables
Les10[1]Creating and Managing Tables
 
Internal tables in sap
Internal tables in sapInternal tables in sap
Internal tables in sap
 
SQL WORKSHOP::Lecture 9
SQL WORKSHOP::Lecture 9SQL WORKSHOP::Lecture 9
SQL WORKSHOP::Lecture 9
 
Sql Queries
Sql QueriesSql Queries
Sql Queries
 
Integrity constraint fundamentals of dbms.pdf
Integrity constraint fundamentals of dbms.pdfIntegrity constraint fundamentals of dbms.pdf
Integrity constraint fundamentals of dbms.pdf
 
Les09
Les09Les09
Les09
 
Etl2
Etl2Etl2
Etl2
 
V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx
V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptxV.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx
V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx
 

More from Aspire Techsoft Academy

.NET Course in Pune with 100% Placement Assistance
.NET Course in Pune with 100% Placement Assistance.NET Course in Pune with 100% Placement Assistance
.NET Course in Pune with 100% Placement Assistance
Aspire Techsoft Academy
 
Best Java Classes in Pune with 100% Placement Assistance
Best Java Classes in Pune with 100% Placement AssistanceBest Java Classes in Pune with 100% Placement Assistance
Best Java Classes in Pune with 100% Placement Assistance
Aspire Techsoft Academy
 
Top 10 Essential Technologies For Every Full Stack .NET Developer!
Top 10 Essential Technologies For Every Full Stack .NET Developer!Top 10 Essential Technologies For Every Full Stack .NET Developer!
Top 10 Essential Technologies For Every Full Stack .NET Developer!
Aspire Techsoft Academy
 
How do I Become an SAP SuccessFactors Consultant
How do I Become an SAP SuccessFactors ConsultantHow do I Become an SAP SuccessFactors Consultant
How do I Become an SAP SuccessFactors Consultant
Aspire Techsoft Academy
 
SAP HR Training institute in Mumbai with Placement
SAP HR Training institute in Mumbai with PlacementSAP HR Training institute in Mumbai with Placement
SAP HR Training institute in Mumbai with Placement
Aspire Techsoft Academy
 
salesforce course in pune - Aspire Techsoft Academy
salesforce course in pune - Aspire Techsoft Academysalesforce course in pune - Aspire Techsoft Academy
salesforce course in pune - Aspire Techsoft Academy
Aspire Techsoft Academy
 
SAP S4 HANA IMPLEMENTATION GUIDE - ASPIRE TECHSOFT ACADEMY
SAP S4 HANA IMPLEMENTATION GUIDE - ASPIRE TECHSOFT ACADEMYSAP S4 HANA IMPLEMENTATION GUIDE - ASPIRE TECHSOFT ACADEMY
SAP S4 HANA IMPLEMENTATION GUIDE - ASPIRE TECHSOFT ACADEMY
Aspire Techsoft Academy
 
Exploring the benefits of SAP S4 HANA.pptx
Exploring the benefits of SAP S4 HANA.pptxExploring the benefits of SAP S4 HANA.pptx
Exploring the benefits of SAP S4 HANA.pptx
Aspire Techsoft Academy
 
SAS Finance Data Analyst Course in Ahmedabad
SAS Finance Data Analyst Course in AhmedabadSAS Finance Data Analyst Course in Ahmedabad
SAS Finance Data Analyst Course in Ahmedabad
Aspire Techsoft Academy
 
SAS Clinical Trials Programmer Certification: Why SAS is the best choice for ...
SAS Clinical Trials Programmer Certification: Why SAS is the best choice for ...SAS Clinical Trials Programmer Certification: Why SAS is the best choice for ...
SAS Clinical Trials Programmer Certification: Why SAS is the best choice for ...
Aspire Techsoft Academy
 
Strategies to Prepare SAS Certification Exam - Aspire Techsoft.pptx
Strategies to Prepare SAS Certification Exam - Aspire Techsoft.pptxStrategies to Prepare SAS Certification Exam - Aspire Techsoft.pptx
Strategies to Prepare SAS Certification Exam - Aspire Techsoft.pptx
Aspire Techsoft Academy
 
How to Become an SAP ABAP Developer? Career Scope, Salary, Skills, Future Tre...
How to Become an SAP ABAP Developer? Career Scope, Salary, Skills, Future Tre...How to Become an SAP ABAP Developer? Career Scope, Salary, Skills, Future Tre...
How to Become an SAP ABAP Developer? Career Scope, Salary, Skills, Future Tre...
Aspire Techsoft Academy
 
How do I Start a Career in SAP Success Factors.pptx
How do I Start a Career in SAP Success Factors.pptxHow do I Start a Career in SAP Success Factors.pptx
How do I Start a Career in SAP Success Factors.pptx
Aspire Techsoft Academy
 
SAP MM Course in Bangalore with Placement – Aspire techsoft
SAP MM Course in Bangalore with Placement – Aspire techsoftSAP MM Course in Bangalore with Placement – Aspire techsoft
SAP MM Course in Bangalore with Placement – Aspire techsoft
Aspire Techsoft Academy
 
How SAP ERP helps manufacturing industries?
How SAP ERP helps manufacturing industries?How SAP ERP helps manufacturing industries?
How SAP ERP helps manufacturing industries?
Aspire Techsoft Academy
 
SAS for Banking and Financial Analytics: Which certification is best for Fina...
SAS for Banking and Financial Analytics: Which certification is best for Fina...SAS for Banking and Financial Analytics: Which certification is best for Fina...
SAS for Banking and Financial Analytics: Which certification is best for Fina...
Aspire Techsoft Academy
 
SAP HCM Training in Bangalore – Aspire Techsoft
SAP HCM Training in Bangalore – Aspire TechsoftSAP HCM Training in Bangalore – Aspire Techsoft
SAP HCM Training in Bangalore – Aspire Techsoft
Aspire Techsoft Academy
 
SAS Base Programming Certification course in Pune - Aspire Techsoft
SAS Base Programming Certification course in Pune - Aspire TechsoftSAS Base Programming Certification course in Pune - Aspire Techsoft
SAS Base Programming Certification course in Pune - Aspire Techsoft
Aspire Techsoft Academy
 
What is Data analytics? How is data analytics a better career option?
What is Data analytics? How is data analytics a better career option?What is Data analytics? How is data analytics a better career option?
What is Data analytics? How is data analytics a better career option?
Aspire Techsoft Academy
 
SAP Training Institute in Pune with placement – Aspire Techsoft
SAP Training Institute in Pune with placement – Aspire TechsoftSAP Training Institute in Pune with placement – Aspire Techsoft
SAP Training Institute in Pune with placement – Aspire Techsoft
Aspire Techsoft Academy
 

More from Aspire Techsoft Academy (20)

.NET Course in Pune with 100% Placement Assistance
.NET Course in Pune with 100% Placement Assistance.NET Course in Pune with 100% Placement Assistance
.NET Course in Pune with 100% Placement Assistance
 
Best Java Classes in Pune with 100% Placement Assistance
Best Java Classes in Pune with 100% Placement AssistanceBest Java Classes in Pune with 100% Placement Assistance
Best Java Classes in Pune with 100% Placement Assistance
 
Top 10 Essential Technologies For Every Full Stack .NET Developer!
Top 10 Essential Technologies For Every Full Stack .NET Developer!Top 10 Essential Technologies For Every Full Stack .NET Developer!
Top 10 Essential Technologies For Every Full Stack .NET Developer!
 
How do I Become an SAP SuccessFactors Consultant
How do I Become an SAP SuccessFactors ConsultantHow do I Become an SAP SuccessFactors Consultant
How do I Become an SAP SuccessFactors Consultant
 
SAP HR Training institute in Mumbai with Placement
SAP HR Training institute in Mumbai with PlacementSAP HR Training institute in Mumbai with Placement
SAP HR Training institute in Mumbai with Placement
 
salesforce course in pune - Aspire Techsoft Academy
salesforce course in pune - Aspire Techsoft Academysalesforce course in pune - Aspire Techsoft Academy
salesforce course in pune - Aspire Techsoft Academy
 
SAP S4 HANA IMPLEMENTATION GUIDE - ASPIRE TECHSOFT ACADEMY
SAP S4 HANA IMPLEMENTATION GUIDE - ASPIRE TECHSOFT ACADEMYSAP S4 HANA IMPLEMENTATION GUIDE - ASPIRE TECHSOFT ACADEMY
SAP S4 HANA IMPLEMENTATION GUIDE - ASPIRE TECHSOFT ACADEMY
 
Exploring the benefits of SAP S4 HANA.pptx
Exploring the benefits of SAP S4 HANA.pptxExploring the benefits of SAP S4 HANA.pptx
Exploring the benefits of SAP S4 HANA.pptx
 
SAS Finance Data Analyst Course in Ahmedabad
SAS Finance Data Analyst Course in AhmedabadSAS Finance Data Analyst Course in Ahmedabad
SAS Finance Data Analyst Course in Ahmedabad
 
SAS Clinical Trials Programmer Certification: Why SAS is the best choice for ...
SAS Clinical Trials Programmer Certification: Why SAS is the best choice for ...SAS Clinical Trials Programmer Certification: Why SAS is the best choice for ...
SAS Clinical Trials Programmer Certification: Why SAS is the best choice for ...
 
Strategies to Prepare SAS Certification Exam - Aspire Techsoft.pptx
Strategies to Prepare SAS Certification Exam - Aspire Techsoft.pptxStrategies to Prepare SAS Certification Exam - Aspire Techsoft.pptx
Strategies to Prepare SAS Certification Exam - Aspire Techsoft.pptx
 
How to Become an SAP ABAP Developer? Career Scope, Salary, Skills, Future Tre...
How to Become an SAP ABAP Developer? Career Scope, Salary, Skills, Future Tre...How to Become an SAP ABAP Developer? Career Scope, Salary, Skills, Future Tre...
How to Become an SAP ABAP Developer? Career Scope, Salary, Skills, Future Tre...
 
How do I Start a Career in SAP Success Factors.pptx
How do I Start a Career in SAP Success Factors.pptxHow do I Start a Career in SAP Success Factors.pptx
How do I Start a Career in SAP Success Factors.pptx
 
SAP MM Course in Bangalore with Placement – Aspire techsoft
SAP MM Course in Bangalore with Placement – Aspire techsoftSAP MM Course in Bangalore with Placement – Aspire techsoft
SAP MM Course in Bangalore with Placement – Aspire techsoft
 
How SAP ERP helps manufacturing industries?
How SAP ERP helps manufacturing industries?How SAP ERP helps manufacturing industries?
How SAP ERP helps manufacturing industries?
 
SAS for Banking and Financial Analytics: Which certification is best for Fina...
SAS for Banking and Financial Analytics: Which certification is best for Fina...SAS for Banking and Financial Analytics: Which certification is best for Fina...
SAS for Banking and Financial Analytics: Which certification is best for Fina...
 
SAP HCM Training in Bangalore – Aspire Techsoft
SAP HCM Training in Bangalore – Aspire TechsoftSAP HCM Training in Bangalore – Aspire Techsoft
SAP HCM Training in Bangalore – Aspire Techsoft
 
SAS Base Programming Certification course in Pune - Aspire Techsoft
SAS Base Programming Certification course in Pune - Aspire TechsoftSAS Base Programming Certification course in Pune - Aspire Techsoft
SAS Base Programming Certification course in Pune - Aspire Techsoft
 
What is Data analytics? How is data analytics a better career option?
What is Data analytics? How is data analytics a better career option?What is Data analytics? How is data analytics a better career option?
What is Data analytics? How is data analytics a better career option?
 
SAP Training Institute in Pune with placement – Aspire Techsoft
SAP Training Institute in Pune with placement – Aspire TechsoftSAP Training Institute in Pune with placement – Aspire Techsoft
SAP Training Institute in Pune with placement – Aspire Techsoft
 

Recently uploaded

Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 

Recently uploaded (20)

Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 

Aspire it sap abap training

  • 1. 1
  • 2. www.aspireit.net Call us 7058198728 / 8856033664 IntroductionIntroduction ToTo Internal TablesInternal Tables
  • 3. 3 Report - Internal TablesReport - Internal Tables  Internal tables fulfill the function of arrays.  Stores data extracted from database tables.  Internal tables can be nested.  It consists of Body and Header line.  Body – Holds the rows of the internal table.  Header line – Has same structure as row of the body holding a single row only.  Work Area :  To change or output the contents of an internal table, you need a work area.  When processing an internal table, the system always fills the work area with the contents of the current table line.  You can then process the work area.  Header line is the default work area for internal tables with header line www.aspireit.net Call us 7058198728 / 8856033664
  • 4. 4 Report - Internal TablesReport - Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 5. Report - Declaring Internal TablesReport - Declaring Internal Tables 5 TYPE typ OCCURS n Defines an internal table without header line. Example TYPES: BEGIN OF LINE_TYPE, NAME(20) TYPE C, AGE TYPE I, END OF LINE_TYPE. DATA: PERSONS TYPE LINE_TYPE OCCURS 20, PERSONS_WA TYPE LINE_TYPE. PERSONS-NAME = 'Michael'. PERSONS-AGE = 25. APPEND PERSONS_WA TO PERSONS. www.aspireit.net Call us 7058198728 / 8856033664
  • 6. 6 TYPE typ OCCURS n WITH HEADER LINE Defines an internal table with header line. Such a table consists of any number of table lines with the type typ and a header line. Example TYPES: BEGIN OF LINE_TYPE, NAME(20) TYPE C, AGE TYPE I, END OF LINE_TYPE. DATA: PERSONS TYPE LINE_TYPE OCCURS 20 WITH HEADER LINE. PERSONS-NAME = 'Michael'. PERSONS-AGE = 25. APPEND PERSONS. Report - Declaring Internal TablesReport - Declaring Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 7. 7  Referencing data dictionary object  With header line  DATA FLIGHT_TAB LIKE SFLIGHT OCCURS 10 WITH HEADER LINE.  Without header line  DATA FLIGHT_TAB LIKE SFLIGHT OCCURS 10.  DATA FLIGHT_TAB LIKE SFLIGHT.  Including structures  You can Include another structure into Internal table. DATA : BEGIN OF T_TAB1 OCCURS 10, FIELDS1 LIKE BKPF-BELNR, FIELDS2 LIKE BSEG-BUZEI, END OF T_TAB1. DATA : BEGIN OF T_TAB2 OCCURS 10. INCLUDE STRUCTURE T_TAB1. DATA : END OF T_TAB2. In this example, T_TAB2 will also contain the fields FIELD1 & FIELD2. Report - Declaring Internal TablesReport - Declaring Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 8. 8 APPEND Statement APPEND [wa TO | INITIAL LINE TO] itab.  Appends a new line to the end of the internal table itab. If you specify wa TO, the new line is taken from the contents of the explicitly specified work area wa.  If you use INITIAL LINE TO, a line filled with the correct value for the type is added. If the specification before itab is omitted, the new line is taken from the internal table itab.  After the APPEND, the system field SY-TABIX contains the index of the newly added table entry. Report - Filling Internal TablesReport - Filling Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 9. 9 INSERT Statement INSERT [wa INTO | INITIAL LINE INTO] itab [INDEX idx].  Inserts a new line into an internal table. If you specify wa INTO , the new line is taken from the contents of the explicitly specified work area wa.  When using INITIAL LINE INTO , a line containing the appropriate initial value for its type is inserted into the table. If you omit the specification before itab , the new line is taken from the header line of the internal table itab.  INDEX idx specifies the table index before which the line is inserted into the table itab . Report - Filling Internal TablesReport - Filling Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 10. 10 Assigning internal tablesAssigning internal tables  Internal tables without header line  MOVE ITAB1 TO ITAB2.  ITAB2 = ITAB1  Internal tables with header line  MOVE ITAB1[ ] TO ITAB2[ ].  ITAB2[ ] = ITAB1[ ]. www.aspireit.net Call us 7058198728 / 8856033664
  • 11. 11 Extracting data from database tableExtracting data from database table SELECT c1 c2 … cn|* FROM <dbtable> INTO TABLE <itab> WHERE <condition>.  dbtable – Name of the database table  c1,c2,…cn – columns in the database table  itab – Internal table that holds the data  condition – WHERE clause condition www.aspireit.net Call us 7058198728 / 8856033664
  • 12. 12 LOOP AT Statement LOOP AT itab. LOOP AT itab INTO wa.  Processes an internal table (DATA) in a loop which begins with LOOP and ends with ENDLOOP. Each of the internal table entries is sent to the output area in turn.  When LOOP AT itab. is used, the header line of the internal table itab is used as output area.  In the case of LOOP AT itab INTO wa , there is an explicitly specified work area wa.  If the internal table is empty, all the statements between LOOP and ENDLOOP are ignored.  In each loop pass, SY-TABIX contains the index of the current table entry. After leaving a LOOP, SY-TABIX has the same value as it had before. Report - Retrieving Internal TablesReport - Retrieving Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 13. 13 READ Statement READ TABLE itab INDEX idx [INTO WA]. READ TABLE itab WITH KEY <k1> = <f1> <k2> = <f2>… <kn> = <fn> [INTO wa] [BINARY SEARCH].  Reads an internal table entry. An entry can be chosen using a key or its index idx.  With "READ TABLE itab.", the header line of the internal table itab is used as the output area; with "READ TABLE itab INTO wa." the explicitly specified work area wa is used for this purpose.  For BINARY SEARCH, the internal table itab should be sorted by the keys k1,k2…kn. Report - Retrieving Internal TablesReport - Retrieving Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 14. 14 MODIFY Statement MODIFY itab [FROM wa] [INDEX idx].  Changes an entry in the internal table itab .  If you specify FROM wa , the line is replaced by the explicitly specified work area wa . If the FROM specification is omitted, the line is replaced by the header line from itab .  With INDEX idx, you can specify the table index of the line to be changed. The index specification can be omitted in a LOOP on an internal table.  The INDEX specification can also appear before the FROM specification. Note The counting of table entries begins with 1. Report - Modifying Internal TablesReport - Modifying Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 15. 15 DELETE Statement DELETE itab.  The current entry of the internal table itab is deleted in a LOOP loop.  Return code value is set to 0. DELETE itab INDEX idx.  Deletes the idx entry from the internal table itab .  The return code value is set as follows:  SY-SUBRC = 0 The entry was deleted.  SY_SUBRC = 4 The entry does not exist. Report - Deleting Internal TablesReport - Deleting Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 16. 16 DELETE Statement DELETE itab FROM idx1 TO idx2.  Deletes the line area from index idx1 to idx2 from internal table itab. At least one of the two parameters FROM idx1 or TO idx2 should be specified.  If parameter FROM is missing, the area from the start of the table to line idx2 is deleted.  If parameter TO is missing, the area from line idx1 to the end of the table is deleted.  Start index idx1 must be greater than 0. The return code value is set as follows:  SY-SUBRC = 0 At least one entry was deleted.  SY_SUBRC = 4 None of the entries were deleted. Report - Deleting Internal TablesReport - Deleting Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 17. 17 SORT Statement SORT itab DESCENDING. SORT itab ASCENDING. SORT itab BY f1 f2 ... fi.  Sorts the entries of the internal table itab in ascending order. The default key is used as the sort key for internal tables.  Sorts itab by the sub-fields f1, f2 , ..., fi which form the sort key. These fields can be any type (even number fields or tables).  Unless you specify otherwise, the sort is in ascending order. You can also use additions 1 and 2 before BY if you want all sub-fields to apply.  To change the sort sequence for each individual field, specify DESCENDING or ASCENDING after each of the sub-fields f1 , f2 , ..., fi . Report - Sorting Internal TablesReport - Sorting Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 18. 18 CLEAR/REFRESHCLEAR/REFRESH  CLEAR ITAB.  If ITAB is an internal table without a header line, the entire table is deleted together with all its entries.  If, however, ITAB is an internal table with a header line, only the subfields in the table header entry are reset to their initial values.  To delete the entire internal table together with all its entries, you can use CLEAR ITAB[ ] or REFRESH ITAB.  NOTE:  CLEAR f.  Clears the field contents www.aspireit.net Call us 7058198728 / 8856033664
  • 19. 19 DESCRIBE Statement DESCRIBE TABLE itab.  Returns the attributes of the internal table itab. You must use at least one of the additions listed below. Additions : 1. ... LINES lin Places the number of filled lines of the table t in the field lin. 2. ... OCCURS n Transfers the size of the OCCURS parameter from the table definition to the variable n. Report - Retrieving Internal Table attributesReport - Retrieving Internal Table attributes www.aspireit.net Call us 7058198728 / 8856033664
  • 20. 20  All these structures begin with AT and end with ENDAT. The sequence of statements which lies between them is then executed if a control break occurs.  AT NEW f. / AT END OF f.  f is a sub-field of an internal table processed with LOOP.  The sequence of statements which follow it is executed if the sub- field f or a sub-field in the current LOOP line defined (on the left) before f has a different value than in the preceding (AT NEW) or subsequent (AT END OF) table line.  AT FIRST. / AT LAST.  Executes the appropriate sequence of statements once during the first (AT FIRST) or last (AT LAST) loop pass. Report - Control Break With Internal TablesReport - Control Break With Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 21. 21 AT FIRST Statements are executed before any records are processed while looping at Internal table. Example : LOOP AT itab. AT FIRST. WRITE : SY-ULINE. ENDAT. ENDLOOP. Report - Control Break With Internal TablesReport - Control Break With Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 22. 22 AT LAST Statements are executed after all records are processed while looping at Internal table. Example : LOOP AT itab. AT LAST. WRITE : SY-ULINE. ENDAT. ENDLOOP. Report - Control Break With Internal TablesReport - Control Break With Internal Tables www.aspireit.net Call us 7058198728 / 8856033664
  • 23. 23 AT NEW <Field Name> Statements are executed at the beginning of a group of records containing the same value for <Field Name>.. Example : LOOP AT itab. AT NEW I_LIFNR. WRITE : SY-ULINE ENDAT. ENDLOOP. Report - Control Break With Internal TablesReport - Control Break With Internal Tables
  • 24. 24
  • 25. 25 AT END OF <Field Name> Statements are executed at the end of a group of records containing the same value for <Field Name>. Example : LOOP AT itab. AT END OF I_LIFNR. WRITE : SY-ULINE. ENDAT. ENDLOOP. Note : AT NEW and AT END OF make sense only for a sorted table. Report - Control Break With Internal TablesReport - Control Break With Internal Tables
  • 26. 26 SUM Statement SUM.  SUM calculates the control totals of all fields of type I , F and P and places them in the LOOP output area (header line of the internal table or an explicitly specified work area).  You can use the SUM statement both at the end and the beginning of a control group  Example: LOOP AT itab. AT LAST. SUM. WRITE : itab-fld1. ENDAT. ENDLOOP. Prints the sum of values of fld1 in all rows of itab. Fld1 should be a numeric type field Report - SummationReport - Summation
  • 27. 27 COLLECT Statement COLLECT [wa INTO] itab.  COLLECT is used to summate entries in an internal table.  COLLECT = APPEND, if no entries with the same key exists  = Adds the numeric values to their corresponding field values, if an entry with same key exists  Used to create summarized tables. Report - SummationReport - Summation
  • 28. 28 COLLECT Statement Example Timesheets per employee per day INT_EMPTMSHT – EMPNO(char), EDATE(date), HOURS(integer) Total time per employee for the whole period under consideration INT_TMSHTSUM – EMPNO(char),HOURS(integer) INT_EMPTMSHT 1000 20040102 5 1000 20040103 7 1001 20040103 8 1001 20040106 3 Report - SummationReport - Summation INT_TMSHTSUM 1000 12 1001 8
  • 29. 29 COLLECT Statement Example LOOP AT INT_EMPTMSHT. MOVE-CORRESPONDING INT_EMPTMSHT TO INT_TMSHTSUM. COLLECT INT_TMSHTSUM. ENDLOOP. Report - SummationReport - Summation INT_TMSHTSUM 1000 5 INT_TMSHTSUM 1000 12 INT_TMSHTSUM 1000 12 1001 8 INT_TMSHTSUM 1000 12 1001 11 INT_EMPTMSHT 1000 20040102 5 1000 20040103 7 1001 20040103 8 1001 20040106 3
  • 30. 30 Thank YouThank You For SAP ABAP Online / Classroom Training  Please visit our website www.aspireit.net  call us on 7058198728 / 8856033664