COPY_VERSION_BLOCK SAP Method Copies Order Document Data from One Version into Another









Below is documentation, parameters and attributes of ABAP Method COPY_VERSION_BLOCK within SAP class /SCMB/CL_ODM_DATA. 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_DATA 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 COPY_VERSION_BLOCK can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method COPY_VERSION_BLOCK

.

NameTypeData TypeDescriptionDefault Value
IO_ORDA_TOImportingTYPE REF TO
/SCMB/CL_ODM_ORDA
IT_ORDID_FROMImportingTYPE
/SCMB/ODM_ORDID_STAB
IV_COPY_TRACKINGImportingTYPE
/SCMB/ODM_HISTGENFLG
IV_DELETE_SOURCEImportingTYPE
XFELD
'MOVE'
IV_NO_UPDATE_TASKImportingTYPE
/SCMB/ODM_SYNCFLG
ODM: Synchronous Update (No Update Task)
IV_ORTYPE_TOImportingTYPE
/SCMB/ODM_ORTYPE
IV_VRSIOID_FROMImportingTYPE
/SCMB/ODM_VRSIOID
IV_VRSIOID_TOImportingTYPE
/SCMB/ODM_VRSIOID
CS_STATISTICChangingTYPE
/SCMB/ODM_STATISTIC



Exceptions of Method COPY_VERSION_BLOCK

/SCMB/CX_ODM_ORTYPE - ODM: Order Document Type Error

Example 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_CS_STATISTIC TYPE /SCMB/ODM_STATISTIC,
lv_IO_ORDA_TO TYPE /SCMB/CL_ODM_ORDA,
lv_IT_ORDID_FROM TYPE /SCMB/ODM_ORDID_STAB,
lv_IV_COPY_TRACKING TYPE /SCMB/ODM_HISTGENFLG,
lv_IV_DELETE_SOURCE TYPE XFELD,
lv_IV_NO_UPDATE_TASK TYPE /SCMB/ODM_SYNCFLG,
lv_IV_ORTYPE_TO TYPE /SCMB/ODM_ORTYPE,
lv_IV_VRSIOID_FROM TYPE /SCMB/ODM_VRSIOID,
lv_IV_VRSIOID_TO TYPE /SCMB/ODM_VRSIOID,
lv_other TYPE c.

CALL METHOD /SCMB/CL_ODM_DATA=>COPY_VERSION_BLOCK(
EXPORTING
IO_ORDA_TO = lv_IO_ORDA_TO
IT_ORDID_FROM = lv_IT_ORDID_FROM
IV_COPY_TRACKING = lv_IV_COPY_TRACKING
IV_DELETE_SOURCE = lv_IV_DELETE_SOURCE
IV_NO_UPDATE_TASK = lv_IV_NO_UPDATE_TASK
IV_ORTYPE_TO = lv_IV_ORTYPE_TO
IV_VRSIOID_FROM = lv_IV_VRSIOID_FROM
IV_VRSIOID_TO = lv_IV_VRSIOID_TO
CHANGING
CS_STATISTIC = lv_CS_STATISTIC ).

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!