READ_BY_ID SAP Method Read Order Documents Completely, Selection by IDs
Below is documentation, parameters and attributes of ABAP Method READ_BY_ID within SAP class /SCMB/CL_ODM. 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 /SCMB/CL_ODM into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method READ_BY_ID can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method READ_BY_ID
.| Name | Type | Data Type | Description | Default Value |
| IS_CTRL | Importing | TYPE /SCMB/ODM_CONTROL_GET | ODM: Components, Requested (GET) | |
| IT_OR_GRP_ORDA | Importing | TYPE /SCMB/ODM_ORDID_GRP_OORDA_TAB | Order Documents, Grouped According to Order Data Area | |
| IV_CORRECT_VRSIO | Importing | TYPE XFELD | Version ID: Correctly Filled in Separate Versions | |
| IV_MAPPING_ALIGNED | Importing | TYPE /SCMB/ODM_MAPPING_ALIGNED | Only Read Mapping Entries for Components Requested | |
| IV_RELEVANT_MAPPINGS | Importing | TYPE XFELD | Select the mapping records for the IDs (hdr, itm, sdln) | |
| IV_VRSIOID | Importing | TYPE /SCMB/ODM_VRSIOID | ODM: Version | |
| ET_OREXT | Exporting | TYPE /SCMB/ODM_ORE_STAB | ODM: Extension (as Reference, Sorted) | |
| ET_ORHDR | Exporting | TYPE /SCMB/ODM_ORH_STAB | ODM: Order Document Header (Sorted) | |
| ET_ORITM | Exporting | TYPE SORTED TABLE | ODM: Order Item (Double/Triple-Level Order Type, Sorted) | |
| ET_ORMAP | Exporting | TYPE SORTED TABLE | ODM: Mapping (Single to Triple-Level Document Types, Sorted) | |
| ET_ORREF | Exporting | TYPE /SCMB/ODM_ORR_STAB | ODM: Order Document Reference (Sorted) | |
| ET_ORSDL | Exporting | TYPE /SCMB/ODM_ORS_STAB | ODM: Order Document Schedule Line (Sorted) |
Exceptions of Method READ_BY_ID
/SCMB/CX_ODM_ORDTYPE - ODM: Order Data Type ErrorExample 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: lv_ET_OREXT TYPE /SCMB/ODM_ORE_STAB,
lv_ET_ORHDR TYPE /SCMB/ODM_ORH_STAB,
lv_ET_ORITM TYPE SORTED TABLE,
lv_ET_ORMAP TYPE SORTED TABLE,
lv_ET_ORREF TYPE /SCMB/ODM_ORR_STAB,
lv_ET_ORSDL TYPE /SCMB/ODM_ORS_STAB,
lv_IS_CTRL TYPE /SCMB/ODM_CONTROL_GET,
lv_IT_OR_GRP_ORDA TYPE /SCMB/ODM_ORDID_GRP_OORDA_TAB,
lv_IV_CORRECT_VRSIO TYPE XFELD,
lv_IV_MAPPING_ALIGNED TYPE /SCMB/ODM_MAPPING_ALIGNED,
lv_IV_RELEVANT_MAPPINGS TYPE XFELD,
lv_IV_VRSIOID TYPE /SCMB/ODM_VRSIOID,
lv_other TYPE c.
CALL METHOD /SCMB/CL_ODM=>READ_BY_ID(
EXPORTING
IS_CTRL = lv_IS_CTRL
IT_OR_GRP_ORDA = lv_IT_OR_GRP_ORDA
IV_CORRECT_VRSIO = lv_IV_CORRECT_VRSIO
IV_MAPPING_ALIGNED = lv_IV_MAPPING_ALIGNED
IV_RELEVANT_MAPPINGS = lv_IV_RELEVANT_MAPPINGS
IV_VRSIOID = lv_IV_VRSIOID
IMPORTING
ET_OREXT = lv_ET_OREXT
ET_ORHDR = lv_ET_ORHDR
ET_ORITM = lv_ET_ORITM
ET_ORMAP = lv_ET_ORMAP
ET_ORREF = lv_ET_ORREF
ET_ORSDL = lv_ET_ORSDL ).
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