SAP CL_ABAP_MESSAGE_DIGEST OO Class - Cryptographic Hash Value of a Message









CL_ABAP_MESSAGE_DIGEST is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_MESSAGE_DIGEST including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events



Method list of CL_ABAP_MESSAGE_DIGEST SAP class


A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD. Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...


Method NameDescriptionVisability
CALCULATE_HASH_FOR_CHARGeneric hash function (char input)Public
CALL METHOD cl_abap_message_digest=>CALCULATE_HASH_FOR_CHAR...more details

CALCULATE_HASH_FOR_RAWGeneric hash function (raw input)Public
CALL METHOD cl_abap_message_digest=>CALCULATE_HASH_FOR_RAW...more details

CONSTRUCTORCONSTRUCTORPublic
CALL METHOD cl_abap_message_digest=>CONSTRUCTOR...more details

DESTRUCTORC DestructorPublic
CALL METHOD cl_abap_message_digest=>DESTRUCTOR...more details

DIGESTEnds the hash calculation. Last function for streams.Public
CALL METHOD cl_abap_message_digest=>DIGEST...more details

EVAL_SYSRCEvaluation of sy-subrcPrivate
CALL METHOD cl_abap_message_digest=>EVAL_SYSRC...more details

GET_ALGORITHMReturns the name of the hash algorithmPublic
CALL METHOD cl_abap_message_digest=>GET_ALGORITHM...more details

GET_DIGESTReturns the digest as an XStringPublic
CALL METHOD cl_abap_message_digest=>GET_DIGEST...more details

GET_DIGEST_LENGTHReturns the length of the hash algorithm in bytesPublic
CALL METHOD cl_abap_message_digest=>GET_DIGEST_LENGTH...more details

GET_INSTANCEGenerates an instance of the objectPublic
CALL METHOD cl_abap_message_digest=>GET_INSTANCE...more details

IS_EQUALCompares two hashes for equalityPublic
CALL METHOD cl_abap_message_digest=>IS_EQUAL...more details

RESETSets the hash to initial status for recalculationPublic
CALL METHOD cl_abap_message_digest=>RESET...more details

STRING_TO_XSTRINGAddnl function: convert string to XString for calculationPublic
CALL METHOD cl_abap_message_digest=>STRING_TO_XSTRING...more details

TO_BASE64Returns the hash in base64 formatPublic
CALL METHOD cl_abap_message_digest=>TO_BASE64...more details

TO_STRINGReturns the hash in string formatPublic
CALL METHOD cl_abap_message_digest=>TO_STRING...more details

UPDATEUpdates the hash on the basis of the input dataPublic
CALL METHOD cl_abap_message_digest=>UPDATE...more details



CL_ABAP_MESSAGE_DIGEST attributes

List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.

NameLevelDescriptionInitial ValueTypeVisability
CO_AB_IS_REQUESTED_CConstantIsRequested'X'LIKE
C
Private
CO_AB_IS_REQUESTED_XConstantIsRequested88LIKE
X
Private
CO_AB_OPCODE_HASHBLOBEXTConstantCalculate hash14LIKE
X
Private
CO_AB_OPCODE_MESSAGEDIGESTConstantOperation Code15LIKE
X
Private
CO_AB_STATE_DELETEConstantDelete05LIKE
X
Private
CO_AB_STATE_FINALConstantFinal status03LIKE
X
Private
CO_AB_STATE_INFOConstantInformation04LIKE
X
Private
CO_AB_STATE_INITConstantInitial status01LIKE
X
Private
CO_AB_STATE_UPDATEConstantUpdate Status02LIKE
X
Private
CO_USE_CDESTRUCTORConstantC Destructor' 'LIKE
C
Private
M_ALGORITHMInstance AttributeName of the algorithmLIKE
STRING
Private
M_DIGEST_LENGTHInstance AttributeLength of the digest in bytesLIKE
I
Private
M_POINTERInstance AttributeInternal InformationLIKE
%_C_POINTER
Private


Links to Related Class(s)

CL_ABAP_...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!