SAP K_PLAN_INTEGRATION_ACTIVATE Function Module for
K_PLAN_INTEGRATION_ACTIVATE is a standard k plan integration activate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 k plan integration activate FM, simply by entering the name K_PLAN_INTEGRATION_ACTIVATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: KPU2
Program Name: SAPLKPU2
Main Program: SAPLKPU2
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_PLAN_INTEGRATION_ACTIVATE 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 'K_PLAN_INTEGRATION_ACTIVATE'".
EXPORTING
I_KOKRS = "
I_VERSN = "
I_GJAHR = "
I_CONTROL = "
* I_CDEF = "
* I_USE_COIOB_BUFFER = ' ' "
* I_OBJNR_STOP = "
* I_SCAN = ' ' "
IMPORTING
E_RESULT = "
TABLES
* T_MESG = "
* T_OBJNR_DEBUGGING = "
* T_SCAN = "
EXCEPTIONS
VERSION_NOT_DEFINED = 1 VERSION_LOCKED = 2 INTEGRATION_ALREADY_ACTIVE = 3 VERSION_BEING_EDITED = 4 DATASET_BLOCKED = 5
IMPORTING Parameters details for K_PLAN_INTEGRATION_ACTIVATE
I_KOKRS -
Data type: TKA07-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_VERSN -
Data type: TKA07-VERSNOptional: No
Call by Reference: No ( called with pass by value option)
I_GJAHR -
Data type: TKA07-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_CONTROL -
Data type: RKPIA_CONTROLOptional: No
Call by Reference: No ( called with pass by value option)
I_CDEF -
Data type: RKPIA_CDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_USE_COIOB_BUFFER -
Data type: BOOLE-BOOLEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJNR_STOP -
Data type: KPU2_OBJNR-OBJNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_SCAN -
Data type: BOOLE-BOOLEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for K_PLAN_INTEGRATION_ACTIVATE
E_RESULT -
Data type: RKPIA_RESULTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_PLAN_INTEGRATION_ACTIVATE
T_MESG -
Data type: SMESGOptional: Yes
Call by Reference: No ( called with pass by value option)
T_OBJNR_DEBUGGING -
Data type: IONRBOptional: Yes
Call by Reference: No ( called with pass by value option)
T_SCAN -
Data type: KPU2_SCANOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
VERSION_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VERSION_LOCKED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTEGRATION_ALREADY_ACTIVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VERSION_BEING_EDITED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATASET_BLOCKED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_PLAN_INTEGRATION_ACTIVATE 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_t_mesg | TYPE STANDARD TABLE OF SMESG, " | |||
| lv_i_kokrs | TYPE TKA07-KOKRS, " | |||
| lv_e_result | TYPE RKPIA_RESULT, " | |||
| lv_version_not_defined | TYPE RKPIA_RESULT, " | |||
| lv_i_versn | TYPE TKA07-VERSN, " | |||
| lv_version_locked | TYPE TKA07, " | |||
| lt_t_objnr_debugging | TYPE STANDARD TABLE OF IONRB, " | |||
| lt_t_scan | TYPE STANDARD TABLE OF KPU2_SCAN, " | |||
| lv_i_gjahr | TYPE TKA07-GJAHR, " | |||
| lv_integration_already_active | TYPE TKA07, " | |||
| lv_i_control | TYPE RKPIA_CONTROL, " | |||
| lv_version_being_edited | TYPE RKPIA_CONTROL, " | |||
| lv_i_cdef | TYPE RKPIA_CDEF, " | |||
| lv_dataset_blocked | TYPE RKPIA_CDEF, " | |||
| lv_i_use_coiob_buffer | TYPE BOOLE-BOOLE, " ' ' | |||
| lv_i_objnr_stop | TYPE KPU2_OBJNR-OBJNR, " | |||
| lv_i_scan | TYPE BOOLE-BOOLE. " ' ' |
|   CALL FUNCTION 'K_PLAN_INTEGRATION_ACTIVATE' " |
| EXPORTING | ||
| I_KOKRS | = lv_i_kokrs | |
| I_VERSN | = lv_i_versn | |
| I_GJAHR | = lv_i_gjahr | |
| I_CONTROL | = lv_i_control | |
| I_CDEF | = lv_i_cdef | |
| I_USE_COIOB_BUFFER | = lv_i_use_coiob_buffer | |
| I_OBJNR_STOP | = lv_i_objnr_stop | |
| I_SCAN | = lv_i_scan | |
| IMPORTING | ||
| E_RESULT | = lv_e_result | |
| TABLES | ||
| T_MESG | = lt_t_mesg | |
| T_OBJNR_DEBUGGING | = lt_t_objnr_debugging | |
| T_SCAN | = lt_t_scan | |
| EXCEPTIONS | ||
| VERSION_NOT_DEFINED = 1 | ||
| VERSION_LOCKED = 2 | ||
| INTEGRATION_ALREADY_ACTIVE = 3 | ||
| VERSION_BEING_EDITED = 4 | ||
| DATASET_BLOCKED = 5 | ||
| . " K_PLAN_INTEGRATION_ACTIVATE | ||
ABAP code using 7.40 inline data declarations to call FM K_PLAN_INTEGRATION_ACTIVATE
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 KOKRS FROM TKA07 INTO @DATA(ld_i_kokrs). | ||||
| "SELECT single VERSN FROM TKA07 INTO @DATA(ld_i_versn). | ||||
| "SELECT single GJAHR FROM TKA07 INTO @DATA(ld_i_gjahr). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_use_coiob_buffer). | ||||
| DATA(ld_i_use_coiob_buffer) | = ' '. | |||
| "SELECT single OBJNR FROM KPU2_OBJNR INTO @DATA(ld_i_objnr_stop). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_scan). | ||||
| DATA(ld_i_scan) | = ' '. | |||
Search for further information about these or an SAP related objects