GET_SELECTED_ELEMENT SAP Method Gets GUID from External ID
Below is documentation, parameters and attributes of ABAP Method GET_SELECTED_ELEMENT within SAP class CL_DPR_UI_LOG_ENTRY. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.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_DPR_UI_LOG_ENTRY 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 GET_SELECTED_ELEMENT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_SELECTED_ELEMENT
.| Name | Type | Data Type | Description | Default Value |
| IV_CHECKLIST | Importing | TYPE DPR_TV_CHECKLIST_ID | Checklist Number | |
| IV_CP | Importing | TYPE DPR_TV_CP_CGPL_EXTID | Control Plan: External ID | |
| IV_CP_TEMPLATE | Importing | TYPE DPR_TV_CP_TEMPLATE_NAME | Control Plan Tempate Description | |
| IV_PROJECT | Importing | TYPE DPR_TV_PROJECT_ID | Project Number | |
| IV_USER_GROUP | Importing | TYPE STRING | ||
| IV_USER_GROUP_ID | Importing | TYPE STRING | User Group ID | |
| IV_VERSION | Importing | TYPE CGPL_TV_VERSION | Version Number | |
| IV_VERSION_TYPE | Importing | TYPE CGPL_TV_VERSION_TYPE | Version Type | |
| ES_SEL_ELEMENT | Exporting | TYPE DPR_TS_OBJ_EVENT | Table with Object Selection | |
| EV_CHECK_INITIATIVE | Exporting | TYPE ABAP_BOOL | Check on Initiative | |
| EV_FAILED | Exporting | TYPE ABAP_BOOL | Error While Creating | |
| EV_NOT_UNIQUE | Exporting | TYPE ABAP_BOOL | Not unique |
Exceptions of Method GET_SELECTED_ELEMENT
This method does not have any exceptionsExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO CL_DPR_UI_LOG_ENTRY.
DATA: lv_ES_SEL_ELEMENT TYPE DPR_TS_OBJ_EVENT,
lv_EV_CHECK_INITIATIVE TYPE ABAP_BOOL,
lv_EV_FAILED TYPE ABAP_BOOL,
lv_EV_NOT_UNIQUE TYPE ABAP_BOOL,
lv_IV_CHECKLIST TYPE DPR_TV_CHECKLIST_ID,
lv_IV_CP TYPE DPR_TV_CP_CGPL_EXTID,
lv_IV_CP_TEMPLATE TYPE DPR_TV_CP_TEMPLATE_NAME,
lv_IV_PROJECT TYPE DPR_TV_PROJECT_ID,
lv_IV_USER_GROUP TYPE STRING,
lv_IV_USER_GROUP_ID TYPE STRING,
lv_IV_VERSION TYPE CGPL_TV_VERSION,
lv_IV_VERSION_TYPE TYPE CGPL_TV_VERSION_TYPE,
lv_other TYPE c.
CALL METHOD lo_class=>GET_SELECTED_ELEMENT(
EXPORTING
IV_CHECKLIST = lv_IV_CHECKLIST
IV_CP = lv_IV_CP
IV_CP_TEMPLATE = lv_IV_CP_TEMPLATE
IV_PROJECT = lv_IV_PROJECT
IV_USER_GROUP = lv_IV_USER_GROUP
IV_USER_GROUP_ID = lv_IV_USER_GROUP_ID
IV_VERSION = lv_IV_VERSION
IV_VERSION_TYPE = lv_IV_VERSION_TYPE
IMPORTING
ES_SEL_ELEMENT = lv_ES_SEL_ELEMENT
EV_CHECK_INITIATIVE = lv_EV_CHECK_INITIATIVE
EV_FAILED = lv_EV_FAILED
EV_NOT_UNIQUE = lv_EV_NOT_UNIQUE ).
Links to Related Class(s)
CL_DPR_U...Full list of available SAP object classes
Search for further information about these or an SAP related objects