DETERMINE_MAT_ALT_QUANTITY SAP Method Determine most specific Alternative Quantity for Material









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

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


Parameters of Method DETERMINE_MAT_ALT_QUANTITY

.

NameTypeData TypeDescriptionDefault Value
IRS_MATERIAL_HIERARCHYImportingTYPE REF TO
/SCMB/IF_PB_DATA=>TY_S_MATERIAL_HIERARCHY
IV_UOMImportingTYPE
/SCMB/PB_PKG_UOM
Package Type
ERS_ALT_QUANTITYExportingTYPE REF TO
/SCMB/IF_PB_DATA=>TY_S_MATERIAL_ALT_QUANT
ERS_ALT_QUANTITYExportingTYPE REF TO
/SCMB/IF_PB_DATA=>TY_S_MATERIAL_ALT_QUANT
Requested UoM quantity definition
ERS_UOM_SOURCE_MATERIALExportingTYPE REF TO
/SCMB/IF_PB_DATA=>TY_S_MATERIAL_HIERARCHY
Material where requested UoM definition is maintained



Exceptions of Method DETERMINE_MAT_ALT_QUANTITY

This method does not have any exceptions

Example ABAP coding


DATA: lv_ERS_ALT_QUANTITY TYPE /SCMB/IF_PB_DATA=>TY_S_MATERIAL_ALT_QUANT,
lv_IRS_MATERIAL_HIERARCHY TYPE /SCMB/IF_PB_DATA=>TY_S_MATERIAL_HIERARCHY,
lv_IV_UOM TYPE /SCMB/PB_PKG_UOM,
lv_ERS_ALT_QUANTITY TYPE /SCMB/IF_PB_DATA=>TY_S_MATERIAL_ALT_QUANT,
lv_ERS_UOM_SOURCE_MATERIAL TYPE /SCMB/IF_PB_DATA=>TY_S_MATERIAL_HIERARCHY,
lv_other TYPE c.

CALL METHOD /SCMB/CL_PB_DATA=>DETERMINE_MAT_ALT_QUANTITY(
EXPORTING
IRS_MATERIAL_HIERARCHY = lv_IRS_MATERIAL_HIERARCHY
IV_UOM = lv_IV_UOM
IMPORTING
ERS_ALT_QUANTITY = lv_ERS_ALT_QUANTITY
ERS_ALT_QUANTITY = lv_ERS_ALT_QUANTITY
ERS_UOM_SOURCE_MATERIAL = lv_ERS_UOM_SOURCE_MATERIAL ).

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!