ABAP OO Class Methods

READ_CRYPT SAP Method - Get Original Data







Below is documentation, parameters and attributes of ABAP Method READ_CRYPT within SAP class READ_ENCRYPTION. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name READ_ENCRYPTION into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class method belongs too

READ_ENCRYPTION

Method Name

READ_CRYPT

Method Type

Instance Method:   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.






Importing Parameters:

Below is a list of importing parameters associated with this method, including its name, description and data type


CONTROL " Control Record (IDoc) TYPE EDIDC
SEGNAM " Name of SAP segment TYPE EDILSEGTYP

Changing Parameters:


DATA_RECORD " Application Data TYPE EDI_SDATA
HAVE_TO_CHANGE " = 'X' - Adopt Changes TYPE CHAR1

Exceptions:



Example ABAP coding


DATA:
ld_CONTROL TYPE EDIDC ,
ld_SEGNAM TYPE EDILSEGTYP ,
ld_DATA_RECORD TYPE EDI_SDATA ,
ld_HAVE_TO_CHANGE TYPE CHAR1.

" ld_CONTROL = "
" ld_SEGNAM = "

DATA: lo_ENCRYPTION TYPE REF TO READ_ENCRYPTION .
CALL METHOD lo_ENCRYPTION->READ_CRYPT(
EXPORTING
CONTROL = ld_CONTROL
SEGNAM = ld_SEGNAM
CHANGING
DATA_RECORD = ld_DATA_RECORD
HAVE_TO_CHANGE = ld_HAVE_TO_CHANGE ).