This Space has blogs on various topics in the field of SAP. These blogs point out solutions to various technical and functional issues that consultants face during implementation or support of SAP Projects. Readers/followers are welcome to contribute to this space by emailing your content at bohra.mohammadi@gmail.com. You will be rewarded according to the topic/number of words/complexity of the topic/issue which are you addressing in your blog.
Friday, March 11
ABAP Statements
ABAP Source code consists for comments and statements.
Various kind of ABAP statements are :
Declarative statements
They define data type or declare data objects. A collection of declarative statement in the program is called declaration part.
Examples of declarative keywords: TYPES, DATA, TABLES
Modularization Statements
processing blocks in an ABAP program are defined by these statements.
The modularization keywords are of two types:
Event Keywords and Defining keywords
Event Keywords are used to define event blocks. There are no
special statements to conclude processing blocks – a processing block ends when the next proc block starts.
Examples of event keywords are:
START-OF-SELECTION, AT USER-COMMAND, AT SELECTION SCREEN,
Defining keywords Are used to define dialog modules, methods , subroutines, function modules.
We can conclude them using the ENDstatements.
Examples of definitive keywords: MODULE ... ENDMODULE.
FORM ..... ENDFORM, FUNCTION ... ENDFUNCTION.
Control Statements
within a processing block , Control statements control the flow of an ABAP program
according to certain conditions.
Examples of control keywords: IF, WHILE, CASE
Call Statements
Call Statements call processing blocks
The block can reside anywhere either in the same program or in other program.
Examples of call keywords:
SUBMIT, LEAVE TO, PERFORM, CALL, SET USER-COMMAND,
Operational Statements
Operational Statements process the data.
Examples of operational keywords:
MOVE, ADD. WRITE,
Database Statements
Database Statements access the tables form central database
system. These are of 2 types: Open SQL and Native SQL.
Open SQL
Open SQL contains only Data Manipulation
Language (DML) statements, such as , IINSERT, DELETE and SELECT.No
Data Definition Language (DDL) statements (such as CREATE TABLE or CREATE INDEX) are present in open SQL..
Functions of this type are contained in the ABAP Dictionary
ABAP programs that use only Open SQL statements to
access the database are fully portable ie they can be run on a different database or operating system. Database interface helps in the conversion of OPEN SQL into commands of the relevant database.
Native SQL
These statements go directly from the database interface to the database without
being converted. It is possible to use DDL operations in native SQL. The ABAP Dictionary uses
Native SQL for database tables creation.it is recommended to use open sql in ABAP programs. Data dictionary used native sql and is created for DDL so better make use of Data dictionary if you are creating a ABAP program.
Related Articles :
Basics of Web Dynpro ABAP
ABAP Data Types and Objects
WD4A - Topics to be covered in the upcoming posts
WD4A - Introduction
WDA - SAP Logon Procedures
WD4A-Format the Values appearing on value Axis of Business Graphic
WD4A-Navigate from one view to another and back to previous view
WD4A - How to Calculate next 12 months from current month in web dynpro ABAP
WD4A - Validate Inputs in a web dynpro ABAP Application
Basics of Web Dynpro ABAP
ABAP Data Types and Objects
WD4A - Topics to be covered in the upcoming posts
WD4A - Introduction
WDA - SAP Logon Procedures
WD4A-Format the Values appearing on value Axis of Business Graphic
WD4A-Navigate from one view to another and back to previous view
WD4A - How to Calculate next 12 months from current month in web dynpro ABAP
WD4A - Validate Inputs in a web dynpro ABAP Application
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
You are welcome to express your views here...