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

Function K_COB_LINK_CHECK_MULTI 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_COB_LINK_CHECK_MULTI'".
EXPORTING
I_KTRTP = "
* I_PLNNR = "Task List Group
* I_COMPLETE_ORDER_DATA_FROM_DB = 'X' "
* I_OBJNR = "
* I_AWSLS = "
* I_AUTYP = "
* I_FLG_MLTPS = "
* I_PRODNET = "
* I_COLORDPROC = "
* I_PKOSA = "
* I_KZBWS = "
* I_TOP_READ = ' ' "
* I_SOBKZ = "
* I_AUFNR = "Order Number
* I_MATNR = "Material
* I_WERKS = "Plant
* I_PROCNR = "
* I_VERSN = "Version
* I_SAUFN = "Run Schedule Header
* I_PLNAL = "Alternative task list
TABLES
* T_CKPE = "
* T_CKPH = "
* T_CKPHS = "Control for Cost Object Category
EXCEPTIONS
NO_LINK = 1 NO_ROOT = 2 LINK_CHECK_INTERNAL_ERROR = 3
IMPORTING Parameters details for K_COB_LINK_CHECK_MULTI
I_KTRTP -
Data type: CKPHS-KTRTPOptional: No
Call by Reference: No ( called with pass by value option)
I_PLNNR - Task List Group
Data type: CKPE-PLNNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_COMPLETE_ORDER_DATA_FROM_DB -
Data type: DATATYPE-CHAR0001Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJNR -
Data type: AUFK-OBJNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_AWSLS -
Data type: AUFK-AWSLSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AUTYP -
Data type: AUFK-AUTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MLTPS -
Data type: AUFK-FLG_MLTPSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRODNET -
Data type: AFKO-PRODNETOptional: Yes
Call by Reference: No ( called with pass by value option)
I_COLORDPROC -
Data type: AFKO-COLORDPROCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PKOSA -
Data type: AUFK-PKOSAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KZBWS -
Data type: AFPO-KZBWSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TOP_READ -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SOBKZ -
Data type: AFPO-SOBKZOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AUFNR - Order Number
Data type: CKPE-AUFNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATNR - Material
Data type: CKPE-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS - Plant
Data type: CKPE-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PROCNR -
Data type: CKPE-PROCNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_VERSN - Version
Data type: CKPE-VERSNOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SAUFN - Run Schedule Header
Data type: CKPE-SAUFNOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PLNAL - Alternative task list
Data type: CKPE-PLNALOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_COB_LINK_CHECK_MULTI
T_CKPE -
Data type: CKPEOptional: Yes
Call by Reference: No ( called with pass by value option)
T_CKPH -
Data type: CKPHOptional: Yes
Call by Reference: No ( called with pass by value option)
T_CKPHS - Control for Cost Object Category
Data type: CKPHSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_LINK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ROOT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LINK_CHECK_INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_COB_LINK_CHECK_MULTI 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_ckpe | TYPE STANDARD TABLE OF CKPE, " | |||
| lv_i_ktrtp | TYPE CKPHS-KTRTP, " | |||
| lv_no_link | TYPE CKPHS, " | |||
| lv_i_plnnr | TYPE CKPE-PLNNR, " | |||
| lv_i_complete_order_data_from_db | TYPE DATATYPE-CHAR0001, " 'X' | |||
| lv_i_objnr | TYPE AUFK-OBJNR, " | |||
| lv_i_awsls | TYPE AUFK-AWSLS, " | |||
| lv_i_autyp | TYPE AUFK-AUTYP, " | |||
| lv_i_flg_mltps | TYPE AUFK-FLG_MLTPS, " | |||
| lv_i_prodnet | TYPE AFKO-PRODNET, " | |||
| lv_i_colordproc | TYPE AFKO-COLORDPROC, " | |||
| lv_i_pkosa | TYPE AUFK-PKOSA, " | |||
| lv_i_kzbws | TYPE AFPO-KZBWS, " | |||
| lt_t_ckph | TYPE STANDARD TABLE OF CKPH, " | |||
| lv_no_root | TYPE CKPH, " | |||
| lv_i_top_read | TYPE C, " SPACE | |||
| lv_i_sobkz | TYPE AFPO-SOBKZ, " | |||
| lv_i_aufnr | TYPE CKPE-AUFNR, " | |||
| lt_t_ckphs | TYPE STANDARD TABLE OF CKPHS, " | |||
| lv_link_check_internal_error | TYPE CKPHS, " | |||
| lv_i_matnr | TYPE CKPE-MATNR, " | |||
| lv_i_werks | TYPE CKPE-WERKS, " | |||
| lv_i_procnr | TYPE CKPE-PROCNR, " | |||
| lv_i_versn | TYPE CKPE-VERSN, " | |||
| lv_i_saufn | TYPE CKPE-SAUFN, " | |||
| lv_i_plnal | TYPE CKPE-PLNAL. " |
|   CALL FUNCTION 'K_COB_LINK_CHECK_MULTI' " |
| EXPORTING | ||
| I_KTRTP | = lv_i_ktrtp | |
| I_PLNNR | = lv_i_plnnr | |
| I_COMPLETE_ORDER_DATA_FROM_DB | = lv_i_complete_order_data_from_db | |
| I_OBJNR | = lv_i_objnr | |
| I_AWSLS | = lv_i_awsls | |
| I_AUTYP | = lv_i_autyp | |
| I_FLG_MLTPS | = lv_i_flg_mltps | |
| I_PRODNET | = lv_i_prodnet | |
| I_COLORDPROC | = lv_i_colordproc | |
| I_PKOSA | = lv_i_pkosa | |
| I_KZBWS | = lv_i_kzbws | |
| I_TOP_READ | = lv_i_top_read | |
| I_SOBKZ | = lv_i_sobkz | |
| I_AUFNR | = lv_i_aufnr | |
| I_MATNR | = lv_i_matnr | |
| I_WERKS | = lv_i_werks | |
| I_PROCNR | = lv_i_procnr | |
| I_VERSN | = lv_i_versn | |
| I_SAUFN | = lv_i_saufn | |
| I_PLNAL | = lv_i_plnal | |
| TABLES | ||
| T_CKPE | = lt_t_ckpe | |
| T_CKPH | = lt_t_ckph | |
| T_CKPHS | = lt_t_ckphs | |
| EXCEPTIONS | ||
| NO_LINK = 1 | ||
| NO_ROOT = 2 | ||
| LINK_CHECK_INTERNAL_ERROR = 3 | ||
| . " K_COB_LINK_CHECK_MULTI | ||
ABAP code using 7.40 inline data declarations to call FM K_COB_LINK_CHECK_MULTI
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 KTRTP FROM CKPHS INTO @DATA(ld_i_ktrtp). | ||||
| "SELECT single PLNNR FROM CKPE INTO @DATA(ld_i_plnnr). | ||||
| "SELECT single CHAR0001 FROM DATATYPE INTO @DATA(ld_i_complete_order_data_from_db). | ||||
| DATA(ld_i_complete_order_data_from_db) | = 'X'. | |||
| "SELECT single OBJNR FROM AUFK INTO @DATA(ld_i_objnr). | ||||
| "SELECT single AWSLS FROM AUFK INTO @DATA(ld_i_awsls). | ||||
| "SELECT single AUTYP FROM AUFK INTO @DATA(ld_i_autyp). | ||||
| "SELECT single FLG_MLTPS FROM AUFK INTO @DATA(ld_i_flg_mltps). | ||||
| "SELECT single PRODNET FROM AFKO INTO @DATA(ld_i_prodnet). | ||||
| "SELECT single COLORDPROC FROM AFKO INTO @DATA(ld_i_colordproc). | ||||
| "SELECT single PKOSA FROM AUFK INTO @DATA(ld_i_pkosa). | ||||
| "SELECT single KZBWS FROM AFPO INTO @DATA(ld_i_kzbws). | ||||
| DATA(ld_i_top_read) | = ' '. | |||
| "SELECT single SOBKZ FROM AFPO INTO @DATA(ld_i_sobkz). | ||||
| "SELECT single AUFNR FROM CKPE INTO @DATA(ld_i_aufnr). | ||||
| "SELECT single MATNR FROM CKPE INTO @DATA(ld_i_matnr). | ||||
| "SELECT single WERKS FROM CKPE INTO @DATA(ld_i_werks). | ||||
| "SELECT single PROCNR FROM CKPE INTO @DATA(ld_i_procnr). | ||||
| "SELECT single VERSN FROM CKPE INTO @DATA(ld_i_versn). | ||||
| "SELECT single SAUFN FROM CKPE INTO @DATA(ld_i_saufn). | ||||
| "SELECT single PLNAL FROM CKPE INTO @DATA(ld_i_plnal). | ||||
Search for further information about these or an SAP related objects