Beruflich Dokumente
Kultur Dokumente
public .
methods fly.
methods load.
methods print_Airlines.
endinterface.
public section.
interfaces ZIF_JULY_PLANE
abstract methods LOAD .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
ENDMETHOD.
ENDCLASS.
public section.
methods ZIF_JULY_PLANE~LOAD
redefinition .
protected section.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_JULY_PLANE_PASS IMPLEMENTATION.
METHOD zif_july_plane~LOAD.
WRITE : 'Passengers are boarding'.
ENDMETHOD.
ENDCLASS.
public section.
methods ZIF_JULY_PLANE~LOAD
redefinition .
protected section.
PRIVATE SECTION.
METHODS add_numbers.
ENDCLASS.
METHOD zif_july_plane~LOAD.
WRITE : 'Freight is getting loaded'.
add_numbers( ).
ENDMETHOD.
METHOD add_numbers.
DATA c TYPE i.
DATA b TYPE i VALUE 20.
DATA a TYPE i VALUE 10.
c = a + b.
ENDMETHOD.
ENDCLASS.
*&---------------------------------------------------------------------*
*& Report zjuly_consume_plane
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zjuly_consume_plane.
*wa-x = 10.
*wa-y = 'A'.
append value #( x = 10 y = 'A' ) to itab.
*wa-x = 20.
*wa-y = 'B'.
*CONCATENATE 'the current logon user is ' sy-uname into lv_string.
append value #( x = 20 y = |The current user name is '{ sy-uname }'| ) to itab.
*CAUTION: use read expression when you are sure that data do exist for a column
data(lv_temp) = itab[ x = 20 ]-y.
WRITE : / lv_temp.