SAP K_RATIO_PLAN_INTERFACE_TOTAL Function Module for Transfer Statistical Key Figure Planning with Totals Values
K_RATIO_PLAN_INTERFACE_TOTAL is a standard k ratio plan interface total 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 Statistical Key Figure Planning with Totals 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 ratio plan interface total FM, simply by entering the name K_RATIO_PLAN_INTERFACE_TOTAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: KIPL
Program Name: SAPLKIPL
Main Program: SAPLKIPL
Appliation area: K
Release date: 17-Jul-1996
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_RATIO_PLAN_INTERFACE_TOTAL 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_RATIO_PLAN_INTERFACE_TOTAL'"Transfer Statistical Key Figure Planning with Totals Values.
EXPORTING
* BLTXT = ' ' "Document text
VRGNG = "
* ONLINE_VB = ' ' "Post online
* TESTMODE = ' ' "Test mode
* DELTA = ' ' "Indicator: Add up New and Existing Values
* COMMIT = 'X' "Carry out commit work
GJAHR = "
KOKRS = "
* MESSAGES_SHOW = ' ' "Issue messages
PERAB = "
PERBI = "
* UPDATE_VALUES = ' ' "Indicator: Overwrite existing values
VERSN = "
TABLES
IRKU02G = "Plan values
EXCEPTIONS
MESSAGES_OCCURED = 1
IMPORTING Parameters details for K_RATIO_PLAN_INTERFACE_TOTAL
BLTXT - Document text
Data type: COBK-BLTXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VRGNG -
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)
TESTMODE - Test mode
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DELTA - Indicator: Add up New and Existing Values
Data type: CO_DELTADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMIT - Carry out commit work
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GJAHR -
Data type: COBK-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
KOKRS -
Data type: COBK-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
MESSAGES_SHOW - Issue messages
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PERAB -
Data type: COBK-PERABOptional: No
Call by Reference: No ( called with pass by value option)
PERBI -
Data type: COBK-PERBIOptional: No
Call by Reference: No ( called with pass by value option)
UPDATE_VALUES - Indicator: Overwrite existing values
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERSN -
Data type: COBK-VERSNOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_RATIO_PLAN_INTERFACE_TOTAL
IRKU02G - Plan values
Data type: RKU02GOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MESSAGES_OCCURED - Messages occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_RATIO_PLAN_INTERFACE_TOTAL 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_irku02g | TYPE STANDARD TABLE OF RKU02G, " | |||
| lv_messages_occured | TYPE RKU02G, " | |||
| lv_vrgng | TYPE COBK-VRGNG, " | |||
| lv_online_vb | TYPE COBK, " SPACE | |||
| lv_testmode | TYPE C, " SPACE | |||
| lv_delta | TYPE CO_DELTA, " SPACE | |||
| lv_commit | TYPE CO_DELTA, " 'X' | |||
| 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 | |||
| lv_versn | TYPE COBK-VERSN. " |
|   CALL FUNCTION 'K_RATIO_PLAN_INTERFACE_TOTAL' "Transfer Statistical Key Figure Planning with Totals Values |
| EXPORTING | ||
| BLTXT | = lv_bltxt | |
| VRGNG | = lv_vrgng | |
| ONLINE_VB | = lv_online_vb | |
| TESTMODE | = lv_testmode | |
| DELTA | = lv_delta | |
| COMMIT | = lv_commit | |
| GJAHR | = lv_gjahr | |
| KOKRS | = lv_kokrs | |
| MESSAGES_SHOW | = lv_messages_show | |
| PERAB | = lv_perab | |
| PERBI | = lv_perbi | |
| UPDATE_VALUES | = lv_update_values | |
| VERSN | = lv_versn | |
| TABLES | ||
| IRKU02G | = lt_irku02g | |
| EXCEPTIONS | ||
| MESSAGES_OCCURED = 1 | ||
| . " K_RATIO_PLAN_INTERFACE_TOTAL | ||
ABAP code using 7.40 inline data declarations to call FM K_RATIO_PLAN_INTERFACE_TOTAL
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 VRGNG FROM COBK INTO @DATA(ld_vrgng). | ||||
| DATA(ld_online_vb) | = ' '. | |||
| DATA(ld_testmode) | = ' '. | |||
| DATA(ld_delta) | = ' '. | |||
| DATA(ld_commit) | = 'X'. | |||
| "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) | = ' '. | |||
| "SELECT single VERSN FROM COBK INTO @DATA(ld_versn). | ||||
Search for further information about these or an SAP related objects