https://www.tutorialscampus.com/tutorials/sap-abap/sap-abap-reading-internal-tables.htm
1. Subroutines:
a. PERFORM “subroutine name”
i. FORM
ii. -------- subroutines-------
iii. ENDFORM
2. Macro:
a. DEFINE
b. -------Macro conditions-----
c. END-OF-DEFINITION
3. Selection screen:
a. BEGIN OFF
b. END OFF
c. PARAMETERS
i. Used for single selection button
d. SELECT OPTION
i. Used for multi selection
4. Declare variable:
a. DATA
i. DATA BEGIN OF abap
ii. END OF
b. TYPES
i. Used to declare variable
c. CONSTANTS
i. CONSTANTS a TYPE i DEFALUT 5
d. INCLUDE
7. Structure:
a. It’s data object that is made up of components of any data type stored one
after the other in the memory.
b. Can be any data type
c. Structure format values from different tables
d. Rather than declaring several fields, to define structure which has different
fields with different data type from different table.
e. Can define as a table also
8. Views:
a. A View acts like a database table only. But it will not occupy storage space.
b. A view acts similar to a virtual table - a table that does not have any physical
existence.
c. A view is created by combining the data of one or more tables containing
information about an application object.
d. Using views, you can represent a subset of the data contained in a table or you
can join multiple tables into a single virtual table.
9. Include:
a. Include programs are global repository objects used to modularize the source
code. They allow you to use the same source code in different programs.
Include programs also allow you to manage complex programs in an orderly
way. In order to use an include program in another program, we use the
following syntax −
b. INCLUDE <program_name>.
b. FUNCTION MODULE:
i. We can pass some value and it can process it and get some value
ii. Example:- Need to get report from a table
1. Give inputs like file name, path, object (selection keys)
2. It will get from standard table and put it in internal table and
make a report and downloaded in desktop
a. To use a Native SQL statement, you have to precede it with the EXEC SQL
statement and end with ENDEXEC statement.
b. The program must be told where the table begins and ends. So use the BEGIN
OF statement and then declare the table name.
c. After this, the OCCURS addition is used, followed by a number, here 0. OCCURS
tells SAP that an internal table is being created, and the 0 states that it will not
contain any records initially. It will then expand as it is filled with data.
22. Domains:-
a. The domain is used for the technical definition of a table field such as field
type and length, and the data element is used for the semantic definition
(short description).
b. A data element describes the meaning of a domain in a certain business
context. It contains primarily the field help and the field labels in the screen.
c. The domain is assigned to the data element, which in turn is assigned to the
table fields or structure fields.
23. Data element:-
a. Data elements describe the individual fields in the ABAP Data Dictionary.
b. They are the smallest indivisible units of the complex types, and they are used
to define the type of table field, structure component or row type of a table.
24. Types of table field