SAP OIK_GET_EXT_TPS_CONFIG Function Module for OIL-TPI: Get all (logical + physical) configuration data for TPS via TPP
OIK_GET_EXT_TPS_CONFIG is a standard oik get ext tps config SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OIL-TPI: Get all (logical + physical) configuration data for TPS via TPP 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 oik get ext tps config FM, simply by entering the name OIK_GET_EXT_TPS_CONFIG into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIKS
Program Name: SAPLOIKS
Main Program: SAPLOIKS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIK_GET_EXT_TPS_CONFIG 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 'OIK_GET_EXT_TPS_CONFIG'"OIL-TPI: Get all (logical + physical) configuration data for TPS via TPP.
EXPORTING
I_TPLST = "Transportation planning point
IMPORTING
E_ROIKTPS = "External TPS configuration
E_DATA_INCOMPLETE = "Data incompletion ('X' = not complete)
EXCEPTIONS
TRANS_PLANNING_POINT_NOT_FOUND = 1 ERROR_IN_SOURCE_DETERM = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLOIKS_001 OIL-TPI: Modify TPP determination call structure - sales order
EXIT_SAPLOIKS_002 OIL-TPI: Modify TPP determination call structure - sales order
IMPORTING Parameters details for OIK_GET_EXT_TPS_CONFIG
I_TPLST - Transportation planning point
Data type: TTDS-TPLSTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for OIK_GET_EXT_TPS_CONFIG
E_ROIKTPS - External TPS configuration
Data type: ROIKTPSOptional: No
Call by Reference: No ( called with pass by value option)
E_DATA_INCOMPLETE - Data incompletion ('X' = not complete)
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TRANS_PLANNING_POINT_NOT_FOUND - Transport planning point not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_SOURCE_DETERM - Error when determining logical/physical source
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIK_GET_EXT_TPS_CONFIG 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_i_tplst | TYPE TTDS-TPLST, " | |||
| lv_e_roiktps | TYPE ROIKTPS, " | |||
| lv_trans_planning_point_not_found | TYPE ROIKTPS, " | |||
| lv_e_data_incomplete | TYPE BOOLE-BOOLE, " | |||
| lv_error_in_source_determ | TYPE BOOLE. " |
|   CALL FUNCTION 'OIK_GET_EXT_TPS_CONFIG' "OIL-TPI: Get all (logical + physical) configuration data for TPS via TPP |
| EXPORTING | ||
| I_TPLST | = lv_i_tplst | |
| IMPORTING | ||
| E_ROIKTPS | = lv_e_roiktps | |
| E_DATA_INCOMPLETE | = lv_e_data_incomplete | |
| EXCEPTIONS | ||
| TRANS_PLANNING_POINT_NOT_FOUND = 1 | ||
| ERROR_IN_SOURCE_DETERM = 2 | ||
| . " OIK_GET_EXT_TPS_CONFIG | ||
ABAP code using 7.40 inline data declarations to call FM OIK_GET_EXT_TPS_CONFIG
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 TPLST FROM TTDS INTO @DATA(ld_i_tplst). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_data_incomplete). | ||||
Search for further information about these or an SAP related objects