DO_SELECTION SAP Method Do selection by different criteria
Below is documentation, parameters and attributes of ABAP Method DO_SELECTION within SAP class /SCMB/CL_ORG_UNIT_MGR. 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_ORG_UNIT_MGR 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 DO_SELECTION can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method DO_SELECTION
.| Name | Type | Data Type | Description | Default Value |
| IT_FUNCTION_CODE | Importing | TYPE TT_FUNCTION_CODES | Table of function codes | |
| IT_RANGES_EXT_ID | Importing | TYPE TT_EXTID_RANGES | Range of Ext IDs | |
| IT_ROLE_CODE | Importing | TYPE TT_ROLE_CODES | Table of role codes | |
| IV_GROUP_ID | Importing | TYPE /SCMB/ORG_EXT_ID | Object ID | |
| IV_OFFICE_ID | Importing | TYPE /SCMB/ORG_EXT_ID | Object ID | |
| IV_ORG_ID | Importing | TYPE /SCMB/ORG_EXT_ID | Object ID | |
| IV_REFD_ORG | Importing | TYPE /SCMB/REFERENCED_ORG | Referenced organizational unit | |
| IV_SEARCH_STRING | Importing | TYPE HROMSEARK | Search by Name | |
| ET_SEARCH_RESULT | Exporting | TYPE TT_SEARCH_RESULT | Table of search result | |
| EV_RETURN_CODE | Exporting | TYPE SYST-SUBRC | Return Value of ABAP Statements |
Exceptions of Method DO_SELECTION
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/CL_ORG_UNIT_MGR.
DATA: lv_ET_SEARCH_RESULT TYPE TT_SEARCH_RESULT,
lv_EV_RETURN_CODE TYPE SYST-SUBRC,
lv_IT_FUNCTION_CODE TYPE TT_FUNCTION_CODES,
lv_IT_RANGES_EXT_ID TYPE TT_EXTID_RANGES,
lv_IT_ROLE_CODE TYPE TT_ROLE_CODES,
lv_IV_GROUP_ID TYPE /SCMB/ORG_EXT_ID,
lv_IV_OFFICE_ID TYPE /SCMB/ORG_EXT_ID,
lv_IV_ORG_ID TYPE /SCMB/ORG_EXT_ID,
lv_IV_REFD_ORG TYPE /SCMB/REFERENCED_ORG,
lv_IV_SEARCH_STRING TYPE HROMSEARK,
lv_other TYPE c.
CALL METHOD lo_class=>DO_SELECTION(
EXPORTING
IT_FUNCTION_CODE = lv_IT_FUNCTION_CODE
IT_RANGES_EXT_ID = lv_IT_RANGES_EXT_ID
IT_ROLE_CODE = lv_IT_ROLE_CODE
IV_GROUP_ID = lv_IV_GROUP_ID
IV_OFFICE_ID = lv_IV_OFFICE_ID
IV_ORG_ID = lv_IV_ORG_ID
IV_REFD_ORG = lv_IV_REFD_ORG
IV_SEARCH_STRING = lv_IV_SEARCH_STRING
IMPORTING
ET_SEARCH_RESULT = lv_ET_SEARCH_RESULT
EV_RETURN_CODE = lv_EV_RETURN_CODE ).
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