ADJUST_ITEM_CAPACITY SAP Method Adapt capacity of items with special functions









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

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


Parameters of Method ADJUST_ITEM_CAPACITY

.

NameTypeData TypeDescriptionDefault Value
IS_TOR_ROOTImportingTYPE
/SCMTMS/S_TOR_ROOT_K
Root Node
IT_CMP_TYPE_CAPSTEPImportingTYPE
/SAPAPO/T_CTSTEP
Compartment Item Capacity Level
IT_MTR_COMBImportingTYPE
/SAPAPO/T_MTRCOMB
Means-of-Transport Combination
IT_MTR_COMB_CAPAImportingTYPE
/SCMTMS/CL_PLN_DATA_RESOURCE=>TY_MTRCOMP_CAP
Means of Transport Combination Capacity
IT_MTR_DECR_CAPAImportingTYPE
/SCMTMS/T_VSR_DECCA_MTR
MTr Specific Settings for Decreasing Capacities
IV_INTERMEDIATE_STOPSImportingTYPE
/SCMTMS/VSR_DECCAP_STOP_FR
Stop Range: Start
EV_MTRCOMBExportingTYPE
/SCMTMS/RES_MTR_COMB
Means-of-Transport Combination
CO_MESSAGEChangingTYPE REF TO
/BOBF/IF_FRW_MESSAGE
Interface of Message Object
CT_ITEMChangingTYPE
/SCMTMS/T_TOR_ITEM_TR_K
Transient node for items



Exceptions of Method ADJUST_ITEM_CAPACITY

This method does not have any exceptions

Example ABAP coding


DATA: lv_CO_MESSAGE TYPE /BOBF/IF_FRW_MESSAGE,
lv_CT_ITEM TYPE /SCMTMS/T_TOR_ITEM_TR_K,
lv_EV_MTRCOMB TYPE /SCMTMS/RES_MTR_COMB,
lv_IS_TOR_ROOT TYPE /SCMTMS/S_TOR_ROOT_K,
lv_IT_CMP_TYPE_CAPSTEP TYPE /SAPAPO/T_CTSTEP,
lv_IT_MTR_COMB TYPE /SAPAPO/T_MTRCOMB,
lv_IT_MTR_COMB_CAPA TYPE /SCMTMS/CL_PLN_DATA_RESOURCE=>TY_MTRCOMP_CAP,
lv_IT_MTR_DECR_CAPA TYPE /SCMTMS/T_VSR_DECCA_MTR,
lv_IV_INTERMEDIATE_STOPS TYPE /SCMTMS/VSR_DECCAP_STOP_FR,
lv_other TYPE c.

CALL METHOD /SCMTMS/CL_CAPA_CHECK_TOOLS=>ADJUST_ITEM_CAPACITY(
EXPORTING
IS_TOR_ROOT = lv_IS_TOR_ROOT
IT_CMP_TYPE_CAPSTEP = lv_IT_CMP_TYPE_CAPSTEP
IT_MTR_COMB = lv_IT_MTR_COMB
IT_MTR_COMB_CAPA = lv_IT_MTR_COMB_CAPA
IT_MTR_DECR_CAPA = lv_IT_MTR_DECR_CAPA
IV_INTERMEDIATE_STOPS = lv_IV_INTERMEDIATE_STOPS
IMPORTING
EV_MTRCOMB = lv_EV_MTRCOMB
CHANGING
CO_MESSAGE = lv_CO_MESSAGE
CT_ITEM = lv_CT_ITEM ).

Links to Related Class(s)

/SCMTMS/...
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!