Ansicht
Dokumentation

OIB_QCI_CONVERSION_SIMPLE_RFC - Function module to convert a quantity between two units of measure

OIB_QCI_CONVERSION_SIMPLE_RFC - Function module to convert a quantity between two units of measure

ABAP Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module can be utilized to convert a given quantity I_QUANTITY (floating point format) to the corresponding quantity E_QUANTITY (floating point format) for a requested target unit of measure I_TARGETUOM. You have to pass the source unit of measure(I_UOM) and quantity (I_QUANTITY) ( floating point format) and the target unit of measure(I_TARGETUOM) to the function module.

The function module is RFC enabled. The function checks if a conversion group for which a conversion is requested has been released for such a remote function call. The function module is currently NOT released for customers.

SAP does not deliver any function groups that are released for RFC access. Customers may want to do so in their system after they have verified that no license agreement will be violated by doing so (e.g. with providers of third party software products for quantity conversion).

Depending on the complexity of the conversion, you have to provide the following additional information:

For an HPM material (MARA-CMETH = '1'), you may have to pass the parameter structure I_PARAMETERS( OIB_A04 ). Use function module OIB_QCI_READ_CONV_PARAMETERS "Read HPM conversion default parameters" to determine these or fill the parameters "by hand" from your application. The parameters are required as soon as the logic decides that a call to the QCI has to be performed and the API c-codes are called.
For a standard material (MARA-CMETH = ' ') or TDP (Excise duty relevant only) material (MARA-CMETH = '2'), the conversion group is not required and will be ignored and the parameters are also not relevant. For these materials you have to pass the material number ( I_MATERIAL ) information.

If you pass the conversion group AND material number information, the conversion group data will be adjusted based on the material and plant data before the conversion is performed. For HPM materials, the plant data has to be passed then as well in order to allow to check that the data is consistent.

Example

Notes

Further information





Parameters

ET_RETURN
E_QUANTITY
IT_PARAMETERS
I_BATCH
I_CONVERSIONGROUP
I_MATERIAL
I_MATERIAL_LONG
I_PARAMETERS
I_PLANT
I_QUANTITY
I_STANDARDCALC
I_TARGETUOM
I_UOM

Exceptions

Function Group

OIB_QCI_SERVICES_RFC

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2639 Date: 20240523 Time: 140636     sap01-206 ( 68 ms )