SAP OIB_SD_INTERFACE_NEW Function Module for IS-OIL interface for deliveries









OIB_SD_INTERFACE_NEW is a standard oib sd interface new 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 interface new FM, simply by entering the name OIB_SD_INTERFACE_NEW 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_INTERFACE_NEW 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_INTERFACE_NEW'"IS-OIL interface for deliveries
EXPORTING
IF_AKTYP = "
IF_MEINS = "Stock Keeping UoM
IF_POSNR = "Item Number
IF_UECHA = "
IF_VBELN = "Document Number
IF_VGBEL = "
IF_VGPOS = "
IF_VOLEH = "
IF_VRKME = "Sales UoM
IF_WERKS = "Plant
IF_XCHPF = "Batch management requirement indicator
IF_BWART = "
IF_OLAND1 = "
IF_DLAND1 = "
IF_PSTYV = "
IF_UEPOS = "
IF_VGTYP = "
* IF_LISOF = "
* IF_KNUMV = "
* IF_TAS = ' ' "
IF_OIEXGNUM = "Exchange agreement number
IF_LFUHR = "Time of delivery
IF_CHARG = "Batch Number
* IF_VBTYP = "SD document category
IF_DATUM = "
IF_FCODE = "Function Code
IF_GEWEI = "
IF_LFIMG = "Delivery Quantity
IF_LGORT = "Storage Location
IF_MATNR = "Material Number

TABLES
CT_XLIPS = "
* IT_CVBAP = "

EXCEPTIONS
CONTINUE = 1 MM_MAINTENANCE = 2 NO_ISOIL = 3 PLANT_MISSING = 4 VAR_MESSAGE = 5
.



IMPORTING Parameters details for OIB_SD_INTERFACE_NEW

IF_AKTYP -

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

IF_MEINS - Stock Keeping UoM

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

IF_POSNR - Item Number

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

IF_UECHA -

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

IF_VBELN - Document Number

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

IF_VGBEL -

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

IF_VGPOS -

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

IF_VOLEH -

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

IF_VRKME - Sales UoM

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

IF_WERKS - Plant

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

IF_XCHPF - Batch management requirement indicator

Data type: LIPS-XCHPF
Optional: No
Call by Reference: Yes

IF_BWART -

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

IF_OLAND1 -

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

IF_DLAND1 -

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

IF_PSTYV -

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

IF_UEPOS -

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

IF_VGTYP -

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

IF_LISOF -

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

IF_KNUMV -

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

IF_TAS -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_OIEXGNUM - Exchange agreement number

Data type: LIPS-OIEXGNUM
Optional: No
Call by Reference: Yes

IF_LFUHR - Time of delivery

Data type: LIKP-LFUHR
Optional: No
Call by Reference: Yes

IF_CHARG - Batch Number

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

IF_VBTYP - SD document category

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

IF_DATUM -

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

IF_FCODE - Function Code

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

IF_GEWEI -

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

IF_LFIMG - Delivery Quantity

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

IF_LGORT - Storage Location

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

IF_MATNR - Material Number

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

TABLES Parameters details for OIB_SD_INTERFACE_NEW

CT_XLIPS -

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

IT_CVBAP -

Data type: VBAP
Optional: 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_INTERFACE_NEW 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, "   
lt_ct_xlips  TYPE STANDARD TABLE OF LIPSVB, "   
lv_if_aktyp  TYPE T180-AKTYP, "   
lv_if_meins  TYPE LIPS-MEINS, "   
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, "   
lv_if_vrkme  TYPE LIPS-VRKME, "   
lv_if_werks  TYPE LIPS-WERKS, "   
lv_if_xchpf  TYPE LIPS-XCHPF, "   
lv_if_bwart  TYPE LIPS-BWART, "   
lt_it_cvbap  TYPE STANDARD TABLE OF VBAP, "   
lv_mm_maintenance  TYPE VBAP, "   
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_knumv  TYPE LIKP-KNUMV, "   
lv_if_tas  TYPE C, "   SPACE
lv_if_oiexgnum  TYPE LIPS-OIEXGNUM, "   
lv_if_lfuhr  TYPE LIKP-LFUHR, "   
lv_if_charg  TYPE LIPS-CHARG, "   
lv_no_isoil  TYPE LIPS, "   
lv_if_vbtyp  TYPE TVLK-VBTYP, "   
lv_if_datum  TYPE LIKP-WADAT, "   
lv_plant_missing  TYPE LIKP, "   
lv_if_fcode  TYPE T185-FCODE, "   
lv_var_message  TYPE T185, "   
lv_if_gewei  TYPE LIPS-GEWEI, "   
lv_if_lfimg  TYPE LIPS-LFIMG, "   
lv_if_lgort  TYPE LIPS-LGORT, "   
lv_if_matnr  TYPE LIPS-MATNR. "   

  CALL FUNCTION 'OIB_SD_INTERFACE_NEW'  "IS-OIL interface for deliveries
    EXPORTING
         IF_AKTYP = lv_if_aktyp
         IF_MEINS = lv_if_meins
         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_VRKME = lv_if_vrkme
         IF_WERKS = lv_if_werks
         IF_XCHPF = lv_if_xchpf
         IF_BWART = lv_if_bwart
         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_KNUMV = lv_if_knumv
         IF_TAS = lv_if_tas
         IF_OIEXGNUM = lv_if_oiexgnum
         IF_LFUHR = lv_if_lfuhr
         IF_CHARG = lv_if_charg
         IF_VBTYP = lv_if_vbtyp
         IF_DATUM = lv_if_datum
         IF_FCODE = lv_if_fcode
         IF_GEWEI = lv_if_gewei
         IF_LFIMG = lv_if_lfimg
         IF_LGORT = lv_if_lgort
         IF_MATNR = lv_if_matnr
    TABLES
         CT_XLIPS = lt_ct_xlips
         IT_CVBAP = lt_it_cvbap
    EXCEPTIONS
        CONTINUE = 1
        MM_MAINTENANCE = 2
        NO_ISOIL = 3
        PLANT_MISSING = 4
        VAR_MESSAGE = 5
. " OIB_SD_INTERFACE_NEW




ABAP code using 7.40 inline data declarations to call FM OIB_SD_INTERFACE_NEW

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 MEINS FROM LIPS INTO @DATA(ld_if_meins).
 
"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 VRKME FROM LIPS INTO @DATA(ld_if_vrkme).
 
"SELECT single WERKS FROM LIPS INTO @DATA(ld_if_werks).
 
"SELECT single XCHPF FROM LIPS INTO @DATA(ld_if_xchpf).
 
"SELECT single BWART FROM LIPS INTO @DATA(ld_if_bwart).
 
 
 
"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 KNUMV FROM LIKP INTO @DATA(ld_if_knumv).
 
DATA(ld_if_tas) = ' '.
 
"SELECT single OIEXGNUM FROM LIPS INTO @DATA(ld_if_oiexgnum).
 
"SELECT single LFUHR FROM LIKP INTO @DATA(ld_if_lfuhr).
 
"SELECT single CHARG FROM LIPS INTO @DATA(ld_if_charg).
 
 
"SELECT single VBTYP FROM TVLK INTO @DATA(ld_if_vbtyp).
 
"SELECT single WADAT FROM LIKP INTO @DATA(ld_if_datum).
 
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_if_fcode).
 
 
"SELECT single GEWEI FROM LIPS INTO @DATA(ld_if_gewei).
 
"SELECT single LFIMG FROM LIPS INTO @DATA(ld_if_lfimg).
 
"SELECT single LGORT FROM LIPS INTO @DATA(ld_if_lgort).
 
"SELECT single MATNR FROM LIPS INTO @DATA(ld_if_matnr).
 


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!