DETERMINE_TOTAL_WEIGHT SAP Method Determine total weight out of fixed and supplied weight









Below is documentation, parameters and attributes of ABAP Method DETERMINE_TOTAL_WEIGHT within SAP class /SCMB/CL_DIST_EMISSION_CALC. 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_DIST_EMISSION_CALC into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method DETERMINE_TOTAL_WEIGHT can also be found below:

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


Parameters of Method DETERMINE_TOTAL_WEIGHT

.

NameTypeData TypeDescriptionDefault Value
IV_WEIGHTImportingTYPE
/SCMB/DE_EMISSION_WEIGHT
Sustainability: Emissions relevant weight
IV_WEIGHT_FIXEDImportingTYPE
/SCMB/DE_EMISSION_WEIGHT_FIXED
Sustainability: Emissions relevant weight (fixed)
IV_WEIGHT_FIXED_UOMImportingTYPE
MSEHI
Unit of Measurement
IV_WEIGHT_UOMImportingTYPE
MSEHI
Unit of Measurement
RV_TOTAL_WEIGHTReturningTYPE
/SCMB/DE_EMISSION_WEIGHT
Sustainability: Emissions relevant weight



Exceptions of Method DETERMINE_TOTAL_WEIGHT

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMB/CL_DIST_EMISSION_CALC.
DATA: lv_IV_WEIGHT TYPE /SCMB/DE_EMISSION_WEIGHT,
lv_IV_WEIGHT_FIXED TYPE /SCMB/DE_EMISSION_WEIGHT_FIXED,
lv_IV_WEIGHT_FIXED_UOM TYPE MSEHI,
lv_IV_WEIGHT_UOM TYPE MSEHI,
lv_RV_TOTAL_WEIGHT TYPE /SCMB/DE_EMISSION_WEIGHT,
lv_other TYPE c.

CALL METHOD lo_class=>DETERMINE_TOTAL_WEIGHT(
EXPORTING
IV_WEIGHT = lv_IV_WEIGHT
IV_WEIGHT_FIXED = lv_IV_WEIGHT_FIXED
IV_WEIGHT_FIXED_UOM = lv_IV_WEIGHT_FIXED_UOM
IV_WEIGHT_UOM = lv_IV_WEIGHT_UOM
RECEIVING
RV_TOTAL_WEIGHT = lv_RV_TOTAL_WEIGHT )



"Alternate coding for Method Call with returning parameter
lv_RV_TOTAL_WEIGHT = lo_class=>DETERMINE_TOTAL_WEIGHT(
EXPORTING
IV_WEIGHT = lv_IV_WEIGHT
IV_WEIGHT_FIXED = lv_IV_WEIGHT_FIXED
IV_WEIGHT_FIXED_UOM = lv_IV_WEIGHT_FIXED_UOM
IV_WEIGHT_UOM = lv_IV_WEIGHT_UOM ).

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!