SAP OIB_SD_MV50A_INTERFACE Function Module for IS-OIL interface for deliveries
OIB_SD_MV50A_INTERFACE is a standard oib sd mv50a interface SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-OIL interface for deliveries 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 mv50a interface FM, simply by entering the name OIB_SD_MV50A_INTERFACE 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_MV50A_INTERFACE 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_MV50A_INTERFACE'"IS-OIL interface for deliveries.
EXPORTING
IF_AKTYP = "
IF_LGORT = "Storage Location
IF_MATNR = "Material Number
IF_MEINS = "Stock Keeping UoM
IF_PIKMG = "Delivery Quantity
IF_POSNR = "Item Number
IF_UECHA = "
IF_VBELN = "Document Number
IF_VGBEL = "
IF_VGPOS = "
IF_VOLEH = "
IF_BWART = "
IF_VRKME = "Sales UoM
IF_WERKS = "Plant
IF_VBTYP = "
IF_KOMKZ = "
IF_OLAND1 = "
IF_DLAND1 = "
IF_PSTYV = "
IF_UEPOS = "
IF_VGTYP = "
* IF_LISOF = "
IF_CHARG = "Batch Number
* IF_KNUMV = "
* IF_XCHPF = "
* IF_TAS = ' ' "
IF_BLDGR = "Screen group
IF_OIEXGNUM = "Exchange agreement number
IF_LFUHR = "Time of delivery
* IF_CALLER = ' ' "Calling Subroutine code
IF_DATUM = "
IF_DOCTP = "Document Type
IF_FCODE = "Function Code
IF_GEWEI = "
IF_KCMENG = "
IF_LFIMG = "Delivery Quantity
TABLES
IT_OIA_KOMF = "
CT_XLIPS = "
* IT_CVBAK = "
* IT_CVBAP = "
EXCEPTIONS
CONTINUE = 1 MM_MAINTENANCE = 2 NO_ISOIL = 3 PLANT_MISSING = 4 VAR_MESSAGE = 5
IMPORTING Parameters details for OIB_SD_MV50A_INTERFACE
IF_AKTYP -
Data type: T180-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
IF_LGORT - Storage Location
Data type: LIPS-LGORTOptional: No
Call by Reference: No ( called with pass by value option)
IF_MATNR - Material Number
Data type: LIPS-MATNROptional: No
Call by Reference: No ( called with pass by value option)
IF_MEINS - Stock Keeping UoM
Data type: LIPS-MEINSOptional: No
Call by Reference: No ( called with pass by value option)
IF_PIKMG - Delivery Quantity
Data type: LIPSD-PIKMGOptional: No
Call by Reference: No ( called with pass by value option)
IF_POSNR - Item Number
Data type: LIPS-POSNROptional: No
Call by Reference: No ( called with pass by value option)
IF_UECHA -
Data type: LIPS-UECHAOptional: No
Call by Reference: No ( called with pass by value option)
IF_VBELN - Document Number
Data type: LIKP-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
IF_VGBEL -
Data type: LIPS-VGBELOptional: No
Call by Reference: No ( called with pass by value option)
IF_VGPOS -
Data type: LIPS-VGPOSOptional: No
Call by Reference: No ( called with pass by value option)
IF_VOLEH -
Data type: LIPS-VOLEHOptional: No
Call by Reference: No ( called with pass by value option)
IF_BWART -
Data type: LIPS-BWARTOptional: No
Call by Reference: No ( called with pass by value option)
IF_VRKME - Sales UoM
Data type: LIPS-VRKMEOptional: No
Call by Reference: No ( called with pass by value option)
IF_WERKS - Plant
Data type: LIPS-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
IF_VBTYP -
Data type: TVLK-VBTYPOptional: No
Call by Reference: No ( called with pass by value option)
IF_KOMKZ -
Data type: LIPS-KOMKZOptional: No
Call by Reference: No ( called with pass by value option)
IF_OLAND1 -
Data type: LIPS-OIC_OLAND1Optional: No
Call by Reference: No ( called with pass by value option)
IF_DLAND1 -
Data type: LIPS-OIC_DLAND1Optional: No
Call by Reference: No ( called with pass by value option)
IF_PSTYV -
Data type: LIPS-PSTYVOptional: No
Call by Reference: No ( called with pass by value option)
IF_UEPOS -
Data type: LIPS-UEPOSOptional: No
Call by Reference: No ( called with pass by value option)
IF_VGTYP -
Data type: LIPS-VGTYPOptional: No
Call by Reference: No ( called with pass by value option)
IF_LISOF -
Data type: TVAK-LISOFOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_CHARG - Batch Number
Data type: LIPS-CHARGOptional: No
Call by Reference: No ( called with pass by value option)
IF_KNUMV -
Data type: LIKP-KNUMVOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_XCHPF -
Data type: LIPS-XCHPFOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_TAS -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_BLDGR - Screen group
Data type: T180-BLDGROptional: No
Call by Reference: Yes
IF_OIEXGNUM - Exchange agreement number
Data type: LIPS-OIEXGNUMOptional: No
Call by Reference: Yes
IF_LFUHR - Time of delivery
Data type: LIKP-LFUHROptional: No
Call by Reference: Yes
IF_CALLER - Calling Subroutine code
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_DATUM -
Data type: LIKP-WADATOptional: No
Call by Reference: No ( called with pass by value option)
IF_DOCTP - Document Type
Data type: LIKP-LFARTOptional: No
Call by Reference: No ( called with pass by value option)
IF_FCODE - Function Code
Data type: T185-FCODEOptional: No
Call by Reference: No ( called with pass by value option)
IF_GEWEI -
Data type: LIPS-GEWEIOptional: No
Call by Reference: No ( called with pass by value option)
IF_KCMENG -
Data type: LIPS-KCMENGOptional: No
Call by Reference: No ( called with pass by value option)
IF_LFIMG - Delivery Quantity
Data type: LIPS-LFIMGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for OIB_SD_MV50A_INTERFACE
IT_OIA_KOMF -
Data type: OIAKOMFOptional: No
Call by Reference: Yes
CT_XLIPS -
Data type: LIPSVBOptional: No
Call by Reference: Yes
IT_CVBAK -
Data type: VBAKOptional: Yes
Call by Reference: Yes
IT_CVBAP -
Data type: VBAPOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CONTINUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MM_MAINTENANCE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ISOIL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PLANT_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VAR_MESSAGE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIB_SD_MV50A_INTERFACE 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_continue | TYPE STRING, " | |||
| lv_if_aktyp | TYPE T180-AKTYP, " | |||
| lt_it_oia_komf | TYPE STANDARD TABLE OF OIAKOMF, " | |||
| lv_if_lgort | TYPE LIPS-LGORT, " | |||
| lv_if_matnr | TYPE LIPS-MATNR, " | |||
| lv_if_meins | TYPE LIPS-MEINS, " | |||
| lv_if_pikmg | TYPE LIPSD-PIKMG, " | |||
| lv_if_posnr | TYPE LIPS-POSNR, " | |||
| lv_if_uecha | TYPE LIPS-UECHA, " | |||
| lv_if_vbeln | TYPE LIKP-VBELN, " | |||
| lv_if_vgbel | TYPE LIPS-VGBEL, " | |||
| lv_if_vgpos | TYPE LIPS-VGPOS, " | |||
| lv_if_voleh | TYPE LIPS-VOLEH, " | |||
| lt_ct_xlips | TYPE STANDARD TABLE OF LIPSVB, " | |||
| lv_if_bwart | TYPE LIPS-BWART, " | |||
| lv_mm_maintenance | TYPE LIPS, " | |||
| lv_if_vrkme | TYPE LIPS-VRKME, " | |||
| lv_if_werks | TYPE LIPS-WERKS, " | |||
| lv_if_vbtyp | TYPE TVLK-VBTYP, " | |||
| lv_if_komkz | TYPE LIPS-KOMKZ, " | |||
| lv_if_oland1 | TYPE LIPS-OIC_OLAND1, " | |||
| lv_if_dland1 | TYPE LIPS-OIC_DLAND1, " | |||
| lv_if_pstyv | TYPE LIPS-PSTYV, " | |||
| lv_if_uepos | TYPE LIPS-UEPOS, " | |||
| lv_if_vgtyp | TYPE LIPS-VGTYP, " | |||
| lv_if_lisof | TYPE TVAK-LISOF, " | |||
| lv_if_charg | TYPE LIPS-CHARG, " | |||
| lt_it_cvbak | TYPE STANDARD TABLE OF VBAK, " | |||
| lv_no_isoil | TYPE VBAK, " | |||
| lv_if_knumv | TYPE LIKP-KNUMV, " | |||
| lv_if_xchpf | TYPE LIPS-XCHPF, " | |||
| lv_if_tas | TYPE C, " SPACE | |||
| lv_if_bldgr | TYPE T180-BLDGR, " | |||
| lv_if_oiexgnum | TYPE LIPS-OIEXGNUM, " | |||
| lv_if_lfuhr | TYPE LIKP-LFUHR, " | |||
| lv_if_caller | TYPE LIKP, " SPACE | |||
| lv_if_datum | TYPE LIKP-WADAT, " | |||
| lt_it_cvbap | TYPE STANDARD TABLE OF VBAP, " | |||
| lv_plant_missing | TYPE VBAP, " | |||
| lv_if_doctp | TYPE LIKP-LFART, " | |||
| lv_var_message | TYPE LIKP, " | |||
| lv_if_fcode | TYPE T185-FCODE, " | |||
| lv_if_gewei | TYPE LIPS-GEWEI, " | |||
| lv_if_kcmeng | TYPE LIPS-KCMENG, " | |||
| lv_if_lfimg | TYPE LIPS-LFIMG. " |
|   CALL FUNCTION 'OIB_SD_MV50A_INTERFACE' "IS-OIL interface for deliveries |
| EXPORTING | ||
| IF_AKTYP | = lv_if_aktyp | |
| IF_LGORT | = lv_if_lgort | |
| IF_MATNR | = lv_if_matnr | |
| IF_MEINS | = lv_if_meins | |
| IF_PIKMG | = lv_if_pikmg | |
| IF_POSNR | = lv_if_posnr | |
| IF_UECHA | = lv_if_uecha | |
| IF_VBELN | = lv_if_vbeln | |
| IF_VGBEL | = lv_if_vgbel | |
| IF_VGPOS | = lv_if_vgpos | |
| IF_VOLEH | = lv_if_voleh | |
| IF_BWART | = lv_if_bwart | |
| IF_VRKME | = lv_if_vrkme | |
| IF_WERKS | = lv_if_werks | |
| IF_VBTYP | = lv_if_vbtyp | |
| IF_KOMKZ | = lv_if_komkz | |
| IF_OLAND1 | = lv_if_oland1 | |
| IF_DLAND1 | = lv_if_dland1 | |
| IF_PSTYV | = lv_if_pstyv | |
| IF_UEPOS | = lv_if_uepos | |
| IF_VGTYP | = lv_if_vgtyp | |
| IF_LISOF | = lv_if_lisof | |
| IF_CHARG | = lv_if_charg | |
| IF_KNUMV | = lv_if_knumv | |
| IF_XCHPF | = lv_if_xchpf | |
| IF_TAS | = lv_if_tas | |
| IF_BLDGR | = lv_if_bldgr | |
| IF_OIEXGNUM | = lv_if_oiexgnum | |
| IF_LFUHR | = lv_if_lfuhr | |
| IF_CALLER | = lv_if_caller | |
| IF_DATUM | = lv_if_datum | |
| IF_DOCTP | = lv_if_doctp | |
| IF_FCODE | = lv_if_fcode | |
| IF_GEWEI | = lv_if_gewei | |
| IF_KCMENG | = lv_if_kcmeng | |
| IF_LFIMG | = lv_if_lfimg | |
| TABLES | ||
| IT_OIA_KOMF | = lt_it_oia_komf | |
| CT_XLIPS | = lt_ct_xlips | |
| IT_CVBAK | = lt_it_cvbak | |
| IT_CVBAP | = lt_it_cvbap | |
| EXCEPTIONS | ||
| CONTINUE = 1 | ||
| MM_MAINTENANCE = 2 | ||
| NO_ISOIL = 3 | ||
| PLANT_MISSING = 4 | ||
| VAR_MESSAGE = 5 | ||
| . " OIB_SD_MV50A_INTERFACE | ||
ABAP code using 7.40 inline data declarations to call FM OIB_SD_MV50A_INTERFACE
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 AKTYP FROM T180 INTO @DATA(ld_if_aktyp). | ||||
| "SELECT single LGORT FROM LIPS INTO @DATA(ld_if_lgort). | ||||
| "SELECT single MATNR FROM LIPS INTO @DATA(ld_if_matnr). | ||||
| "SELECT single MEINS FROM LIPS INTO @DATA(ld_if_meins). | ||||
| "SELECT single PIKMG FROM LIPSD INTO @DATA(ld_if_pikmg). | ||||
| "SELECT single POSNR FROM LIPS INTO @DATA(ld_if_posnr). | ||||
| "SELECT single UECHA FROM LIPS INTO @DATA(ld_if_uecha). | ||||
| "SELECT single VBELN FROM LIKP INTO @DATA(ld_if_vbeln). | ||||
| "SELECT single VGBEL FROM LIPS INTO @DATA(ld_if_vgbel). | ||||
| "SELECT single VGPOS FROM LIPS INTO @DATA(ld_if_vgpos). | ||||
| "SELECT single VOLEH FROM LIPS INTO @DATA(ld_if_voleh). | ||||
| "SELECT single BWART FROM LIPS INTO @DATA(ld_if_bwart). | ||||
| "SELECT single VRKME FROM LIPS INTO @DATA(ld_if_vrkme). | ||||
| "SELECT single WERKS FROM LIPS INTO @DATA(ld_if_werks). | ||||
| "SELECT single VBTYP FROM TVLK INTO @DATA(ld_if_vbtyp). | ||||
| "SELECT single KOMKZ FROM LIPS INTO @DATA(ld_if_komkz). | ||||
| "SELECT single OIC_OLAND1 FROM LIPS INTO @DATA(ld_if_oland1). | ||||
| "SELECT single OIC_DLAND1 FROM LIPS INTO @DATA(ld_if_dland1). | ||||
| "SELECT single PSTYV FROM LIPS INTO @DATA(ld_if_pstyv). | ||||
| "SELECT single UEPOS FROM LIPS INTO @DATA(ld_if_uepos). | ||||
| "SELECT single VGTYP FROM LIPS INTO @DATA(ld_if_vgtyp). | ||||
| "SELECT single LISOF FROM TVAK INTO @DATA(ld_if_lisof). | ||||
| "SELECT single CHARG FROM LIPS INTO @DATA(ld_if_charg). | ||||
| "SELECT single KNUMV FROM LIKP INTO @DATA(ld_if_knumv). | ||||
| "SELECT single XCHPF FROM LIPS INTO @DATA(ld_if_xchpf). | ||||
| DATA(ld_if_tas) | = ' '. | |||
| "SELECT single BLDGR FROM T180 INTO @DATA(ld_if_bldgr). | ||||
| "SELECT single OIEXGNUM FROM LIPS INTO @DATA(ld_if_oiexgnum). | ||||
| "SELECT single LFUHR FROM LIKP INTO @DATA(ld_if_lfuhr). | ||||
| DATA(ld_if_caller) | = ' '. | |||
| "SELECT single WADAT FROM LIKP INTO @DATA(ld_if_datum). | ||||
| "SELECT single LFART FROM LIKP INTO @DATA(ld_if_doctp). | ||||
| "SELECT single FCODE FROM T185 INTO @DATA(ld_if_fcode). | ||||
| "SELECT single GEWEI FROM LIPS INTO @DATA(ld_if_gewei). | ||||
| "SELECT single KCMENG FROM LIPS INTO @DATA(ld_if_kcmeng). | ||||
| "SELECT single LFIMG FROM LIPS INTO @DATA(ld_if_lfimg). | ||||
Search for further information about these or an SAP related objects