SAP EXIT_SAPLOIK5_100 Function Module for User exit: OILSHL01 outbound -> Top
EXIT_SAPLOIK5_100 is a standard exit saploik5 100 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User exit: OILSHL01 outbound -> Top 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 exit saploik5 100 FM, simply by entering the name EXIT_SAPLOIK5_100 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XOIK
Program Name: SAPLXOIK
Main Program: SAPLXOIK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLOIK5_100 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 'EXIT_SAPLOIK5_100'"User exit: OILSHL01 outbound -> Top.
EXPORTING
PI_IDOC_SHIPMENT_NR = "
* PI_IDOC_VEHICLE_NR = "
* PI_STATUS = "
CHANGING
PI_IDOC_CONTROL = "
TABLES
PI_IDOC_DATA = "
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.IDOC_CREATE_OILORD Create Outgoing IDoc for Sales Order
IDOC_CREATE_OILSHL01 Create IDoc oilshl01
IDOC_OUTPUT_OILORD Outgoing IDoc for Sales Order (Output Determination)
MASTERIDOC_CREATE_DEL_OILORD Create Master IDoc OILORD in Deletion Mode
MASTERIDOC_CREATE_DEL_OILSHL Create Master IDoc OILSHL in deletion mode
MASTERIDOC_CREATE_OILORD Create Master IDoc OILORD
MASTERIDOC_CREATE_SMD_OILORD Create Master IDoc OILORD from SMD
OIK_TO_ISO_MEASURE_UNIT_CODE IS-OIL/TAS: Convert SAP-Code to ISO-Code
OIK_TT_IDOCDATA_SHIPMENT_FILL Fills the oilshl01 IDoc
IMPORTING Parameters details for EXIT_SAPLOIK5_100
PI_IDOC_SHIPMENT_NR -
Data type: OIGS-SHNUMBEROptional: No
Call by Reference: No ( called with pass by value option)
PI_IDOC_VEHICLE_NR -
Data type: OIK01-ITEMNOOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_STATUS -
Data type: E1OILSV-STATUSOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPLOIK5_100
PI_IDOC_CONTROL -
Data type: EDIDCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EXIT_SAPLOIK5_100
PI_IDOC_DATA -
Data type: EDIDDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLOIK5_100 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_pi_idoc_data | TYPE STANDARD TABLE OF EDIDD, " | |||
| lv_pi_idoc_control | TYPE EDIDC, " | |||
| lv_pi_idoc_shipment_nr | TYPE OIGS-SHNUMBER, " | |||
| lv_pi_idoc_vehicle_nr | TYPE OIK01-ITEMNO, " | |||
| lv_pi_status | TYPE E1OILSV-STATUS. " |
|   CALL FUNCTION 'EXIT_SAPLOIK5_100' "User exit: OILSHL01 outbound -> Top |
| EXPORTING | ||
| PI_IDOC_SHIPMENT_NR | = lv_pi_idoc_shipment_nr | |
| PI_IDOC_VEHICLE_NR | = lv_pi_idoc_vehicle_nr | |
| PI_STATUS | = lv_pi_status | |
| CHANGING | ||
| PI_IDOC_CONTROL | = lv_pi_idoc_control | |
| TABLES | ||
| PI_IDOC_DATA | = lt_pi_idoc_data | |
| . " EXIT_SAPLOIK5_100 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLOIK5_100
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 SHNUMBER FROM OIGS INTO @DATA(ld_pi_idoc_shipment_nr). | ||||
| "SELECT single ITEMNO FROM OIK01 INTO @DATA(ld_pi_idoc_vehicle_nr). | ||||
| "SELECT single STATUS FROM E1OILSV INTO @DATA(ld_pi_status). | ||||
Search for further information about these or an SAP related objects