SAP K_KKB_PARTNER_SPLIT Function Module for
K_KKB_PARTNER_SPLIT is a standard k kkb partner split 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 kkb partner split FM, simply by entering the name K_KKB_PARTNER_SPLIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKB2
Program Name: SAPLKKB2
Main Program: SAPLKKB2
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_KKB_PARTNER_SPLIT 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_KKB_PARTNER_SPLIT'".
EXPORTING
I_WERKS = "
* I_DIPA = "
* I_PRCTR = "
* I_KALNR_BA = "
* I_KALNR = "
* I_ERZKA = '*' "Cost Estimate Created with Product Costing
I_MATNR = "
I_KLVAR = "
I_TVERS = "
I_KADKY = "
* I_SICHT = '01' "
* I_LOSGR = "
I_KOKRS = "
* I_OWAER = "
IMPORTING
E_PRCTR = "
EXCEPTIONS
NO_CALCULATION = 1 NO_AUTHORITY = 2 NO_PARTNER_SPLIT = 3
IMPORTING Parameters details for K_KKB_PARTNER_SPLIT
I_WERKS -
Data type: KEKO-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
I_DIPA -
Data type: KEPH-DIPAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRCTR -
Data type: MARC-PRCTROptional: Yes
Call by Reference: No ( called with pass by value option)
I_KALNR_BA -
Data type: KEKO-KALNR_BAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KALNR -
Data type: KEKO-KALNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_ERZKA - Cost Estimate Created with Product Costing
Data type: KEKO-ERZKADefault: '*'
Optional: Yes
Call by Reference: Yes
I_MATNR -
Data type: KEKO-MATNROptional: No
Call by Reference: No ( called with pass by value option)
I_KLVAR -
Data type: KEKO-KLVAROptional: No
Call by Reference: No ( called with pass by value option)
I_TVERS -
Data type: KEKO-TVERSOptional: No
Call by Reference: No ( called with pass by value option)
I_KADKY -
Data type: KEKO-KADKYOptional: No
Call by Reference: No ( called with pass by value option)
I_SICHT -
Data type: KKBE-SICHTDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LOSGR -
Data type: KEKO-LOSGROptional: Yes
Call by Reference: No ( called with pass by value option)
I_KOKRS -
Data type: KKBE-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_OWAER -
Data type: TKKB1-PAROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for K_KKB_PARTNER_SPLIT
E_PRCTR -
Data type: MARC-PRCTROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_CALCULATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PARTNER_SPLIT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for K_KKB_PARTNER_SPLIT 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_e_prctr | TYPE MARC-PRCTR, " | |||
| lv_i_werks | TYPE KEKO-WERKS, " | |||
| lv_no_calculation | TYPE KEKO, " | |||
| lv_i_dipa | TYPE KEPH-DIPA, " | |||
| lv_i_prctr | TYPE MARC-PRCTR, " | |||
| lv_i_kalnr_ba | TYPE KEKO-KALNR_BA, " | |||
| lv_i_kalnr | TYPE KEKO-KALNR, " | |||
| lv_i_erzka | TYPE KEKO-ERZKA, " '*' | |||
| lv_i_matnr | TYPE KEKO-MATNR, " | |||
| lv_no_authority | TYPE KEKO, " | |||
| lv_i_klvar | TYPE KEKO-KLVAR, " | |||
| lv_no_partner_split | TYPE KEKO, " | |||
| lv_i_tvers | TYPE KEKO-TVERS, " | |||
| lv_i_kadky | TYPE KEKO-KADKY, " | |||
| lv_i_sicht | TYPE KKBE-SICHT, " '01' | |||
| lv_i_losgr | TYPE KEKO-LOSGR, " | |||
| lv_i_kokrs | TYPE KKBE-KOKRS, " | |||
| lv_i_owaer | TYPE TKKB1-PAR. " |
|   CALL FUNCTION 'K_KKB_PARTNER_SPLIT' " |
| EXPORTING | ||
| I_WERKS | = lv_i_werks | |
| I_DIPA | = lv_i_dipa | |
| I_PRCTR | = lv_i_prctr | |
| I_KALNR_BA | = lv_i_kalnr_ba | |
| I_KALNR | = lv_i_kalnr | |
| I_ERZKA | = lv_i_erzka | |
| I_MATNR | = lv_i_matnr | |
| I_KLVAR | = lv_i_klvar | |
| I_TVERS | = lv_i_tvers | |
| I_KADKY | = lv_i_kadky | |
| I_SICHT | = lv_i_sicht | |
| I_LOSGR | = lv_i_losgr | |
| I_KOKRS | = lv_i_kokrs | |
| I_OWAER | = lv_i_owaer | |
| IMPORTING | ||
| E_PRCTR | = lv_e_prctr | |
| EXCEPTIONS | ||
| NO_CALCULATION = 1 | ||
| NO_AUTHORITY = 2 | ||
| NO_PARTNER_SPLIT = 3 | ||
| . " K_KKB_PARTNER_SPLIT | ||
ABAP code using 7.40 inline data declarations to call FM K_KKB_PARTNER_SPLIT
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 PRCTR FROM MARC INTO @DATA(ld_e_prctr). | ||||
| "SELECT single WERKS FROM KEKO INTO @DATA(ld_i_werks). | ||||
| "SELECT single DIPA FROM KEPH INTO @DATA(ld_i_dipa). | ||||
| "SELECT single PRCTR FROM MARC INTO @DATA(ld_i_prctr). | ||||
| "SELECT single KALNR_BA FROM KEKO INTO @DATA(ld_i_kalnr_ba). | ||||
| "SELECT single KALNR FROM KEKO INTO @DATA(ld_i_kalnr). | ||||
| "SELECT single ERZKA FROM KEKO INTO @DATA(ld_i_erzka). | ||||
| DATA(ld_i_erzka) | = '*'. | |||
| "SELECT single MATNR FROM KEKO INTO @DATA(ld_i_matnr). | ||||
| "SELECT single KLVAR FROM KEKO INTO @DATA(ld_i_klvar). | ||||
| "SELECT single TVERS FROM KEKO INTO @DATA(ld_i_tvers). | ||||
| "SELECT single KADKY FROM KEKO INTO @DATA(ld_i_kadky). | ||||
| "SELECT single SICHT FROM KKBE INTO @DATA(ld_i_sicht). | ||||
| DATA(ld_i_sicht) | = '01'. | |||
| "SELECT single LOSGR FROM KEKO INTO @DATA(ld_i_losgr). | ||||
| "SELECT single KOKRS FROM KKBE INTO @DATA(ld_i_kokrs). | ||||
| "SELECT single PAR FROM TKKB1 INTO @DATA(ld_i_owaer). | ||||
Search for further information about these or an SAP related objects