SELECT_BY_ID SAP Method Read Order Documents to Buffer (from Database)
Below is documentation, parameters and attributes of ABAP Method SELECT_BY_ID within SAP class /SCMB/CL_ODM_BUFFER_EXT. 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_ODM_BUFFER_EXT 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 SELECT_BY_ID can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SELECT_BY_ID
.| Name | Type | Data Type | Description | Default Value |
| IS_CTRL | Importing | TYPE /SCMB/ODM_CONTROL_GET | ODM: Components, Requested (GET) | |
| IT_ORDID | Importing | TYPE /SCMB/ODM_ORDID_STAB | ODM: Order Document Identification by ID | |
| IT_ORDNO | Importing | TYPE /SCMB/ODM_ORDNO_STAB | ODM: Order Document Identification by Number | |
| IT_ORDNO_RNG | Importing | TYPE /SCMB/ODM_ORDNO_RNG_TAB | ODM: Range of Valid Order Numbers | |
| IV_ALL | Importing | TYPE BOOLE_D | ODM: Deleted Orders Also? | |
| IV_COMPLETE_ORDER | Importing | TYPE /SCMB/ODM_COMPLETE_ORDER | ODM: Read Order Document Completely | |
| IV_LOCKFLG | Importing | TYPE /SCMB/ODM_LOCKFLG | ODM: Lock Order Document | |
| IV_ONLY_BUFFER | Importing | TYPE BOOLE_D | ODM: Read from Buffer Only | |
| ET_OBJHDR | Exporting | TYPE /SCMB/ODM_OOBJ_STAB | ODM: Order Document Buffer | |
| ET_OBJITM | Exporting | TYPE /SCMB/ODM_OOBJ_STAB | ODM: Order Document Buffer | |
| ET_OBJSDL | Exporting | TYPE /SCMB/ODM_OOBJ_STAB | ODM: Order Document Buffer |
Exceptions of Method SELECT_BY_ID
/SCMB/CX_ODM_ORTYPE - ODM: Order Document Type ErrorExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/CL_ODM_BUFFER_EXT.
DATA: lv_ET_OBJHDR TYPE /SCMB/ODM_OOBJ_STAB,
lv_ET_OBJITM TYPE /SCMB/ODM_OOBJ_STAB,
lv_ET_OBJSDL TYPE /SCMB/ODM_OOBJ_STAB,
lv_IS_CTRL TYPE /SCMB/ODM_CONTROL_GET,
lv_IT_ORDID TYPE /SCMB/ODM_ORDID_STAB,
lv_IT_ORDNO TYPE /SCMB/ODM_ORDNO_STAB,
lv_IT_ORDNO_RNG TYPE /SCMB/ODM_ORDNO_RNG_TAB,
lv_IV_ALL TYPE BOOLE_D,
lv_IV_COMPLETE_ORDER TYPE /SCMB/ODM_COMPLETE_ORDER,
lv_IV_LOCKFLG TYPE /SCMB/ODM_LOCKFLG,
lv_IV_ONLY_BUFFER TYPE BOOLE_D,
lv_other TYPE c.
CALL METHOD lo_class=>SELECT_BY_ID(
EXPORTING
IS_CTRL = lv_IS_CTRL
IT_ORDID = lv_IT_ORDID
IT_ORDNO = lv_IT_ORDNO
IT_ORDNO_RNG = lv_IT_ORDNO_RNG
IV_ALL = lv_IV_ALL
IV_COMPLETE_ORDER = lv_IV_COMPLETE_ORDER
IV_LOCKFLG = lv_IV_LOCKFLG
IV_ONLY_BUFFER = lv_IV_ONLY_BUFFER
IMPORTING
ET_OBJHDR = lv_ET_OBJHDR
ET_OBJITM = lv_ET_OBJITM
ET_OBJSDL = lv_ET_OBJSDL ).
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