SAP OIB_SD_GET_QUANTITY Function Module for HPM SD multi interface to receive quantities









OIB_SD_GET_QUANTITY is a standard oib sd get quantity SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for HPM SD multi interface to receive quantities 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 sd get quantity FM, simply by entering the name OIB_SD_GET_QUANTITY into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIB_SD
Program Name: SAPLOIB_SD
Main Program: SAPLOIB_SD
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function OIB_SD_GET_QUANTITY 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_SD_GET_QUANTITY'"HPM SD multi interface to receive quantities
EXPORTING
* IF_VBTYP = 'J' "
* IF_PODCHECK = ' ' "POD indic.:only 'B'+' ' used; 'X' ignored
IF_VBELN = "
IF_POSNR = "
* IF_EXTINT = 'B' "Internal read handling: read from internal/external data
* IF_OLDNEW = '2' "Internal Control f.Interface to receive'Delivery+Quantities'
* IF_INUOM = 'RU' "Internal control: UoM Unit type
* IF_RQSUOM = "
* IF_UMVKZ = "
* IF_UMVKN = "

IMPORTING
EF_QNT_P = "
EF_QNT_F = "
EF_UOM = "

TABLES
* IT_FXVBFA = "Sales Document Flow

EXCEPTIONS
DOCUMENT_NOT_FOUND = 1 PARAMETER_INCORRECT = 2 QUANTITY_NOT_AVAILABLE = 3 MATERIAL_NOT_SUPPORTED = 4
.



IMPORTING Parameters details for OIB_SD_GET_QUANTITY

IF_VBTYP -

Data type: VBFA-VBTYP_N
Default: 'J'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_PODCHECK - POD indic.:only 'B'+SPACE used; 'X' ignored

Data type: KZPOD
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_VBELN -

Data type: VBFA-VBELN
Optional: No
Call by Reference: No ( called with pass by value option)

IF_POSNR -

Data type: VBFA-POSNN
Optional: No
Call by Reference: No ( called with pass by value option)

IF_EXTINT - Internal read handling: read from internal/external data

Data type: OIB_EXTINT
Default: 'B'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_OLDNEW - Internal Control f.Interface to receive'Delivery+Quantities'

Data type: OIB_OLDNEW
Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_INUOM - Internal control: UoM Unit type

Data type: OIB_UOMTYPE
Default: 'RU'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_RQSUOM -

Data type: T006-MSEHI
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_UMVKZ -

Data type: LIPS-UMVKZ
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_UMVKN -

Data type: LIPS-UMVKN
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for OIB_SD_GET_QUANTITY

EF_QNT_P -

Data type: VBFA-RFMNG
Optional: No
Call by Reference: No ( called with pass by value option)

EF_QNT_F -

Data type: VBFA-RFMNG_FLO
Optional: No
Call by Reference: No ( called with pass by value option)

EF_UOM -

Data type: T006-MSEHI
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for OIB_SD_GET_QUANTITY

IT_FXVBFA - Sales Document Flow

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

EXCEPTIONS details

DOCUMENT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARAMETER_INCORRECT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

QUANTITY_NOT_AVAILABLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MATERIAL_NOT_SUPPORTED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for OIB_SD_GET_QUANTITY 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:
lv_ef_qnt_p  TYPE VBFA-RFMNG, "   
lv_if_vbtyp  TYPE VBFA-VBTYP_N, "   'J'
lt_it_fxvbfa  TYPE STANDARD TABLE OF VBFA, "   
lv_document_not_found  TYPE VBFA, "   
lv_if_podcheck  TYPE KZPOD, "   SPACE
lv_ef_qnt_f  TYPE VBFA-RFMNG_FLO, "   
lv_if_vbeln  TYPE VBFA-VBELN, "   
lv_parameter_incorrect  TYPE VBFA, "   
lv_ef_uom  TYPE T006-MSEHI, "   
lv_if_posnr  TYPE VBFA-POSNN, "   
lv_quantity_not_available  TYPE VBFA, "   
lv_if_extint  TYPE OIB_EXTINT, "   'B'
lv_material_not_supported  TYPE OIB_EXTINT, "   
lv_if_oldnew  TYPE OIB_OLDNEW, "   '2'
lv_if_inuom  TYPE OIB_UOMTYPE, "   'RU'
lv_if_rqsuom  TYPE T006-MSEHI, "   
lv_if_umvkz  TYPE LIPS-UMVKZ, "   
lv_if_umvkn  TYPE LIPS-UMVKN. "   

  CALL FUNCTION 'OIB_SD_GET_QUANTITY'  "HPM SD multi interface to receive quantities
    EXPORTING
         IF_VBTYP = lv_if_vbtyp
         IF_PODCHECK = lv_if_podcheck
         IF_VBELN = lv_if_vbeln
         IF_POSNR = lv_if_posnr
         IF_EXTINT = lv_if_extint
         IF_OLDNEW = lv_if_oldnew
         IF_INUOM = lv_if_inuom
         IF_RQSUOM = lv_if_rqsuom
         IF_UMVKZ = lv_if_umvkz
         IF_UMVKN = lv_if_umvkn
    IMPORTING
         EF_QNT_P = lv_ef_qnt_p
         EF_QNT_F = lv_ef_qnt_f
         EF_UOM = lv_ef_uom
    TABLES
         IT_FXVBFA = lt_it_fxvbfa
    EXCEPTIONS
        DOCUMENT_NOT_FOUND = 1
        PARAMETER_INCORRECT = 2
        QUANTITY_NOT_AVAILABLE = 3
        MATERIAL_NOT_SUPPORTED = 4
. " OIB_SD_GET_QUANTITY




ABAP code using 7.40 inline data declarations to call FM OIB_SD_GET_QUANTITY

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.

"SELECT single RFMNG FROM VBFA INTO @DATA(ld_ef_qnt_p).
 
"SELECT single VBTYP_N FROM VBFA INTO @DATA(ld_if_vbtyp).
DATA(ld_if_vbtyp) = 'J'.
 
 
 
DATA(ld_if_podcheck) = ' '.
 
"SELECT single RFMNG_FLO FROM VBFA INTO @DATA(ld_ef_qnt_f).
 
"SELECT single VBELN FROM VBFA INTO @DATA(ld_if_vbeln).
 
 
"SELECT single MSEHI FROM T006 INTO @DATA(ld_ef_uom).
 
"SELECT single POSNN FROM VBFA INTO @DATA(ld_if_posnr).
 
 
DATA(ld_if_extint) = 'B'.
 
 
DATA(ld_if_oldnew) = '2'.
 
DATA(ld_if_inuom) = 'RU'.
 
"SELECT single MSEHI FROM T006 INTO @DATA(ld_if_rqsuom).
 
"SELECT single UMVKZ FROM LIPS INTO @DATA(ld_if_umvkz).
 
"SELECT single UMVKN FROM LIPS INTO @DATA(ld_if_umvkn).
 


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!