SAP OIB_SD_CHECK_GET_UOM_INVOICE Function Module for HPM-ASTM check Price Condition UoM was calculated and get respective qty
OIB_SD_CHECK_GET_UOM_INVOICE is a standard oib sd check get uom invoice 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-ASTM check Price Condition UoM was calculated and get respective qty 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 check get uom invoice FM, simply by entering the name OIB_SD_CHECK_GET_UOM_INVOICE 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_CHECK_GET_UOM_INVOICE 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_CHECK_GET_UOM_INVOICE'"HPM-ASTM check Price Condition UoM was calculated and get respective qty.
EXPORTING
IF_KAPPL = "Application
IF_MSEHI = "UoM for pricing basis
IF_SOMNG = "
IF_SOUOM = "
IF_VGBEL = "Number of the originating document
IF_VGPOS = "Number of the originating item
* IF_VBTYP = "SD document category
IMPORTING
EF_MENGE = "Quantity/weight/volume price basis
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for OIB_SD_CHECK_GET_UOM_INVOICE
IF_KAPPL - Application
Data type: KOMK-KAPPLOptional: No
Call by Reference: No ( called with pass by value option)
IF_MSEHI - UoM for pricing basis
Data type: T006-MSEHIOptional: No
Call by Reference: No ( called with pass by value option)
IF_SOMNG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IF_SOUOM -
Data type: T006-MSEHIOptional: No
Call by Reference: No ( called with pass by value option)
IF_VGBEL - Number of the originating document
Data type: KOMP-VGBELOptional: No
Call by Reference: No ( called with pass by value option)
IF_VGPOS - Number of the originating item
Data type: KOMP-VGPOSOptional: No
Call by Reference: No ( called with pass by value option)
IF_VBTYP - SD document category
Data type: VBTYPOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for OIB_SD_CHECK_GET_UOM_INVOICE
EF_MENGE - Quantity/weight/volume price basis
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - No API value available for this UoM
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIB_SD_CHECK_GET_UOM_INVOICE 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_menge | TYPE STRING, " | |||
| lv_if_kappl | TYPE KOMK-KAPPL, " | |||
| lv_not_found | TYPE KOMK, " | |||
| lv_if_msehi | TYPE T006-MSEHI, " | |||
| lv_if_somng | TYPE T006, " | |||
| lv_if_souom | TYPE T006-MSEHI, " | |||
| lv_if_vgbel | TYPE KOMP-VGBEL, " | |||
| lv_if_vgpos | TYPE KOMP-VGPOS, " | |||
| lv_if_vbtyp | TYPE VBTYP. " |
|   CALL FUNCTION 'OIB_SD_CHECK_GET_UOM_INVOICE' "HPM-ASTM check Price Condition UoM was calculated and get respective qty |
| EXPORTING | ||
| IF_KAPPL | = lv_if_kappl | |
| IF_MSEHI | = lv_if_msehi | |
| IF_SOMNG | = lv_if_somng | |
| IF_SOUOM | = lv_if_souom | |
| IF_VGBEL | = lv_if_vgbel | |
| IF_VGPOS | = lv_if_vgpos | |
| IF_VBTYP | = lv_if_vbtyp | |
| IMPORTING | ||
| EF_MENGE | = lv_ef_menge | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " OIB_SD_CHECK_GET_UOM_INVOICE | ||
ABAP code using 7.40 inline data declarations to call FM OIB_SD_CHECK_GET_UOM_INVOICE
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 KAPPL FROM KOMK INTO @DATA(ld_if_kappl). | ||||
| "SELECT single MSEHI FROM T006 INTO @DATA(ld_if_msehi). | ||||
| "SELECT single MSEHI FROM T006 INTO @DATA(ld_if_souom). | ||||
| "SELECT single VGBEL FROM KOMP INTO @DATA(ld_if_vgbel). | ||||
| "SELECT single VGPOS FROM KOMP INTO @DATA(ld_if_vgpos). | ||||
Search for further information about these or an SAP related objects