Class ZCX_LLM_AUTHORIZATION
AI Generated documentation.
Overview
The ZCX_LLM_AUTHORIZATION
class is a custom exception class that inherits from CX_STATIC_CHECK
. It provides a set of constants and methods for handling authorization-related messages. The class is designed to be used in SAP ABAP applications.
Dependencies
The class depends on the following:
IF_T100_DYN_MSG
IF_T100_MESSAGE
CX_STATIC_CHECK
Details
Class Structure
class ZCX_LLM_AUTHORIZATION {
+-- CX_STATIC_CHECK
|
+-- IF_T100_DYN_MSG
+-- IF_T100_MESSAGE
|
+-- MSGV1
+-- MSGV2
}
Methods
The class has one public method:
CONSTRUCTOR
: This method is used to create an instance of the class. It takes two optional parameters:TEXTID
andPREVIOUS
. The method sets thetextid
attribute based on the providedTEXTID
parameter or uses the defaultIF_T100_MESSAGE
text ID if not provided.
Constants
The class defines three constants:
PROVIDER_MAINTENANCE
: This constant is used to handle maintenance-related messages.GET_CLIENT
: This constant is used to retrieve the client ID.DECRYPT
andENCRYPT
: These constants are used to handle encryption and decryption messages.
Logic Flow
The class uses the IF_T100_MESSAGE
interface to handle messages. The CONSTRUCTOR
method sets the textid
attribute based on the provided TEXTID
parameter or uses the default text ID if not provided. The class also uses the MSGV1
and MSGV2
data objects to store message values.
sequenceDiagram
participant A as ZCX_LLM_AUTHORIZATION
participant B as IF_T100_MESSAGE
participant C as CX_STATIC_CHECK
A->>B: Get text ID from parameter
B->>A: Return default text ID if not provided
A->>C: Set text ID
C->>A: Call constructor
A->>B: Get message values
B->>A: Return message values