CONVERT_QUANTITY SAP Method Convert Quantity









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

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


Parameters of Method CONVERT_QUANTITY

.

NameTypeData TypeDescriptionDefault Value
IS_KOMKImportingTYPE
KOMK
Communication Header for Pricing
IS_KOMPImportingTYPE
KOMP
Communication Item for Pricing
IS_KOMVImportingTYPE
KOMV
Pricing Communications-Condition Record
IV_QUANTITY_INImportingTYPE
CPF_NUMBER
Number
IV_UNIT_INImportingTYPE
KMEIN
Condition unit
IV_UNIT_OUTImportingTYPE
KMEIN
Condition unit
EV_QUANTITY_OUTExportingTYPE
CPF_NUMBER
Number



Exceptions of Method CONVERT_QUANTITY

CX_PRICING_CONVERSION_ERROR - Exception Class for Pricing Conversion

Example ABAP coding


DATA: lv_EV_QUANTITY_OUT TYPE CPF_NUMBER,
lv_IS_KOMK TYPE KOMK,
lv_IS_KOMP TYPE KOMP,
lv_IS_KOMV TYPE KOMV,
lv_IV_QUANTITY_IN TYPE CPF_NUMBER,
lv_IV_UNIT_IN TYPE KMEIN,
lv_IV_UNIT_OUT TYPE KMEIN,
lv_other TYPE c.

CALL METHOD IF_PRICING_CONVERSION_BADI=>CONVERT_QUANTITY(
EXPORTING
IS_KOMK = lv_IS_KOMK
IS_KOMP = lv_IS_KOMP
IS_KOMV = lv_IS_KOMV
IV_QUANTITY_IN = lv_IV_QUANTITY_IN
IV_UNIT_IN = lv_IV_UNIT_IN
IV_UNIT_OUT = lv_IV_UNIT_OUT
IMPORTING
EV_QUANTITY_OUT = lv_EV_QUANTITY_OUT ).

Links to Related Class(s)

IF_PRICI...
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!