SAP K_ACT_PLAN_INTERFACE_PERIOD Function Module for Transfer Activity Planning with Period Values
K_ACT_PLAN_INTERFACE_PERIOD is a standard k act plan interface period SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Transfer Activity Planning with Period Values 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 k act plan interface period FM, simply by entering the name K_ACT_PLAN_INTERFACE_PERIOD into the relevant SAP transaction such as SE37 or SE38.
Function Group: KIPL
Program Name: SAPLKIPL
Main Program: SAPLKIPL
Appliation area:
Release date: 17-Jul-1996
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_ACT_PLAN_INTERFACE_PERIOD 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_ACT_PLAN_INTERFACE_PERIOD'"Transfer Activity Planning with Period Values.
EXPORTING
* BLTXT = ' ' "Document Header Text
VERSN = "Plan Version
VRGNG = "CO Business Transaction
* ONLINE_VB = ' ' "Post Online
* IRKU02_CUR = ' ' "Plan Which Currency Field Groups?
* PRICE_QUANT_PLAN = 'B' "Plan Only Prices/Only Quantities
* TESTMODE = ' ' "Test Mode
* COMMIT = 'X' "Execute COMMIT with Function Module
* DELTA = ' ' "Transfer Differences
GJAHR = "Fiscal Year
KOKRS = "Controlling Area
* MESSAGES_SHOW = ' ' "Display all Error Messages from Function Module
PERAB = "From Period
PERBI = "To Period
* UPDATE_VALUES = ' ' "Overwrite Existing Values
TABLES
IRKU02JA = "Planned Record
EXCEPTIONS
MESSAGES_OCCURED = 1
IMPORTING Parameters details for K_ACT_PLAN_INTERFACE_PERIOD
BLTXT - Document Header Text
Data type: COBK-BLTXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERSN - Plan Version
Data type: COBK-VERSNOptional: No
Call by Reference: No ( called with pass by value option)
VRGNG - CO Business Transaction
Data type: COBK-VRGNGOptional: No
Call by Reference: No ( called with pass by value option)
ONLINE_VB - Post Online
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IRKU02_CUR - Plan Which Currency Field Groups?
Data type: RKU02_CURDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRICE_QUANT_PLAN - Plan Only Prices/Only Quantities
Data type: CDefault: 'B'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TESTMODE - Test Mode
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMIT - Execute COMMIT with Function Module
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DELTA - Transfer Differences
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GJAHR - Fiscal Year
Data type: COBK-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
KOKRS - Controlling Area
Data type: COBK-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
MESSAGES_SHOW - Display all Error Messages from Function Module
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PERAB - From Period
Data type: COBK-PERABOptional: No
Call by Reference: No ( called with pass by value option)
PERBI - To Period
Data type: COBK-PERBIOptional: No
Call by Reference: No ( called with pass by value option)
UPDATE_VALUES - Overwrite Existing Values
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_ACT_PLAN_INTERFACE_PERIOD
IRKU02JA - Planned Record
Data type: RKU02JAOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MESSAGES_OCCURED - Error Messages Occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_ACT_PLAN_INTERFACE_PERIOD 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_bltxt | TYPE COBK-BLTXT, " SPACE | |||
| lt_irku02ja | TYPE STANDARD TABLE OF RKU02JA, " | |||
| lv_messages_occured | TYPE RKU02JA, " | |||
| lv_versn | TYPE COBK-VERSN, " | |||
| lv_vrgng | TYPE COBK-VRGNG, " | |||
| lv_online_vb | TYPE COBK, " SPACE | |||
| lv_irku02_cur | TYPE RKU02_CUR, " SPACE | |||
| lv_price_quant_plan | TYPE C, " 'B' | |||
| lv_testmode | TYPE C, " SPACE | |||
| lv_commit | TYPE C, " 'X' | |||
| lv_delta | TYPE C, " SPACE | |||
| lv_gjahr | TYPE COBK-GJAHR, " | |||
| lv_kokrs | TYPE COBK-KOKRS, " | |||
| lv_messages_show | TYPE COBK, " SPACE | |||
| lv_perab | TYPE COBK-PERAB, " | |||
| lv_perbi | TYPE COBK-PERBI, " | |||
| lv_update_values | TYPE COBK. " SPACE |
|   CALL FUNCTION 'K_ACT_PLAN_INTERFACE_PERIOD' "Transfer Activity Planning with Period Values |
| EXPORTING | ||
| BLTXT | = lv_bltxt | |
| VERSN | = lv_versn | |
| VRGNG | = lv_vrgng | |
| ONLINE_VB | = lv_online_vb | |
| IRKU02_CUR | = lv_irku02_cur | |
| PRICE_QUANT_PLAN | = lv_price_quant_plan | |
| TESTMODE | = lv_testmode | |
| COMMIT | = lv_commit | |
| DELTA | = lv_delta | |
| GJAHR | = lv_gjahr | |
| KOKRS | = lv_kokrs | |
| MESSAGES_SHOW | = lv_messages_show | |
| PERAB | = lv_perab | |
| PERBI | = lv_perbi | |
| UPDATE_VALUES | = lv_update_values | |
| TABLES | ||
| IRKU02JA | = lt_irku02ja | |
| EXCEPTIONS | ||
| MESSAGES_OCCURED = 1 | ||
| . " K_ACT_PLAN_INTERFACE_PERIOD | ||
ABAP code using 7.40 inline data declarations to call FM K_ACT_PLAN_INTERFACE_PERIOD
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 BLTXT FROM COBK INTO @DATA(ld_bltxt). | ||||
| DATA(ld_bltxt) | = ' '. | |||
| "SELECT single VERSN FROM COBK INTO @DATA(ld_versn). | ||||
| "SELECT single VRGNG FROM COBK INTO @DATA(ld_vrgng). | ||||
| DATA(ld_online_vb) | = ' '. | |||
| DATA(ld_irku02_cur) | = ' '. | |||
| DATA(ld_price_quant_plan) | = 'B'. | |||
| DATA(ld_testmode) | = ' '. | |||
| DATA(ld_commit) | = 'X'. | |||
| DATA(ld_delta) | = ' '. | |||
| "SELECT single GJAHR FROM COBK INTO @DATA(ld_gjahr). | ||||
| "SELECT single KOKRS FROM COBK INTO @DATA(ld_kokrs). | ||||
| DATA(ld_messages_show) | = ' '. | |||
| "SELECT single PERAB FROM COBK INTO @DATA(ld_perab). | ||||
| "SELECT single PERBI FROM COBK INTO @DATA(ld_perbi). | ||||
| DATA(ld_update_values) | = ' '. | |||
Search for further information about these or an SAP related objects