adesso orange🍊Stellenangebote:
Software Engineer Trainee · Senior
| (Senior) Cloud Software Engineer BTP
(Senior) Consultant Technologie · Consultant ABAP
Werkstudent Softwareentwicklung · Fiori / UI5 · Consulting · Application Management
Klasse Vorlage: Unterschied zwischen den Versionen
Aus SAP Wiki ツ
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 6: | Zeile 6: | ||
PUBLIC SECTION. | PUBLIC SECTION. | ||
TYPES: tt_mat_range TYPE RANGE OF matnr. | |||
CLASS-DATA: gt_log TYPE bal_t_msg. | CLASS-DATA: gt_log TYPE bal_t_msg. | ||
CONSTANTS: | CONSTANTS: | ||
Zeile 15: | Zeile 16: | ||
METHODS constructor | METHODS constructor | ||
IMPORTING | IMPORTING | ||
!iv_mode | !iv_mode TYPE char01 | ||
!iv_test | !iv_test TYPE abap_bool | ||
RAISING zcx_bc_basic. | RAISING zcx_bc_basic. | ||
Zeile 29: | Zeile 30: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="abap"> | <syntaxhighlight lang="abap" line start="26"> | ||
CLASS lcl IMPLEMENTATION. | CLASS lcl IMPLEMENTATION. | ||
METHOD constructor. | METHOD constructor. | ||
Zeile 35: | Zeile 36: | ||
_gv_test = iv_test. | _gv_test = iv_test. | ||
ENDMETHOD. | ENDMETHOD. | ||
METHOD get_mode. | |||
CLEAR rv_mode. | |||
rv_mode = _gv_mode. | |||
ENDMETHOD. | |||
ENDCLASS. | ENDCLASS. | ||
</syntaxhighlight> | </syntaxhighlight> |
Aktuelle Version vom 21. Januar 2022, 14:11 Uhr
Definition
CLASS lcl DEFINITION.
PUBLIC SECTION.
TYPES: tt_mat_range TYPE RANGE OF matnr.
CLASS-DATA: gt_log TYPE bal_t_msg.
CONSTANTS:
BEGIN OF gcs_mode,
single TYPE char01 VALUE 'S',
multi TYPE char01 VALUE 'M',
END OF gcs_mode.
METHODS constructor
IMPORTING
!iv_mode TYPE char01
!iv_test TYPE abap_bool
RAISING zcx_bc_basic.
METHODS get_mode
RETURNING VALUE(rv_mode) TYPE char01.
PRIVATE SECTION.
DATA: _gv_mode TYPE char01,
_gv_test TYPE abap_bool.
ENDCLASS.
CLASS lcl IMPLEMENTATION.
METHOD constructor.
_gv_mode = iv_mode.
_gv_test = iv_test.
ENDMETHOD.
METHOD get_mode.
CLEAR rv_mode.
rv_mode = _gv_mode.
ENDMETHOD.
ENDCLASS.