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 Name | Description | Visability |
CALCULATE_HASH_FOR_CHAR | Generic hash function (char input) | Public |
CALL METHOD cl_abap_message_digest=>CALCULATE_HASH_FOR_CHAR...more details | ||
CALCULATE_HASH_FOR_RAW | Generic hash function (raw input) | Public |
CALL METHOD cl_abap_message_digest=>CALCULATE_HASH_FOR_RAW...more details | ||
CONSTRUCTOR | CONSTRUCTOR | Public |
CALL METHOD cl_abap_message_digest=>CONSTRUCTOR...more details | ||
DESTRUCTOR | C Destructor | Public |
CALL METHOD cl_abap_message_digest=>DESTRUCTOR...more details | ||
DIGEST | Ends the hash calculation. Last function for streams. | Public |
CALL METHOD cl_abap_message_digest=>DIGEST...more details | ||
EVAL_SYSRC | Evaluation of sy-subrc | Private |
CALL METHOD cl_abap_message_digest=>EVAL_SYSRC...more details | ||
| ||
GET_ALGORITHM | Returns the name of the hash algorithm | Public |
CALL METHOD cl_abap_message_digest=>GET_ALGORITHM...more details | ||
GET_DIGEST | Returns the digest as an XString | Public |
CALL METHOD cl_abap_message_digest=>GET_DIGEST...more details | ||
GET_DIGEST_LENGTH | Returns the length of the hash algorithm in bytes | Public |
CALL METHOD cl_abap_message_digest=>GET_DIGEST_LENGTH...more details | ||
GET_INSTANCE | Generates an instance of the object | Public |
CALL METHOD cl_abap_message_digest=>GET_INSTANCE...more details | ||
IS_EQUAL | Compares two hashes for equality | Public |
CALL METHOD cl_abap_message_digest=>IS_EQUAL...more details | ||
RESET | Sets the hash to initial status for recalculation | Public |
CALL METHOD cl_abap_message_digest=>RESET...more details | ||
STRING_TO_XSTRING | Addnl function: convert string to XString for calculation | Public |
CALL METHOD cl_abap_message_digest=>STRING_TO_XSTRING...more details | ||
TO_BASE64 | Returns the hash in base64 format | Public |
CALL METHOD cl_abap_message_digest=>TO_BASE64...more details | ||
TO_STRING | Returns the hash in string format | Public |
CALL METHOD cl_abap_message_digest=>TO_STRING...more details | ||
UPDATE | Updates the hash on the basis of the input data | Public |
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.
Name | Level | Description | Initial Value | Type | Visability |
CO_AB_IS_REQUESTED_C | Constant | IsRequested | 'X' | LIKE C | Private |
CO_AB_IS_REQUESTED_X | Constant | IsRequested | 88 | LIKE X | Private |
CO_AB_OPCODE_HASHBLOBEXT | Constant | Calculate hash | 14 | LIKE X | Private |
CO_AB_OPCODE_MESSAGEDIGEST | Constant | Operation Code | 15 | LIKE X | Private |
CO_AB_STATE_DELETE | Constant | Delete | 05 | LIKE X | Private |
CO_AB_STATE_FINAL | Constant | Final status | 03 | LIKE X | Private |
CO_AB_STATE_INFO | Constant | Information | 04 | LIKE X | Private |
CO_AB_STATE_INIT | Constant | Initial status | 01 | LIKE X | Private |
CO_AB_STATE_UPDATE | Constant | Update Status | 02 | LIKE X | Private |
CO_USE_CDESTRUCTOR | Constant | C Destructor | ' ' | LIKE C | Private |
M_ALGORITHM | Instance Attribute | Name of the algorithm | LIKE STRING | Private | |
M_DIGEST_LENGTH | Instance Attribute | Length of the digest in bytes | LIKE I | Private | |
M_POINTER | Instance Attribute | Internal Information | LIKE %_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