SAP OIB_QCI_QUANTITY_CONTROL Function Module for QCI: Quantity Conversion Interface Control Module









OIB_QCI_QUANTITY_CONTROL is a standard oib qci quantity control SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for QCI: Quantity Conversion Interface Control Module processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for oib qci quantity control FM, simply by entering the name OIB_QCI_QUANTITY_CONTROL into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIB_QCI
Program Name: SAPLOIB_QCI
Main Program: SAPLOIB_QCI
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function OIB_QCI_QUANTITY_CONTROL pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'OIB_QCI_QUANTITY_CONTROL'"QCI: Quantity Conversion Interface Control Module
TABLES
T_QT2TAB = "Quantity table
T_PARAM = "Parameter table
* T_RETURN = "Collection of messages

EXCEPTIONS
CALCULATION_FAILURE = 1 CALCULATION_OVERFLOW = 2 TRANS_UOM_NOT_FOUND = 3 UNIT_CONVERSION_ERROR = 4 WINDOW_CANCELLED = 5 INCONSISTENT_DATA = 6 OUT_OF_RANGE = 7 INCONSISTENT_CUSTOMIZING = 8
.



TABLES Parameters details for OIB_QCI_QUANTITY_CONTROL

T_QT2TAB - Quantity table

Data type: OIB_A05
Optional: No
Call by Reference: Yes

T_PARAM - Parameter table

Data type: OIB_A10
Optional: No
Call by Reference: Yes

T_RETURN - Collection of messages

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

CALCULATION_FAILURE - self explanatory

Data type:
Optional: No
Call by Reference: Yes

CALCULATION_OVERFLOW - Resulting quantity is beyond maximum value

Data type:
Optional: No
Call by Reference: Yes

TRANS_UOM_NOT_FOUND - self explanatory

Data type:
Optional: No
Call by Reference: Yes

UNIT_CONVERSION_ERROR - self explanatory

Data type:
Optional: No
Call by Reference: Yes

WINDOW_CANCELLED - Dialog processing: User has cancelled the dialog box

Data type:
Optional: No
Call by Reference: Yes

INCONSISTENT_DATA - self explanatory

Data type:
Optional: No
Call by Reference: Yes

OUT_OF_RANGE - Parameters are out of range

Data type:
Optional: No
Call by Reference: Yes

INCONSISTENT_CUSTOMIZING - self explanatory

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIB_QCI_QUANTITY_CONTROL Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_t_qt2tab  TYPE STANDARD TABLE OF OIB_A05, "   
lv_calculation_failure  TYPE OIB_A05, "   
lt_t_param  TYPE STANDARD TABLE OF OIB_A10, "   
lv_calculation_overflow  TYPE OIB_A10, "   
lt_t_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_trans_uom_not_found  TYPE BAPIRET2, "   
lv_unit_conversion_error  TYPE BAPIRET2, "   
lv_window_cancelled  TYPE BAPIRET2, "   
lv_inconsistent_data  TYPE BAPIRET2, "   
lv_out_of_range  TYPE BAPIRET2, "   
lv_inconsistent_customizing  TYPE BAPIRET2. "   

  CALL FUNCTION 'OIB_QCI_QUANTITY_CONTROL'  "QCI: Quantity Conversion Interface Control Module
    TABLES
         T_QT2TAB = lt_t_qt2tab
         T_PARAM = lt_t_param
         T_RETURN = lt_t_return
    EXCEPTIONS
        CALCULATION_FAILURE = 1
        CALCULATION_OVERFLOW = 2
        TRANS_UOM_NOT_FOUND = 3
        UNIT_CONVERSION_ERROR = 4
        WINDOW_CANCELLED = 5
        INCONSISTENT_DATA = 6
        OUT_OF_RANGE = 7
        INCONSISTENT_CUSTOMIZING = 8
. " OIB_QCI_QUANTITY_CONTROL




ABAP code using 7.40 inline data declarations to call FM OIB_QCI_QUANTITY_CONTROL

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 


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!