Ansicht
Dokumentation

ABAPSYSTEM-CALL_CLASS_ADMIN - SYSTEM-CALL CLASS ADMIN

ABAPSYSTEM-CALL_CLASS_ADMIN - SYSTEM-CALL CLASS ADMIN

CL_GUI_FRONTEND_SERVICES - Frontend Services   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

SYSTEM-CALL - Method Administration for the ABAP Class Library

This statement is only for

>>> Internal use in SAP Basis development <<<

Even within SAP Basis, it may only be used in programs within the ABAP+GUI development group.

Its use is subject to various restrictions, not all of which may be listed in the documentation. This documentation is intended for internal SAP use within the Basis development group ABAP+GUI.

Changes and further development, which may be incompatible, may occur at any time, without warning or notice!


Variants:

1. SYSTEM-CALL CREATE CLASS c.

2. SYSTEM-CALL CREATE METHOD m OF CLASS c INCLUDE INTO incl.

3. SYSTEM-CALL QUERY CLASS c.

4. SYSTEM-CALL QUERY METHOD m OF CLASS c INCLUDE INTO incl.

5. SYSTEM-CALL DELETE CLASS c.

6. SYSTEM-CALL DELETE METHOD m OF CLASS c.

7. SYSTEM-CALL RENAME CLASS c NEW NAME FROM c2.

8. SYSTEM-CALL RENAME METHOD m OF CLASS c NEW NAME FROM m2.

9. SYSTEM-CALL QUERY METHOD INCLUDE FROM incl CLASS INTO c                                        METHOD INTO m.

Effect

Administers the method includes belonging to a class. Is an interface to table TMDIR. Can be called from the C environment using ab_MethodInclAdm().

Variant 1

SYSTEM-CALL CREATE CLASS c.


Effect

A basic entry is created for class c.

Return Value

SY-SUBRC = 0:

Entry for class c successfully created.

Variant 2

SYSTEM-CALL CREATE METHOD m OF CLASS c INCLUDE INTO incl.


Addition:

... AS EXTENSION

Effect

Creates a method entry for method m in class c. The program name of the method include is returned in incl.

Return Value

SY-SUBRC = 0:

Entry for method m in class c successfully created.

SY-SUBRC = 4:

Entry for method m in class c already exists.

SY-SUBRC = 8:

Overflow. Unable to create any more method entries for class c.

Addition

... AS EXTENSION

Effect

If the optional addition AS EXTENSION is specified, the method is flagged as an enhancement method ( enhancement implementation element).

Variant 3

SYSTEM-CALL QUERY CLASS c.


Effect

The system checks whether there is a basic entry for class c.

Return Value

SY-SUBRC = 0:

Entry for class c exists.

SY-SUBRC = 4:

Entry for class c does not exist.

Variant 4

SYSTEM-CALL QUERY METHOD m OF CLASS c INCLUDE INTO incl.


Additions

1. ... NO DBLOCK

2. ... NO EXTENSIONS

Effect

The system checks whether a method entry exists for method m from class c. If it does, the program name of the related method include is returned in variable incl.

Return Value

SY-SUBRC = 0:

Entry for method m of class c exists.

SY-SUBRC = 4:

Entry for method m of class c does not exist.

Addition 1

... NO DBLOCK

Effect

If the optional addition NO DBLOCK is specified, the system does not set an update lock on class c.

Addition 2

... NO EXTENSIONS

Effect

If the optional addition NO EXTENSIONS is specified, the call only sets sy-subrc to 0 if the method searched for is not flagged as an enhancement method enhancement implementation element).

Variant 5

SYSTEM-CALL DELETE CLASS c.


Effect

Deletes the basic entry and all method entries for class c.

Return Value

SY-SUBRC = 0:

All entries for class c deleted.

Variant 6

SYSTEM-CALL DELETE METHOD m OF CLASS c.


Effect

Deletes the method entry for method m in class c.

Return Value

SY-SUBRC = 0:

Entry for method m in class c deleted.

SY-SUBRC = 4:

Entry for method m of class c does not exist.

Variant 7

SYSTEM-CALL RENAME CLASS c NEW NAME FROM c2.


Effect

Renames the basic entry and method entries for class c using the name c2.

Return Value

SY-SUBRC = 0:

Entries for class c renamed as c2.

SY-SUBRC = 4:

Basic entry for class c2 already exists.

Variant 8

SYSTEM-CALL RENAME METHOD m OF CLASS c NEW NAME FROM m2.


Effect

Renames the method entry m in class c using the new name m2.

Return Value

SY-SUBRC = 0:

Entry for method m from class c renamed as m2.

SY-SUBRC = 4:

Entry for method m2 in class c already exists.

SY-SUBRC = 8:

Entry for method m of class c does not exist.

Variant 9

SYSTEM-CALL QUERY METHOD INCLUDE FROM incl CLASS INTO c METHOD INTO m.


Addition:

... NO EXTENSIONS

Effect

The system checks whether or not a method entry exists for the method specified in the include name incl. If so, the class name is returned in the variable c and the method name in m.

Return Value

SY-SUBRC = 0:

Method derived from include name incl exists.

SY-SUBRC = 4:

Class derived from include name incl does not exist.

SY-SUBRC = 8:

Method derived from include name incl does not exist.

Addition

... NO EXTENSIONS

Effect

If the optional addition NO EXTENSIONS is specified, the call only sets sy-subrc to 0 if the method searched for is not flagged as an enhancement method enhancement implementation element).

Exceptions

Non-Catchable Exceptions

  • Cause: Basic entry for class c already exists.
    Runtime Error: TMDIR_CLASS_ALREADY_EXISTS
  • Cause: No basic entry for class c exists.
    Runtime Error: TMDIR_CLASS_NOT_EXISTS
  • Cause: A method entry with an method include number which is too large exists for class c.
    Runtime Error: TMDIR_TOO_MANY_RECORDS





BAL Application Log Documentation   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 11472 Date: 20240424 Time: 180745     sap01-206 ( 127 ms )