CREATE SAP Method Create Order Document Objects
Below is documentation, parameters and attributes of ABAP Method CREATE within SAP class /SCMB/CL_ODMO. 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_ODMO 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 CREATE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE
.| Name | Type | Data Type | Description | Default Value |
| IT_OREXT | Importing | TYPE /SCMB/ODM_ORE_STAB | ODM: Extension (as Reference, Sorted) | |
| IT_ORHDR | Importing | TYPE /SCMB/ODM_ORH_STAB | ODM: Order Document Header (Sorted) | |
| IT_ORITM2 | Importing | TYPE /SCMB/ODM_ORI2_STAB | ODM: Order Item (Double-Level Document Type, Sorted) | |
| IT_ORITM3 | Importing | TYPE /SCMB/ODM_ORI3_STAB | ODM: Order Item (Triple-Level Document Type, Sorted) | |
| IT_ORMAP | Importing | TYPE /SCMB/ODM_ORM3_STAB | ODM: Mapping (Triple-Level Document Type, Sorted) | |
| IT_ORREF | Importing | TYPE /SCMB/ODM_ORR_STAB | ODM: Order Document Reference (Sorted) | |
| IT_ORSDL | Importing | TYPE /SCMB/ODM_ORS_STAB | ODM: Order Document Schedule Line (Sorted) | |
| IV_CHGMODE | Importing | TYPE /SCMB/ODM_CHGMODE | ODM: Change Mode | |
| IV_INIT_NEEDLESS | Importing | TYPE XFELD | No Document Type Initialization Necessary | |
| IV_LOCKFLG | Importing | TYPE /SCMB/ODM_LOCKFLG | ODM: Lock Order Document | |
| IV_RELIABILITY | Importing | TYPE /SCMB/ODM_RELIABILITY | ODM: Reliability of GUIDs | |
| IV_VIRTUAL | Importing | TYPE /SCMB/ODM_VIRTUAL | ODM: Temporary IDs | |
| IV_VRSIOID | Importing | TYPE /SCMB/ODM_VRSIOID | ||
| ET_MAPPING | Exporting | TYPE /SCMB/ODM_MAPPING_TAB | ODM: Translation from External to Internal ID | |
| ET_OBJHDR | Exporting | TYPE /SCMB/ODM_OOBJ_STAB | ||
| ET_OBJITM | Exporting | TYPE /SCMB/ODM_OOBJ_STAB | ||
| ET_OBJSDL | Exporting | TYPE /SCMB/ODM_OOBJ_STAB | ||
| CT_ORTYPE | Changing | TYPE /SCMB/ODM_BUFFER_ORTYPE_STAB | ||
| CT_SCOPE | Changing | TYPE /SCMB/ODM_OOBJ_SCOPE_STAB |
Exceptions of Method CREATE
/SCMB/CX_ODM_ORTYPE - ODM: Order Document Type ErrorExample ABAP coding
DATA: lv_CT_ORTYPE TYPE /SCMB/ODM_BUFFER_ORTYPE_STAB,
lv_CT_SCOPE TYPE /SCMB/ODM_OOBJ_SCOPE_STAB,
lv_ET_MAPPING TYPE /SCMB/ODM_MAPPING_TAB,
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_IT_OREXT TYPE /SCMB/ODM_ORE_STAB,
lv_IT_ORHDR TYPE /SCMB/ODM_ORH_STAB,
lv_IT_ORITM2 TYPE /SCMB/ODM_ORI2_STAB,
lv_IT_ORITM3 TYPE /SCMB/ODM_ORI3_STAB,
lv_IT_ORMAP TYPE /SCMB/ODM_ORM3_STAB,
lv_IT_ORREF TYPE /SCMB/ODM_ORR_STAB,
lv_IT_ORSDL TYPE /SCMB/ODM_ORS_STAB,
lv_IV_CHGMODE TYPE /SCMB/ODM_CHGMODE,
lv_IV_INIT_NEEDLESS TYPE XFELD,
lv_IV_LOCKFLG TYPE /SCMB/ODM_LOCKFLG,
lv_IV_RELIABILITY TYPE /SCMB/ODM_RELIABILITY,
lv_IV_VIRTUAL TYPE /SCMB/ODM_VIRTUAL,
lv_IV_VRSIOID TYPE /SCMB/ODM_VRSIOID,
lv_other TYPE c.
CALL METHOD /SCMB/CL_ODMO=>CREATE(
EXPORTING
IT_OREXT = lv_IT_OREXT
IT_ORHDR = lv_IT_ORHDR
IT_ORITM2 = lv_IT_ORITM2
IT_ORITM3 = lv_IT_ORITM3
IT_ORMAP = lv_IT_ORMAP
IT_ORREF = lv_IT_ORREF
IT_ORSDL = lv_IT_ORSDL
IV_CHGMODE = lv_IV_CHGMODE
IV_INIT_NEEDLESS = lv_IV_INIT_NEEDLESS
IV_LOCKFLG = lv_IV_LOCKFLG
IV_RELIABILITY = lv_IV_RELIABILITY
IV_VIRTUAL = lv_IV_VIRTUAL
IV_VRSIOID = lv_IV_VRSIOID
IMPORTING
ET_MAPPING = lv_ET_MAPPING
ET_OBJHDR = lv_ET_OBJHDR
ET_OBJITM = lv_ET_OBJITM
ET_OBJSDL = lv_ET_OBJSDL
CHANGING
CT_ORTYPE = lv_CT_ORTYPE
CT_SCOPE = lv_CT_SCOPE ).
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