SAP ABAP - Sample Report Program On WRITE, COLOR, HOTSPOT Keywords.
REPORT ztest_events_list_report.
START-OF-SELECTION.
WRITE 'Click me!' COLOR = 5 HOTSPOT.
AT LINE-SELECTION.
WRITE: / 'You Just Clicked Me', sy-listi,
/ 'You are on list', sy-lsind.
IF sy-lsind < 2. SKIP.
WRITE: 'More ...' COLOR = 3 HOTSPOT.
ELSE.
SKIP.
WRITE: 'THAT''s THE END' COLOR = 1.
ENDIF.
OUTPUT:
START-OF-SELECTION.
WRITE 'Click me!' COLOR = 5 HOTSPOT.
AT LINE-SELECTION.
WRITE: / 'You Just Clicked Me', sy-listi,
/ 'You are on list', sy-lsind.
IF sy-lsind < 2. SKIP.
WRITE: 'More ...' COLOR = 3 HOTSPOT.
ELSE.
SKIP.
WRITE: 'THAT''s THE END' COLOR = 1.
ENDIF.
OUTPUT:
On Clicking “More…”
MORE PROGRAMS ON REPORT PROGRAMMING:
- Type Conversion ( Char To Curr Type).
- Type Conversion ( Curr To Char Type).
- Setting Default Values In Selection Screen.
- Programming On Buttons In A Screen.
- Create A Screen With Two TABSTRIPS For A Report Program.
- ...Back To Index On Report Programming.
Your suggestions and comments are welcome in this section.
Please mail all your contributions to administrator@abapmadeeasy.com We request you to mention your Name, Designation, Experience & Organization you are working for. Your posts will be verified and posted in this site with your name.