Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
62 views46 pages

Education Presentation ABAP Week-3

Uploaded by

praveengkumarer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views46 pages

Education Presentation ABAP Week-3

Uploaded by

praveengkumarer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 46

SAP ABAP Training

By: Hamad Ahmad


SAP ABAP Trainer
Table of Contents for 3rd Week
Su ABAP Editor Types and Use
01

Su FLOW OF AN EXECUTABLE PROGRAM/REPORT


02

Su DECLERATION
03

Su ABAP Local Data Types


04

Su Basic ABAP Language Elements


05

Su ABAP System Variables


06

Su Values Assignment
07
3rd Week Session Goals
• Text-Based Editor • ABAP Data Types and Constants Fixed Data Objects
• Source Code Editor • Predefined ABAP Types Literals
• Bookmarks Quick Navigation • Incomplete/Complete Data Types Numeric Literals:
• Session Breakpoint • TYPES keyword Text Literals or Character Literals
• Line Number • User defined data types Text Symbols
• Changed Lines Inactive • Default Value of Predefined Types Assigning values to Text Symbols
• Entire line as comment • Structured data types Translate Text Symbols
• Part of the line • Constants Statement REPORT
• Block that Can be Compressed • DATA keyword Reporting Events
• Page Heading Line Size • TYPE keyword INITIALIZATION
• Different Color of: keywords variable literals • LIKE keyword START-OF-SELECTION
Comments • Structured Variable END-OF-SELECTION.
• Auto Completion Ctrl-Space Help • Default Data Type. Assigning values to ABAP variables
• Position of Cursor • ABAP System Variables MOVE keyword
• User-Specific Settings Editor • Write System Variables • keyword CLEAR

FLOW OF AN EXECUTABLE
ABAP EDITOR 1st Day DECLERATION 2nd Day 3rd Day
PROGRAM/REPORT
1 Day Session Goals:
st

• Text-Based Editor
• Source Code Editor
• Bookmarks Quick Navigation
100 Minutes • Session Breakpoint
• Line Number
Segment

• Changed Lines Inactive


• Entire line as comment
• Part of the line
100 Minutes • Block that Can be Compressed
• Page Heading Line Size
Segment

• Different Color of: keywords variable literals Comments


• Auto Completion Ctrl-Space Help
• Position of Cursor
100 Minutes • User-Specific Settings Editor
Segment
The ABAP Editor

ABAP Editors in SAP


The ABAP Editor:

There are several editors you can use to develop ABAP programs,
depending on the release and Support Package level. The choice
of editor is user-specific and is made in the Object Navigator by
following the menu path

Utilities → Settings → ABAP Editor.

The latest editor (Front-End Editor (New)) offers a number of new


options and easy-to-use additional functions in comparison with
the classic editor (Front-End Editor (Old)).
User-Specific Settings

Features of
User-Specific Settings
In User-Specific Settings there are following options in ABAP Editor
Tab which we need to configure to make Editor performance
better

 Editor
 Source Code-based Editor
 Pretty Printer
 Convert Upper Case / Lower Case
TEXT-BASED
EDITOR

SE38: Old ABAP Editor

The previous ABAP Editor was Text


based. menu path Utilities →
Settings → ABAP Editor
NEW ABAP
EDITOR

SE38: NEW ABAP Editor

The New ABAP Editor is source code


based. menu path Utilities →
Settings → ABAP Editor
New ABAP
Editor

Page Heading
Line Size Different Color of: keywords
Bookmarks Part of the variable literals Comments
line

Entire line as
Session
comment
Breakpoint

Block that Can


Line Number
be Compressed

Auto
Completion
Auto Completion
Changed Lines Ctrl-Space Help
Inactive

Position of User-Specific
Cursor Settings
REPORT z00_testing NO STANDARD PAGE HEADING LINE-SIZE 43.

* Data Declarations NEW ABAP


PARAMETERS: gv_input  TYPE i.        "Input
DATA gv_result TYPE i.               "Output EDITOR
INITIALIZATION.
gv_input = 10.

START-OF-SELECTION.
*Processing
MOVE gv_input TO gv_result.

DO 10 TIMES.

  ADD 1 TO gv_result.
  gv_result = gv_result + 1.

  MULTIPLY gv_result BY 2.
  ENDDO.
END-OF-SELECTION.

* OutPut
  WRITE: 'INPUT',
          gv_input.

   NEW-LINE.
   ULINE.
      SKIP.
      ULINE.
      SKIP.
   ULINE.

  WRITE:/20(6)'RESULT', 40(2) gv_result.
        ULINE. SE38: Test Program Code

Use this Code and see the output for


better understanding.
Roll Numbers Roll No.
ABAP-E-3-2-110
Student Name
Muhammad Nawaz
ABAP-E-3-2-259 Asma Shahzad
ABAP-E-3-2-459 Hamza Qayoom
ABAP-E-3-2-144 Muhammad Ismail Zia
ABAP-E-3-2-37 Adeel Saeed
ABAP-E-3-2-343 Saad Mehmood
ABAP-E-3-2-159 Muhammad Awais Aleem
ABAP-E-3-2-168 Muhammad Ayub
ABAP-E-3-2-452 Muhammad Farooq
ABAP-E-3-2-191 Arslan Mazhar
ABAP-E-3-2-451 Waqar Hussain Shahid
ABAP-E-3-2-197 Danish Gul
ABAP-E-3-2-340 Qayyum Ahsan
ABAP-E-3-2-254 Hafiz Muhammad Abubkar
ABAP-E-3-2-397 Umar Farooq
ABAP-E-3-2-398 Mateen Munir
ABAP-E-3-2-400 Fahad Khalid
ABAP-E-3-2-401 Zain ulabdeen
ABAP-E-3-2-357 Muhammad Abubakar Saeed
ABAP-E-3-2-377 Aniya Raees
ABAP-E-3-2-413 Abdul Ahad
ABAP-E-3-2-204 Muhammad Ubaidullah
ABAP-E-3-2-418 Hassan Zulfiqar
ABAP-E-3-2-349 Syed Zia Ud Din Ahmed
ABAP-E-3-2-407 Wajid Yousaf
Roll Numbers Roll No.
ABAP-M-2-1-12
Student Name
Muhammad Jhanzaib
ABAP-M-2-1-208 Taimur Ul Hassan Ghouri
ABAP-M-2-1-294 Maryam Arshad
ABAP-M-2-1-310 Faisal Yasin
ABAP-M-2-1-461 Malik Omer
ABAP-M-2-1-1 Syed Ali Mubashar Kazmi
ABAP-M-2-1-85 Mughees Ahmed Mirza
ABAP-M-2-1-9 Sher Ali
ABAP-M-2-1-31 Muhammad Hamid
ABAP-M-2-1-35 Umer Munir
ABAP-M-2-1-447 Kamil Humayun Mirza
ABAP-M-2-1-148 Nadeem Saleem
ABAP-M-2-1-332 Usman Anwar
ABAP-M-2-1-43 Hafiz Muhammad Ishtiaq
ABAP-M-2-1-47 Zain Khawar
ABAP-M-2-1-50 Hamza Amjad
ABAP-M-2-1-52 Muhammad Raza Liaqat
ABAP-M-2-1-62 Hassan Arif
ABAP-M-2-1-82 Rizwan Saeed Khawaja
ABAP-M-2-1-226 Usama Azeem
ABAP-M-2-1-211 Muhammad Faizan Razzaq
ABAP-M-2-1-104 Safi Ur Rehman
ABAP-M-2-1-84 Hafiz Muhammad Naveed
ABAP-M-2-1-330 Muhammad Sumair
ABAP-M-2-1-395 Muhammad Hussain
For feedback, please write at

[email protected]

Thank you!

*To download application forms, kindly click the below link;


https://cloud.exdnow.com/s/k4Fb52tZfiMf4x5
SAP ABAP Training
By: Hamad Ahmad
SAP ABAP Trainer
3rd Week Session Goals
• Text-Based Editor • ABAP Data Types and Constants Fixed Data Objects
• Source Code Editor • Predefined ABAP Types Literals
• Bookmarks Quick Navigation • Incomplete/Complete Data Types Numeric Literals:
• Session Breakpoint • TYPES keyword Text Literals or Character Literals
• Line Number • User defined data types Text Symbols
• Changed Lines Inactive • Default Value of Predefined Types Assigning values to Text Symbols
• Entire line as comment • Structured data types Translate Text Symbols
• Part of the line • Constants Statement REPORT
• Block that Can be Compressed • DATA keyword Reporting Events
• Page Heading Line Size • TYPE keyword INITIALIZATION
• Different Color of: keywords variable literals • LIKE keyword START-OF-SELECTION
Comments • Structured Variable END-OF-SELECTION.
• Auto Completion Ctrl-Space Help • Default Data Type. Assigning values to ABAP variables
• Position of Cursor • ABAP System Variables MOVE keyword
• User-Specific Settings Editor • Write System Variables • keyword CLEAR

FLOW OF AN EXECUTABLE
ABAP EDITOR 1st Day DECLERATION 2nd Day 3rd Day
PROGRAM/REPORT
2 Day Session Goals:
nd

• ABAP Data Types and Constants


• Predefined ABAP Types
• Incomplete/Complete Data Types
100 Minutes • TYPES keyword
• User defined data types
Segment

• Default Value of Predefined Types


• Structured data types
• Constants
100 Minutes • DATA keyword
• TYPE keyword
Segment

• LIKE keyword
• Structured Variable
• Default Data Type.
100 Minutes • ABAP System Variables
• Write System Variables
Segment
Data Type
Data Types
Elementary Types ABAP Standard predefined types :

Fixed Types They are divided into two groups: Complete and incomplete types.

C The following implemented ABAP standard types are complete. This means that
they already contain a type-specific, fixed length specification:
N
D Complete ABAP Standard:

T D Type for date(D), format: YYYYMMDD, length 8 (fixed)


T Type for time (T), format: HHMMSS, length 6 (fixed)
X I Type for integer (I), length 4 (fixed)
P F Type for floating point number (F), length 8 (fixed)
DECFLOAT16 Type for Decimal Floating point number, length 8
I DECFLOAT34 Type for Decimal Floating point number, length 16 STRING
Type for dynamic length character string
F XSTRING Type for dynamic length byte sequence (Hexadecimal string)

Fixed Length The following standard types do not contain a fixed length (incomplete). When they
are used to define data objects, you therefore still need to specify the length of the
String variable.
XString
Incomplete ABAP Standard Types:
Complex Types
Types which fixed length is to be specified:
Structure Type
C
Table Type N
X
P
Data Type ABAP Standard predefined types :
Data Types
Elementary Types They are divided into two groups: Complete and incomplete types.
Fixed Types Complete ABAP Standard:
C D Type for date(D), format: YYYYMMDD, length 8 (fixed)
N T Type for time (T), format: HHMMSS, length 6 (fixed)
I Type for integer (I), length 4 (fixed)
D F Type for floating point number (F), length 8 (fixed)
DECFLOAT16 Type for Decimal Floating point number, length 8
T DECFLOAT34 Type for Decimal Floating point number, length 16
STRING Type for dynamic length character string
X XSTRING Type for dynamic length byte sequence (Hexadecimal string)
P
Incomplete ABAP Standard Types:
I
F Types which fixed length is to be specified:

C
Fixed Length
N
X
String P
XString Data Type Description Default Length Default Value
C Character 1 ‘‘
Complex Types N Numeric 1 0
D Date 8 0
Structure Type T Time 6 0
X Hexadecimal 1 X’0′
Table Type
I Integer 4 0
P Packed 8 0
F Float 8 0
LOCAL DATA TYPES

METHOD 1. User defined METHOD 2. User defined


local data types Elementary Data Objects
Use TYPES keyword to define the data types. ABAP Variables are instances of data types.
--------------------------------------------------
TYPES: name(10) TYPE c,
--------------------------------------------------
length TYPE p DECIMALS 2,
DATA: name(10) TYPE c,
counter TYPE i,
length TYPE p DECIMALS 2,
id(5) TYPE n.
counter TYPE i,
--------------------------------------------------
id(5) TYPE n.
--------------------------------------------------
Use DATA keyword to define the data variable and Assign
user define data Types. Constants are used to store a value under a name. We must specify
--------------------------------------------------
the value when we declare a constant and the value cannot be changed
DATA: gv_name TYPE name,
gv_length TYPE length, later in the program.
gv_counter TYPE counter,
gv_id TYPE id. Use CONSTANTS keyword to declare a constant.
-------------------------------------------------- --------------------------------------------------

CONSTANTS: VALUE TYPE p DECIMALS 2 VALUE '3.14',


SUBMIT TYPE c VALUE 'X'.
--------------------------------------------------
DATA TYPES
Data Type

Elementary Types

Structured data types Fixed Types

C
Structured data type is grouping of several simple N
data types under one name.
D

Use the keywords BEGIN OF and END OF to create a T


structured data type. X
P
--------------------------------------- I
TYPES: BEGIN OF student,
id(5) TYPE n, F
name(10) TYPE c, Fixed Length
dob TYPE d,
place(10) TYPE c, String
END OF student. XString
--------------------------------------------
- Complex Types

Structure Type
Table Type
DECLERATION

Structure Variable TYPES STRUCTURE


Similar to structured data type, structured variable can be declared
LIKE KEYWORD
using BEGIN OF and END OF keywords.
We can also declare a structured variable by referring to an existing
-------------------------------------------------- structured data type.
DATA: BEGIN OF student, --------------------------------------------------
id(5) TYPE n, TYPES: BEGIN OF address,
name(10) TYPE c, name(10) TYPE c,
dob TYPE d, street(10) TYPE c,
place(10) TYPE c, place(10) TYPE c,
END OF student. pincode(6) type n,
-------------------------------------------------- phone(10) type n,
END OF address.
Each individual field of the structured variable can be accessed using hyphen
(-). For example, name field of the student structure can be accessed using Data: house_address TYPE address,
student-name. office_address LIKE house_address.
--------------------------------------------------
NOTE: Character is the default data type. While declaring a variable or structure we can also refer to an existing
variable or structure instead of data type or type structure. For that
use LIKE instead of TYPE keyword while declaring a variable or
structure.
SYSTEM VARIABLES

ABAP System Variables WRITE System Variables


ABAP system variables is accessible from all ABAP programs. These '/' USED TO BREAK LINE
fields are filled by the runtime environment. The values in these fields
indicate the state of the system at any given point of time. Write variables and literals in chained
The complete list of ABAP system variables is found in the SYST table
statement.
in SAP. Individual fields of the SYST structure can be accessed either
using “SYST-“ or “SY-“. --------------------------------------------------
-------------------------------------------------- WRITE: 'ABAP System Variables',
WRITE 'ABAP System Variables'. / 'Client : ' , sy-mandt,
WRITE / 'Client : '. WRITE sy-mandt.
/ 'User : ' , sy-uname,
WRITE / 'User : '. WRITE sy-uname.
WRITE / 'Date : '. WRITE sy-datum. / 'Date : ' , sy-datum,
WRITE / 'Time : '. WRITE sy-uzeit. / 'Time : ' , sy-uzeit.
-------------------------------------------------- --------------------------------------------------

Each individual field of the structured variable can be accessed using hyphen Only use chained statements where appropriate
(-). For example, uname field of the system variable structure can be
accessed using sy-uname. Use chained statements mainly for declarations. They should always
be used for related declarations of type TYPES BEGIN OF ... TYPES
END OF ....
Roll Numbers Roll No.
ABAP-E-3-2-110
Student Name
Muhammad Nawaz
ABAP-E-3-2-259 Asma Shahzad
ABAP-E-3-2-459 Hamza Qayoom
ABAP-E-3-2-144 Muhammad Ismail Zia
ABAP-E-3-2-37 Adeel Saeed
ABAP-E-3-2-343 Saad Mehmood
ABAP-E-3-2-159 Muhammad Awais Aleem
ABAP-E-3-2-168 Muhammad Ayub
ABAP-E-3-2-452 Muhammad Farooq
ABAP-E-3-2-191 Arslan Mazhar
ABAP-E-3-2-451 Waqar Hussain Shahid
ABAP-E-3-2-197 Danish Gul
ABAP-E-3-2-340 Qayyum Ahsan
ABAP-E-3-2-254 Hafiz Muhammad Abubkar
ABAP-E-3-2-397 Umar Farooq
ABAP-E-3-2-398 Mateen Munir
ABAP-E-3-2-400 Fahad Khalid
ABAP-E-3-2-401 Zain ulabdeen
ABAP-E-3-2-357 Muhammad Abubakar Saeed
ABAP-E-3-2-377 Aniya Raees
ABAP-E-3-2-413 Abdul Ahad
ABAP-E-3-2-204 Muhammad Ubaidullah
ABAP-E-3-2-418 Hassan Zulfiqar
ABAP-E-3-2-349 Syed Zia Ud Din Ahmed
ABAP-E-3-2-407 Wajid Yousaf
Roll Numbers Roll No.
ABAP-M-2-1-12
Student Name
Muhammad Jhanzaib
ABAP-M-2-1-208 Taimur Ul Hassan Ghouri
ABAP-M-2-1-294 Maryam Arshad
ABAP-M-2-1-310 Faisal Yasin
ABAP-M-2-1-461 Malik Omer
ABAP-M-2-1-1 Syed Ali Mubashar Kazmi
ABAP-M-2-1-85 Mughees Ahmed Mirza
ABAP-M-2-1-9 Sher Ali
ABAP-M-2-1-31 Muhammad Hamid
ABAP-M-2-1-35 Umer Munir
ABAP-M-2-1-447 Kamil Humayun Mirza
ABAP-M-2-1-148 Nadeem Saleem
ABAP-M-2-1-332 Usman Anwar
ABAP-M-2-1-43 Hafiz Muhammad Ishtiaq
ABAP-M-2-1-47 Zain Khawar
ABAP-M-2-1-50 Hamza Amjad
ABAP-M-2-1-52 Muhammad Raza Liaqat
ABAP-M-2-1-62 Hassan Arif
ABAP-M-2-1-82 Rizwan Saeed Khawaja
ABAP-M-2-1-226 Usama Azeem
ABAP-M-2-1-211 Muhammad Faizan Razzaq
ABAP-M-2-1-104 Safi Ur Rehman
ABAP-M-2-1-84 Hafiz Muhammad Naveed
ABAP-M-2-1-330 Muhammad Sumair
ABAP-M-2-1-395 Muhammad Hussain
For feedback, please write at

[email protected]

Thank you!

*To download application forms, kindly click the below link;


https://cloud.exdnow.com/s/k4Fb52tZfiMf4x5
SAP ABAP Training
By: Hamad Ahmad
SAP ABAP Trainer
3rd Week Session Goals
• Text-Based Editor • ABAP Data Types and Constants Fixed Data Objects
• Source Code Editor • Predefined ABAP Types Literals
• Bookmarks Quick Navigation • Incomplete/Complete Data Types Numeric Literals:
• Session Breakpoint • TYPES keyword Text Literals or Character Literals
• Line Number • User defined data types Text Symbols
• Changed Lines Inactive • Default Value of Predefined Types Assigning values to Text Symbols
• Entire line as comment • Structured data types Translate Text Symbols
• Part of the line • Constants Statement REPORT
• Block that Can be Compressed • DATA keyword Reporting Events
• Page Heading Line Size • TYPE keyword INITIALIZATION
• Different Color of: keywords variable literals • LIKE keyword START-OF-SELECTION
Comments • Structured Variable END-OF-SELECTION.
• Auto Completion Ctrl-Space Help • Default Data Type. Assigning values to ABAP variables
• Position of Cursor • ABAP System Variables MOVE keyword
• User-Specific Settings Editor • Write System Variables • keyword CLEAR

FLOW OF AN EXECUTABLE
ABAP EDITOR 1st Day DECLERATION 2nd Day 3rd Day
PROGRAM/REPORT
3 Day Session Goals:
rd

• Fixed Data Objects


• Literals
• Numeric Literals:
100 Minutes • Text Literals or Character Literals
• Text Symbols
Segment

• Assigning values to Text Symbols


• Translate Text Symbols
• Statement REPORT
100 Minutes • Reporting Events
• INITIALIZATION
Segment

• START-OF-SELECTION
• END-OF-SELECTION.
• Assigning values to ABAP variables
100 Minutes • MOVE keyword
• keyword CLEAR
Segment
ELEMENTARY DATA
OBJECTS

Literals Text Literals or Character


Fixed data objects have a fixed value, which is already fixed when the
Literals :
source text is written and cannot be changed at runtime. Literals and
constants belong to the fixed data objects. Character literals can be either text field literals or text string literals. A
text field literal is a character string enclosed in single quotes ('); a
Fixed Data Objects without Label: text string literal is a character string enclosed in single back quotes
 Numeric Literals (`).
 Text Literals
 String : 'HELLO WORLD'
 Decimal number : '123.45'
Numeric Literals:
 Floating Point Number : ‘123.45E01'
Numeric literals consist of continuous sequences of numbers with a
maximum of 31 digits (0 to 9). These sequences can be prefixed You can use literals to specify fixed values in your programs. There are
directly by a plus (+) or minus (-) sign. numeric literals (specified without quotation marks) and text literals
(specified with quotation marks).
 Positive Integer: 123
 Negative Integer: -123 If possible, avoid literals completely when using statements. Use
Numeric literals between -2147483648 and 2147483647 are integer constants and text symbols instead. This makes it considerably easier
literals and have the built-in ABAP type i. to maintain your program.
ABAP LANGUAGE
ELEMENT

Text Symbols Write Text Symbols


WRITE: /15 text-001,
Text Symbol is a named data object of an ABAP 35 'Date : '
/15 text-002,
, sy-datum,
program that is not declared in the program itself and instead is
defined as a part of the text elements of the program. /35 'Time : ' , sy-uzeit.

A text symbol has the data type c and the length defined in the text Go to Text Element or press F5 to maintain text symbol
elements by mlen. ABAP Editor, choose Goto → Text Elements → Text Symbols

A text symbol behaves like a constant and can be specified in reading Text symbols each belong to a particular program and can be used in
positions using its names as follows: it directly. They are stored outside the source code in their own
Repository object

-------------------------------------------------- A text symbol is identified by means of a three character alphanumeric


write text-id. ID xxx.
--------------------------------------------------
Text-Symbols
Click Here

Click Here

Add Text Symbols

A very important principle in ABAP


development is multilingual capability.
This means that when texts are
displayed on the user interface, the
logon language of the current user is
taken into account.
Text-Symbols

It must be
Active

Add Text Symbols

A text symbol is identified by means of a


three character alphanumeric ID xxx. To
use a text symbol in your program, you
need to address it as TEXT-xxx, where
xxx stands for the three character text
symbol ID.
TEST YOUR
PRGRAOM

SE38: Test Program Code

Use this Code and see the output for


better understanding.
TEST YOUR
PRGRAOM

SE38: Test Program Code

Text symbols can be translated into


different languages and each stored
with a language indicator in the text
pool.

Remember that text elements also


have to be activated.
Text Symbols
Translate

Text-Symbols in multi Language

(see the above graphic). If the


program accesses a text symbol when
it is executed, the system automatically
takes account of the logon language of
the user and supplies the text in this
language.
SAP ABAP Language

Introductory statement of a
program

REPORT statement introduces an executable program. It


must be the first statement of a standalone program after any include
programs are resolved. The name rep must be specified directly.

The keyword PROGRAM can also be replaced by the keyword REPORT.


In executable programs, PROGRAM means the same as REPORT and
can be used with the additions of REPORT

Note: Although it is not absolutely necessary to specify the


name of report, the name of the ABAP program from the repository
should always be used.
SAP ABAP Language

Reporting Events
The following are event key words for reporting events (in order)
which are trigger in an ABAP report program:

 LOAD-OF-PROGRAM.
 INITIALIZATION.
 AT SELECTION-SCREEN.
 AT SELECTION-SCREEN ON BLOCK.
 AT SELECTION-SCREEN OUTPUT.
 START-OF-SELECTION.
 GET node (obsolete, for logical databases only).
 END-OF-SELECTION (obsolete, for logical databases only).

Reporting events are raised in a predefined order and only in executable programs
started using SUBMIT. In general, every executable program is started implicitly
using SUBMIT. Only starts using regular transaction codes (not reporting
transactions) or external calls of their procedures do not raise SUBMITs.

When an executable program is associated with a logical database, the assigned


subroutine is executed in the database program before a reporting event is raised.
Reporting Events

INITIALIZATION
This event keyword defines an event block for initializing an
executable program.

The associated event is raised by the ABAP runtime environment


during the flow of an executable program, directly after LOAD-OF-
PROGRAM and before the selection screen processing of any existing
standard selection screen.

This enables the input fields of the selection screen to be initialized


once only, including those fields defined in the logical database
associated with the program.

--------------------------------------------------
PARAMETERS p_langu TYPE pgl_langu.
INITIALIZATION.
  p_langu = sy-langu.
--------------------------------------------------
Reporting Events

START-OF-SELECTION
This event keyword defines the standard processing block of an
executable program.

The associated event is raised by the ABAP runtime environment


during the running of an executable program after any standard
selection screens have been processed.

--------------------------------------------------
DATA text TYPE string.

START-OF-SELECTION.
text = `Hello World!`.

WRITE text.
--------------------------------------------------
Value Assignments

Value Assignments Move Keyword


--------------------------------------------------
data: gv_var1 type char20 VALUE 'Hello World',
When the program is started, the program context is loaded into a
      gv_var2 like gv_var1,
memory area of the application server and memory is made available
      gv_var3 like gv_var1.
for the data objects defined in the program. Every elementary data
object is pre-assigned the type-specific initial value, except if a
START-OF-SELECTION.
different value was set using the VALUE addition.
MOVE gv_var1 TO gv_var2.
CLEAR gv_var1.
You can use the MOVE statement to transfer the contents of a data
gv_var3 = gv_var2.
object to another data object. The following two syntax variants have
CLEAR gv_var2.
the same effect:
WRITE gv_var3.
--------------------------------------------------
--------------------------------------------------
MOVE gv_var1 TO gv_var2. NOTE:
gv_var2 = gv_var1. If both data objects gv_var1 and gv_var2 are of different types,
-------------------------------------------------- then there is a type conflict. In this case, a type conversion is carried
out automatically, if a conversion rule exists.

CLEAR Statement resets the contents of a data object to


the type-related initial value. For detailed information on the initial
values for a particular type.

Instead of MOVE, only the more general assignment operators =


and ?= should be used.
Roll Numbers Roll No.
ABAP-E-3-2-110
Student Name
Muhammad Nawaz
ABAP-E-3-2-259 Asma Shahzad
ABAP-E-3-2-459 Hamza Qayoom
ABAP-E-3-2-144 Muhammad Ismail Zia
ABAP-E-3-2-37 Adeel Saeed
ABAP-E-3-2-343 Saad Mehmood
ABAP-E-3-2-159 Muhammad Awais Aleem
ABAP-E-3-2-168 Muhammad Ayub
ABAP-E-3-2-452 Muhammad Farooq
ABAP-E-3-2-191 Arslan Mazhar
ABAP-E-3-2-451 Waqar Hussain Shahid
ABAP-E-3-2-197 Danish Gul
ABAP-E-3-2-340 Qayyum Ahsan
ABAP-E-3-2-254 Hafiz Muhammad Abubkar
ABAP-E-3-2-397 Umar Farooq
ABAP-E-3-2-398 Mateen Munir
ABAP-E-3-2-400 Fahad Khalid
ABAP-E-3-2-401 Zain ulabdeen
ABAP-E-3-2-357 Muhammad Abubakar Saeed
ABAP-E-3-2-377 Aniya Raees
ABAP-E-3-2-413 Abdul Ahad
ABAP-E-3-2-204 Muhammad Ubaidullah
ABAP-E-3-2-418 Hassan Zulfiqar
ABAP-E-3-2-349 Syed Zia Ud Din Ahmed
ABAP-E-3-2-407 Wajid Yousaf
Roll Numbers Roll No.
ABAP-M-2-1-12
Student Name
Muhammad Jhanzaib
ABAP-M-2-1-208 Taimur Ul Hassan Ghouri
ABAP-M-2-1-294 Maryam Arshad
ABAP-M-2-1-310 Faisal Yasin
ABAP-M-2-1-461 Malik Omer
ABAP-M-2-1-1 Syed Ali Mubashar Kazmi
ABAP-M-2-1-85 Mughees Ahmed Mirza
ABAP-M-2-1-9 Sher Ali
ABAP-M-2-1-31 Muhammad Hamid
ABAP-M-2-1-35 Umer Munir
ABAP-M-2-1-447 Kamil Humayun Mirza
ABAP-M-2-1-148 Nadeem Saleem
ABAP-M-2-1-332 Usman Anwar
ABAP-M-2-1-43 Hafiz Muhammad Ishtiaq
ABAP-M-2-1-47 Zain Khawar
ABAP-M-2-1-50 Hamza Amjad
ABAP-M-2-1-52 Muhammad Raza Liaqat
ABAP-M-2-1-62 Hassan Arif
ABAP-M-2-1-82 Rizwan Saeed Khawaja
ABAP-M-2-1-226 Usama Azeem
ABAP-M-2-1-211 Muhammad Faizan Razzaq
ABAP-M-2-1-104 Safi Ur Rehman
ABAP-M-2-1-84 Hafiz Muhammad Naveed
ABAP-M-2-1-330 Muhammad Sumair
ABAP-M-2-1-395 Muhammad Hussain
For feedback, please write at

[email protected]

Thank you!

*To download application forms, kindly click the below link;


https://cloud.exdnow.com/s/k4Fb52tZfiMf4x5

You might also like