FINAL SAP Method Ends the HMAC; last function for streams









Below is documentation, parameters and attributes of ABAP Method FINAL within SAP class CL_ABAP_HMAC. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_ABAP_HMAC into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method FINAL can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method FINAL

.

NameTypeData TypeDescriptionDefault Value
IF_DATAImportingTYPE
XSTRING
Data
IF_LENGTHImportingTYPE
I
Input length (0: strlen(data))
IF_OFFSETImportingTYPE
I
Offset of input (0: start)
EF_HMACB64STRINGExportingTYPE
STRING
HMAC value as base64-encoded string
EF_HMACSTRINGExportingTYPE
STRING
HMAC value as hex-encoded string
EF_HMACXSTRINGExportingTYPE
XSTRING
HMAC value in binary format as XString



Exceptions of Method FINAL

CX_ABAP_MESSAGE_DIGEST - Exception Class for Message Digest

Example ABAP coding


DATA: lo_class TYPE REF TO CL_ABAP_HMAC.
DATA: lv_EF_HMACB64STRING TYPE STRING,
lv_EF_HMACSTRING TYPE STRING,
lv_EF_HMACXSTRING TYPE XSTRING,
lv_IF_DATA TYPE XSTRING,
lv_IF_LENGTH TYPE I,
lv_IF_OFFSET TYPE I,
lv_other TYPE c.

CALL METHOD lo_class=>FINAL(
EXPORTING
IF_DATA = lv_IF_DATA
IF_LENGTH = lv_IF_LENGTH
IF_OFFSET = lv_IF_OFFSET
IMPORTING
EF_HMACB64STRING = lv_EF_HMACB64STRING
EF_HMACSTRING = lv_EF_HMACSTRING
EF_HMACXSTRING = lv_EF_HMACXSTRING ).

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!