SAP KKRS_PARTNER_SPLIT_TREE Function Module for Partner Cost Component Split









KKRS_PARTNER_SPLIT_TREE is a standard kkrs partner split tree SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Partner Cost Component Split 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 kkrs partner split tree FM, simply by entering the name KKRS_PARTNER_SPLIT_TREE into the relevant SAP transaction such as SE37 or SE38.

Function Group: KKRSOO
Program Name: SAPLKKRSOO
Main Program: SAPLKKRSOO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function KKRS_PARTNER_SPLIT_TREE 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 'KKRS_PARTNER_SPLIT_TREE'"Partner Cost Component Split
EXPORTING
IS_KEKOKEY = "Key Fields for KEKO Without Client
* I_VIEW = '01' "Cost Component View
* I_BZ_LOSGR = "Reference Lot Size
* I_BZ_MEEHT = "Unit of Measure
* I_OWAER = 'X' "

TABLES
IT_KEPH_EXTD = "

EXCEPTIONS
NO_SPLITTING_DATA = 1 KEKO_NOT_FOUND = 2 INTERNAL_ERROR = 3
.



IMPORTING Parameters details for KKRS_PARTNER_SPLIT_TREE

IS_KEKOKEY - Key Fields for KEKO Without Client

Data type: CKKEKOKEY
Optional: No
Call by Reference: Yes

I_VIEW - Cost Component View

Data type: TCKH8-SICHT
Default: '01'
Optional: Yes
Call by Reference: Yes

I_BZ_LOSGR - Reference Lot Size

Data type: CK_KOSMNG
Optional: Yes
Call by Reference: Yes

I_BZ_MEEHT - Unit of Measure

Data type: MEINS
Optional: Yes
Call by Reference: Yes

I_OWAER -

Data type: CHAR01
Default: 'X'
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for KKRS_PARTNER_SPLIT_TREE

IT_KEPH_EXTD -

Data type: CKS_KEPH_EXTD_TABLE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_SPLITTING_DATA - No Cost Component Split Data Exists

Data type:
Optional: No
Call by Reference: Yes

KEKO_NOT_FOUND - KEKO_NOT_FOUND

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR - Other error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for KKRS_PARTNER_SPLIT_TREE 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_is_kekokey  TYPE CKKEKOKEY, "   
lt_it_keph_extd  TYPE STANDARD TABLE OF CKS_KEPH_EXTD_TABLE, "   
lv_no_splitting_data  TYPE CKS_KEPH_EXTD_TABLE, "   
lv_i_view  TYPE TCKH8-SICHT, "   '01'
lv_keko_not_found  TYPE TCKH8, "   
lv_i_bz_losgr  TYPE CK_KOSMNG, "   
lv_internal_error  TYPE CK_KOSMNG, "   
lv_i_bz_meeht  TYPE MEINS, "   
lv_i_owaer  TYPE CHAR01. "   'X'

  CALL FUNCTION 'KKRS_PARTNER_SPLIT_TREE'  "Partner Cost Component Split
    EXPORTING
         IS_KEKOKEY = lv_is_kekokey
         I_VIEW = lv_i_view
         I_BZ_LOSGR = lv_i_bz_losgr
         I_BZ_MEEHT = lv_i_bz_meeht
         I_OWAER = lv_i_owaer
    TABLES
         IT_KEPH_EXTD = lt_it_keph_extd
    EXCEPTIONS
        NO_SPLITTING_DATA = 1
        KEKO_NOT_FOUND = 2
        INTERNAL_ERROR = 3
. " KKRS_PARTNER_SPLIT_TREE




ABAP code using 7.40 inline data declarations to call FM KKRS_PARTNER_SPLIT_TREE

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 SICHT FROM TCKH8 INTO @DATA(ld_i_view).
DATA(ld_i_view) = '01'.
 
 
 
 
 
DATA(ld_i_owaer) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!