CREATE_PERSISTENT SAP Method Generate New Persistent Object
Below is documentation, parameters and attributes of ABAP Method CREATE_PERSISTENT within SAP class CB_POS_IDENTIFIER_DIF. 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 CB_POS_IDENTIFIER_DIF 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 CREATE_PERSISTENT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_PERSISTENT
.Name | Type | Data Type | Description | Default Value |
I_CONTEXT | Importing | TYPE DIF_IDENT_CONTEXT | Persistent Attribute | |
I_DIFF_VALUES | Importing | TYPE DIFS_DIFF_VALUES | Persistent Attribute | |
I_IDENTIFIED | Importing | TYPE REF TO OBJECT | Persistent Attribute | |
RESULT | Returning | TYPE REF TO CL_POS_IDENTIFIER_DIF | Newly Generated Persistent Object |
Exceptions of Method CREATE_PERSISTENT
CX_OS_OBJECT_EXISTING - Object Services ExceptionExample ABAP coding
DATA: lo_class TYPE REF TO CB_POS_IDENTIFIER_DIF.
DATA: lv_I_CONTEXT TYPE DIF_IDENT_CONTEXT,
lv_I_DIFF_VALUES TYPE DIFS_DIFF_VALUES,
lv_I_IDENTIFIED TYPE OBJECT,
lv_RESULT TYPE CL_POS_IDENTIFIER_DIF,
lv_other TYPE c.
CALL METHOD lo_class=>CREATE_PERSISTENT(
EXPORTING
I_CONTEXT = lv_I_CONTEXT
I_DIFF_VALUES = lv_I_DIFF_VALUES
I_IDENTIFIED = lv_I_IDENTIFIED
RECEIVING
RESULT = lv_RESULT )
"Alternate coding for Method Call with returning parameter
lv_RESULT = lo_class=>CREATE_PERSISTENT(
EXPORTING
I_CONTEXT = lv_I_CONTEXT
I_DIFF_VALUES = lv_I_DIFF_VALUES
I_IDENTIFIED = lv_I_IDENTIFIED ).
Links to Related Class(s)
CB_POS_I...Full list of available SAP object classes
Search for further information about these or an SAP related objects