RESTORE SAP Method Deserialize JSON to ABAP









Below is documentation, parameters and attributes of ABAP Method RESTORE within SAP class /SCMB/CL_GIS_JSON_UTIL. 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 /SCMB/CL_GIS_JSON_UTIL 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 RESTORE can also be found below:

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


Parameters of Method RESTORE

.

NameTypeData TypeDescriptionDefault Value
FIELD_CACHEImportingTYPE
T_T_FIELD_CACHE
Field Cache
JSONImportingTYPE
JSON
JSON string
LENGTHImportingTYPE
I
Length of JSON string
TYPE_DESCRImportingTYPE REF TO
CL_ABAP_TYPEDESCR
Runtime Type Services
FIELD_CACHEImportingTYPE
T_T_FIELD_CACHE
JSONImportingTYPE
JSON
LENGTHImportingTYPE
I
TYPE_DESCRImportingTYPE REF TO
CL_ABAP_TYPEDESCR
DATAChangingTYPE
DATA
Data to serialize
OFFSETChangingTYPE
I
Ofsset in JSON string
DATAChangingTYPE
DATA
OFFSETChangingTYPE
I



Exceptions of Method RESTORE

CX_SY_MOVE_CAST_ERROR -

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMB/CL_GIS_JSON_UTIL.
DATA: lv_DATA TYPE DATA,
lv_FIELD_CACHE TYPE T_T_FIELD_CACHE,
lv_JSON TYPE JSON,
lv_LENGTH TYPE I,
lv_OFFSET TYPE I,
lv_TYPE_DESCR TYPE CL_ABAP_TYPEDESCR,
lv_DATA TYPE DATA,
lv_FIELD_CACHE TYPE T_T_FIELD_CACHE,
lv_JSON TYPE JSON,
lv_LENGTH TYPE I,
lv_OFFSET TYPE I,
lv_TYPE_DESCR TYPE CL_ABAP_TYPEDESCR,
lv_other TYPE c.

CALL METHOD lo_class=>RESTORE(
EXPORTING
FIELD_CACHE = lv_FIELD_CACHE
JSON = lv_JSON
LENGTH = lv_LENGTH
TYPE_DESCR = lv_TYPE_DESCR
FIELD_CACHE = lv_FIELD_CACHE
JSON = lv_JSON
LENGTH = lv_LENGTH
TYPE_DESCR = lv_TYPE_DESCR
CHANGING
DATA = lv_DATA
OFFSET = lv_OFFSET
DATA = lv_DATA
OFFSET = lv_OFFSET ).

Links to Related Class(s)

/SCMB/CL...
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!