CREATE_PERSISTENT SAP Method Generate New Persistent Object with Key









Below is documentation, parameters and attributes of ABAP Method CREATE_PERSISTENT within SAP class /SYCLO/CB_CORE_PERS_AP002. 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 /SYCLO/CB_CORE_PERS_AP002 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

.

NameTypeData TypeDescriptionDefault Value
I_ACTIVEImportingTYPE
/SYCLO/CORE_ACTIVE_FLAG_DTE
Persistent Attribute
I_CHANGED_BYImportingTYPE
/SYCLO/CORE_CHANGEDBY_DTE
Persistent Attribute
I_CHANGED_TSImportingTYPE
/SYCLO/CORE_CHANGEDTS_DTE
Persistent Attribute
I_CREATED_BYImportingTYPE
/SYCLO/CORE_CREATEDBY_DTE
Persistent Attribute
I_CREATED_TSImportingTYPE
/SYCLO/CORE_CREATEDTS_DTE
Persistent Attribute
I_DURATIONImportingTYPE
/SYCLO/CORE_DURATION_DTE
Persistent Attribute
I_EFFECTIVE_TSImportingTYPE
TIMESTAMP
Persistent Attribute
I_MOBILE_APPImportingTYPE
/SYCLO/CORE_MOBILE_APP_DTE
Persistent Attribute
I_PARAM_GROUPImportingTYPE
/SYCLO/CORE_PARAM_GRP_DTE
Persistent Attribute
I_PARAM_NAMEImportingTYPE
/SYCLO/CORE_MAPP_PARAM_NM_DTE
Persistent Attribute
I_PARAM_SCOPEImportingTYPE
/SYCLO/CORE_PARAM_SCOPE_DTE
Persistent Attribute
I_PARAM_TYPEImportingTYPE
/SYCLO/CORE_PARAM_TYPE_DTE
Persistent Attribute
I_PARAM_VALUEImportingTYPE
/SYCLO/CORE_PARAM_VAL_DTE
Persistent Attribute
I_RECORD_GUIDImportingTYPE
/SYCLO/CORE_RECORD_GUID_DTE
Business Key
I_USER_GUIDImportingTYPE
/SYCLO/CORE_USER_GUID_DTE
Persistent Attribute
RESULTReturningTYPE REF TO
/SYCLO/CL_CORE_PERS_AP002
Newly Generated Persistent Object



Exceptions of Method CREATE_PERSISTENT

CX_OS_OBJECT_EXISTING - Object Services Exception

Example ABAP coding


DATA: lo_class TYPE REF TO /SYCLO/CB_CORE_PERS_AP002.
DATA: lv_I_ACTIVE TYPE /SYCLO/CORE_ACTIVE_FLAG_DTE,
lv_I_CHANGED_BY TYPE /SYCLO/CORE_CHANGEDBY_DTE,
lv_I_CHANGED_TS TYPE /SYCLO/CORE_CHANGEDTS_DTE,
lv_I_CREATED_BY TYPE /SYCLO/CORE_CREATEDBY_DTE,
lv_I_CREATED_TS TYPE /SYCLO/CORE_CREATEDTS_DTE,
lv_I_DURATION TYPE /SYCLO/CORE_DURATION_DTE,
lv_I_EFFECTIVE_TS TYPE TIMESTAMP,
lv_I_MOBILE_APP TYPE /SYCLO/CORE_MOBILE_APP_DTE,
lv_I_PARAM_GROUP TYPE /SYCLO/CORE_PARAM_GRP_DTE,
lv_I_PARAM_NAME TYPE /SYCLO/CORE_MAPP_PARAM_NM_DTE,
lv_I_PARAM_SCOPE TYPE /SYCLO/CORE_PARAM_SCOPE_DTE,
lv_I_PARAM_TYPE TYPE /SYCLO/CORE_PARAM_TYPE_DTE,
lv_I_PARAM_VALUE TYPE /SYCLO/CORE_PARAM_VAL_DTE,
lv_I_RECORD_GUID TYPE /SYCLO/CORE_RECORD_GUID_DTE,
lv_I_USER_GUID TYPE /SYCLO/CORE_USER_GUID_DTE,
lv_RESULT TYPE /SYCLO/CL_CORE_PERS_AP002,
lv_other TYPE c.

CALL METHOD lo_class=>CREATE_PERSISTENT(
EXPORTING
I_ACTIVE = lv_I_ACTIVE
I_CHANGED_BY = lv_I_CHANGED_BY
I_CHANGED_TS = lv_I_CHANGED_TS
I_CREATED_BY = lv_I_CREATED_BY
I_CREATED_TS = lv_I_CREATED_TS
I_DURATION = lv_I_DURATION
I_EFFECTIVE_TS = lv_I_EFFECTIVE_TS
I_MOBILE_APP = lv_I_MOBILE_APP
I_PARAM_GROUP = lv_I_PARAM_GROUP
I_PARAM_NAME = lv_I_PARAM_NAME
I_PARAM_SCOPE = lv_I_PARAM_SCOPE
I_PARAM_TYPE = lv_I_PARAM_TYPE
I_PARAM_VALUE = lv_I_PARAM_VALUE
I_RECORD_GUID = lv_I_RECORD_GUID
I_USER_GUID = lv_I_USER_GUID
RECEIVING
RESULT = lv_RESULT )



"Alternate coding for Method Call with returning parameter
lv_RESULT = lo_class=>CREATE_PERSISTENT(
EXPORTING
I_ACTIVE = lv_I_ACTIVE
I_CHANGED_BY = lv_I_CHANGED_BY
I_CHANGED_TS = lv_I_CHANGED_TS
I_CREATED_BY = lv_I_CREATED_BY
I_CREATED_TS = lv_I_CREATED_TS
I_DURATION = lv_I_DURATION
I_EFFECTIVE_TS = lv_I_EFFECTIVE_TS
I_MOBILE_APP = lv_I_MOBILE_APP
I_PARAM_GROUP = lv_I_PARAM_GROUP
I_PARAM_NAME = lv_I_PARAM_NAME
I_PARAM_SCOPE = lv_I_PARAM_SCOPE
I_PARAM_TYPE = lv_I_PARAM_TYPE
I_PARAM_VALUE = lv_I_PARAM_VALUE
I_RECORD_GUID = lv_I_RECORD_GUID
I_USER_GUID = lv_I_USER_GUID ).

Links to Related Class(s)

/SYCLO/C...
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!