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 directly

The 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

.

NameTypeData TypeDescriptionDefault Value
IT_OREXTImportingTYPE
/SCMB/ODM_ORE_STAB
ODM: Extension (as Reference, Sorted)
IT_ORHDRImportingTYPE
/SCMB/ODM_ORH_STAB
ODM: Order Document Header (Sorted)
IT_ORITM2ImportingTYPE
/SCMB/ODM_ORI2_STAB
ODM: Order Item (Double-Level Document Type, Sorted)
IT_ORITM3ImportingTYPE
/SCMB/ODM_ORI3_STAB
ODM: Order Item (Triple-Level Document Type, Sorted)
IT_ORMAPImportingTYPE
/SCMB/ODM_ORM3_STAB
ODM: Mapping (Triple-Level Document Type, Sorted)
IT_ORREFImportingTYPE
/SCMB/ODM_ORR_STAB
ODM: Order Document Reference (Sorted)
IT_ORSDLImportingTYPE
/SCMB/ODM_ORS_STAB
ODM: Order Document Schedule Line (Sorted)
IV_CHGMODEImportingTYPE
/SCMB/ODM_CHGMODE
ODM: Change Mode
IV_INIT_NEEDLESSImportingTYPE
XFELD
No Document Type Initialization Necessary
IV_LOCKFLGImportingTYPE
/SCMB/ODM_LOCKFLG
ODM: Lock Order Document
IV_RELIABILITYImportingTYPE
/SCMB/ODM_RELIABILITY
ODM: Reliability of GUIDs
IV_VIRTUALImportingTYPE
/SCMB/ODM_VIRTUAL
ODM: Temporary IDs
IV_VRSIOIDImportingTYPE
/SCMB/ODM_VRSIOID
ET_MAPPINGExportingTYPE
/SCMB/ODM_MAPPING_TAB
ODM: Translation from External to Internal ID
ET_OBJHDRExportingTYPE
/SCMB/ODM_OOBJ_STAB
ET_OBJITMExportingTYPE
/SCMB/ODM_OOBJ_STAB
ET_OBJSDLExportingTYPE
/SCMB/ODM_OOBJ_STAB
CT_ORTYPEChangingTYPE
/SCMB/ODM_BUFFER_ORTYPE_STAB
CT_SCOPEChangingTYPE
/SCMB/ODM_OOBJ_SCOPE_STAB



Exceptions of Method CREATE

/SCMB/CX_ODM_ORTYPE - ODM: Order Document Type Error

Example 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!