adesso orange🍊Stellenangebote:
Software Engineer Trainee · Senior | (Senior) Cloud Software Engineer BTP
(Senior) Consultant Technologie · Consultant ABAP
Werkstudent Softwareentwicklung · Fiori / UI5 · Consulting · Application Management

Ich habe am 23.11.2024 manuell über mehrere Versionen das Wiki geupdated. Evtl. läuft es noch nicht ganz rund ;)

Klasse Vorlage

Aus SAP Wiki ツ


Definition

CLASS lcl DEFINITION.
  PUBLIC SECTION.

    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.
ENDCLASS.