SAP ABAP Training: Hamad Ahmad

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

SAP ABAP Training

By: Hamad Ahmad


SAP ABAP Trainer
Table of Contents for 4th Week
Su WRITE ADDITIONS
01

Su INTERNAL FORMAT
02

Su EXTERNAL FORMAT
03

Su LIST ELEMENTS
04
4th Week Session Goals
• Keyword NEW-LINE • Keyword SKIP • LIST ELEMENTS
• WRITE ‘ / ’ Line Break • Keyword ULINE • CHECKBOX
• SET VARIABLE POSITION AND LENGTH • FORMAT • TEST CODE OF CHECKBOX
• NO-GAP • COLOR • AS ICON
• NO-SIGN • WRITE COLOR CODES • ICON TABLE
• NO-ZERO • INTENSIFIED ON • ICON CODES
• NO-GROUPING • INTENSIFIED OFF • TEST CODE OF ICON
• UNDER • INVERSE ON • AS SYMBOL
• DECIMALS • INVERSE OFF • SYMBOL VARIABLES
• ROUND • HOTSPOT ON • SYMBOL STRUCTURE
• DATE FORMAT DD/MM/YYYY • HOTSPOT OFF • TEST CODE OF SYMBOL
• USING EDIT MASK • INPUT • AS LINE
• ALIGNMENT • FRAMES • LINE VARIABLES
• LEFT-JUSTIFIED • RESET • TEST CODE OF LINES
• CENTERED
• RIGHT-JUSTIFIED

INTERNAL FORMAT 1st Day EXTERNAL FORMAT 2nd Day LIST ELEMENTS 3rd Day
3rd Day Session Goals:
•LIST ELEMENTS
•CHECKBOX
•TEST CODE OF CHECKBOX
100 Minutes •AS ICON
•ICON TABLE
Segment

•ICON CODES
•TEST CODE OF ICON
•AS SYMBOL
100 Minutes •SYMBOL VARIABLES
•SYMBOL STRUCTURE
Segment

•TEST CODE OF SYMBOL


•AS LINE
•LINE VARIABLES
100 Minutes •TEST CODE OF LINES
Segment
LIST ELEMENTS
LIST ELEMENTS Description SYNTAX
DATA: check1 TYPE c LENGTH 1 VALUE 'X',
check2 TYPE c LENGTH 1 VALUE ' '.
The output of this addition is a single-character checkbox that is ready
for input. dobj expects a character-like data type of length 1. If the first START-OF-SELECTION.
character in dobj is "X" or "x", the checkbox is shown as selected. If the WRITE: / check1 AS CHECKBOX, 'Checkbox 1',
AS CHECKBOX
first character is not "X" or "x", the checkbox is shown as empty. If dobj / check2 AS CHECKBOX, 'Checkbox 2'.
is an empty data object of the type string, the checkbox is not in the AT LINE-SELECTION.
output. READ: LINE 1 FIELD VALUE check1,
LINE 2 FIELD VALUE check2.
This addition produces icons. Be aware that not all icons are suitable for
spool lists. dobj expects data objects of the type c whose initial
characters can be interpreted as the internal ID of an icon by the
WRITE icon_green_light AS ICON.
runtime environment. In the type group ICON, a constant is declared for WRITE: / 'xxx', '@08@xxx
AS ICON ', 'xxx@08@xxx'.
each icon that can be displayed. The names of the constants can be WRITE: / 'xxx', '@S_TL_G@xxx', 'xxx@S_TL_G@xxx'.
taken from the type group or the output of the SHOWICON program.
This program also shows the corresponding output length and whether
an icon can be spooled or not.

This addition produces all the characters of the data object dobj as
symbols. The type group SYM declares constants with a length of 1 for
each character that can be displayed as a symbol, and whose name WRITE sym_left_hand AS SYMBOL.
AS SYMBOL
reflects the meaning of the symbol. The names of the constants and the
meaning and length of the symbols can be taken from the type group or
from the output of the program SHOWSYMB.

This addition produces line elements with the output length 1. Line
elements are corners, crosses, lines, and T sections. dobj expects data WRITE: /10 line_top_left_corner AS LINE NO-GAP,
line_top_middle_corner AS LINE NO-GAP,
AS LINE objects of the type c whose content can be interpreted as line elements line_top_right_corner AS LINE,
by the runtime environment. The type group LINE declares the line /10 line_left_middle_corner AS LINE NO-GAP.
element constants displayed in the following table.
AS
CHECKBOX

DATA: CHECK1 TYPE C LENGTH 1 VALUE 'X',


CHECK2 TYPE C LENGTH 1 VALUE ' '.

START-OF-SELECTION.
WRITE: / CHECK1 AS CHECKBOX, 'Checkbox 1',
/ CHECK2 AS CHECKBOX, 'Checkbox 2'.

AT LINE-SELECTION.
READ: LINE 1 FIELD VALUE CHECK1,
LINE 2 FIELD VALUE CHECK2.

AS CHECKBOX

Test the code and understand the


concept.
AS ICON

TABLES ICON.

WRITE icon_green_light AS ICON.

WRITE: / '@08@'.
WRITE: / 'xxx', '@08@xxx ', 'xxx@08@xxx'.
WRITE: / 'xxx', '@S_TL_G@xxx', 'xxx@S_TL_G@xxx'.

AS ICON

Test the code and understand the


concept.
AS SYMBOL

WRITE SYM_LEFT_HAND AS SYMBOL.


WRITE SYM_RIGHT_HAND AS SYMBOL.
WRITE SYM_OPEN_FOLDER AS SYMBOL.

AS SYMBOL

Test the code and understand the


concept.
AS LINE

WRITE: /10 line_top_left_corner AS LINE NO-GAP,


line_top_middle_corner AS LINE NO-GAP,
line_top_right_corner AS LINE,
/10 line_left_middle_corner AS LINE NO-GAP,
line_cross AS LINE NO-GAP,
line_right_middle_corner AS LINE,
/10 line_bottom_left_corner AS LINE NO-GAP,
line_bottom_middle_corner AS LINE NO-GAP,
line_bottom_right_corner AS LINE.

AS LINE

Test the code and understand the


concept.
Roll No. Student Name
Roll Numbers ABAP-M-2-1-12 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

academy@exdnow.com

Thank you!

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


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

You might also like