QTY_ADJUSTMENT SAP Method Adjust quantities
Below is documentation, parameters and attributes of ABAP Method QTY_ADJUSTMENT within SAP class /SCMTMS/CL_COMMON_HELPER. 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_COMMON_HELPER 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 QTY_ADJUSTMENT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method QTY_ADJUSTMENT
.| Name | Type | Data Type | Description | Default Value |
| IV_ITEM_BI_QTY | Importing | TYPE /SCMTMS/QUANTITY | Quantity | |
| IV_ITEM_BI_UNIT | Importing | TYPE MEINS | Base Unit of Measure | |
| IV_ITEM_QTY | Importing | TYPE /SCMTMS/QUANTITY | Quantity | |
| IV_ITEM_UNIT | Importing | TYPE MEINS | Base Unit of Measure | |
| IV_TARGET_QTY | Importing | TYPE /SCMTMS/QUANTITY | Quantity | |
| IV_TARGET_UNIT | Importing | TYPE MEINS | Base Unit of Measure | |
| EV_ARITHMETIC_ERROR | Exporting | TYPE ABAP_BOOL | ||
| EV_TARGET_QTY | Exporting | TYPE /SCMTMS/QUANTITY | Quantity | |
| EV_TARGET_UNIT | Exporting | TYPE MEINS | Base Unit of Measure |
Exceptions of Method QTY_ADJUSTMENT
This method does not have any exceptionsExample ABAP coding
DATA: lv_EV_ARITHMETIC_ERROR TYPE ABAP_BOOL,
lv_EV_TARGET_QTY TYPE /SCMTMS/QUANTITY,
lv_EV_TARGET_UNIT TYPE MEINS,
lv_IV_ITEM_BI_QTY TYPE /SCMTMS/QUANTITY,
lv_IV_ITEM_BI_UNIT TYPE MEINS,
lv_IV_ITEM_QTY TYPE /SCMTMS/QUANTITY,
lv_IV_ITEM_UNIT TYPE MEINS,
lv_IV_TARGET_QTY TYPE /SCMTMS/QUANTITY,
lv_IV_TARGET_UNIT TYPE MEINS,
lv_other TYPE c.
CALL METHOD /SCMTMS/CL_COMMON_HELPER=>QTY_ADJUSTMENT(
EXPORTING
IV_ITEM_BI_QTY = lv_IV_ITEM_BI_QTY
IV_ITEM_BI_UNIT = lv_IV_ITEM_BI_UNIT
IV_ITEM_QTY = lv_IV_ITEM_QTY
IV_ITEM_UNIT = lv_IV_ITEM_UNIT
IV_TARGET_QTY = lv_IV_TARGET_QTY
IV_TARGET_UNIT = lv_IV_TARGET_UNIT
IMPORTING
EV_ARITHMETIC_ERROR = lv_EV_ARITHMETIC_ERROR
EV_TARGET_QTY = lv_EV_TARGET_QTY
EV_TARGET_UNIT = lv_EV_TARGET_UNIT ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects