SAP K_KKB_VD_REPORT_CALL Function Module for
K_KKB_VD_REPORT_CALL is a standard k kkb vd report call 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 vd report call FM, simply by entering the name K_KKB_VD_REPORT_CALL 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_VD_REPORT_CALL 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_VD_REPORT_CALL'".
EXPORTING
* BATCH = ' ' "Background processing yes/no
* NO_ROOT_INIT = ' ' "
* PAR_FROM_CUST = ' ' "Control parameters from report list
* I_TRSTI = "
* I_PIVOT = "Control Parameters KKBCS
* I_RW_FORCED = ' ' "Program running in background
* CHOICE_J = ' ' "Select report group yes/no
* CHOICE_K = ' ' "Select cost element layout yes/no
* CHOICE_P = ' ' "Select report parameters yes/no
* IANW = '1' "Application
KOKRS = "Controlling area
* KST = ' ' "Cost element layout
P_CKRCO = "Summarization Node
* RGJNR = ' ' "Report group
TABLES
* GLOBALS = "Table with Report Parameters
* T_EXCTAB = "
EXCEPTIONS
INTERNAL_ERROR = 1 NO_JOB = 2 NO_KST = 3 WRONG_INPUT = 4
IMPORTING Parameters details for K_KKB_VD_REPORT_CALL
BATCH - Background processing yes/no
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_ROOT_INIT -
Data type: TKKB1-FEHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR_FROM_CUST - Control parameters from report list
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TRSTI -
Data type: TRSTIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PIVOT - Control Parameters KKBCS
Data type: KKB_PIVOTOptional: Yes
Call by Reference: Yes
I_RW_FORCED - Program running in background
Data type: SYBATCHDefault: SPACE
Optional: Yes
Call by Reference: Yes
CHOICE_J - Select report group yes/no
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHOICE_K - Select cost element layout yes/no
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHOICE_P - Select report parameters yes/no
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IANW - Application
Data type: TKKB1-ANWDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KOKRS - Controlling area
Data type: KKBC-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
KST - Cost element layout
Data type: TKKB2-KSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_CKRCO - Summarization Node
Data type: CKRCOOptional: No
Call by Reference: No ( called with pass by value option)
RGJNR - Report group
Data type: TKKB1-BGRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_KKB_VD_REPORT_CALL
GLOBALS - Table with Report Parameters
Data type: KKB2Optional: Yes
Call by Reference: Yes
T_EXCTAB -
Data type: KKB_ETABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INTERNAL_ERROR - Internal error occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_JOB - No report group available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_KST - No cost element layout available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_INPUT - Incorrect entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_KKB_VD_REPORT_CALL 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_batch | TYPE SY-BATCH, " SPACE | |||
lt_globals | TYPE STANDARD TABLE OF KKB2, " | |||
lv_internal_error | TYPE KKB2, " | |||
lv_no_root_init | TYPE TKKB1-FEH, " SPACE | |||
lv_par_from_cust | TYPE TKKB1, " SPACE | |||
lv_i_trsti | TYPE TRSTI, " | |||
lv_i_pivot | TYPE KKB_PIVOT, " | |||
lv_i_rw_forced | TYPE SYBATCH, " SPACE | |||
lv_no_job | TYPE SYBATCH, " | |||
lv_choice_j | TYPE SYBATCH, " SPACE | |||
lt_t_exctab | TYPE STANDARD TABLE OF KKB_ETAB, " | |||
lv_no_kst | TYPE KKB_ETAB, " | |||
lv_choice_k | TYPE KKB_ETAB, " SPACE | |||
lv_choice_p | TYPE KKB_ETAB, " SPACE | |||
lv_wrong_input | TYPE KKB_ETAB, " | |||
lv_ianw | TYPE TKKB1-ANW, " '1' | |||
lv_kokrs | TYPE KKBC-KOKRS, " | |||
lv_kst | TYPE TKKB2-KST, " SPACE | |||
lv_p_ckrco | TYPE CKRCO, " | |||
lv_rgjnr | TYPE TKKB1-BGR. " SPACE |
  CALL FUNCTION 'K_KKB_VD_REPORT_CALL' " |
EXPORTING | ||
BATCH | = lv_batch | |
NO_ROOT_INIT | = lv_no_root_init | |
PAR_FROM_CUST | = lv_par_from_cust | |
I_TRSTI | = lv_i_trsti | |
I_PIVOT | = lv_i_pivot | |
I_RW_FORCED | = lv_i_rw_forced | |
CHOICE_J | = lv_choice_j | |
CHOICE_K | = lv_choice_k | |
CHOICE_P | = lv_choice_p | |
IANW | = lv_ianw | |
KOKRS | = lv_kokrs | |
KST | = lv_kst | |
P_CKRCO | = lv_p_ckrco | |
RGJNR | = lv_rgjnr | |
TABLES | ||
GLOBALS | = lt_globals | |
T_EXCTAB | = lt_t_exctab | |
EXCEPTIONS | ||
INTERNAL_ERROR = 1 | ||
NO_JOB = 2 | ||
NO_KST = 3 | ||
WRONG_INPUT = 4 | ||
. " K_KKB_VD_REPORT_CALL |
ABAP code using 7.40 inline data declarations to call FM K_KKB_VD_REPORT_CALL
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 BATCH FROM SY INTO @DATA(ld_batch). | ||||
DATA(ld_batch) | = ' '. | |||
"SELECT single FEH FROM TKKB1 INTO @DATA(ld_no_root_init). | ||||
DATA(ld_no_root_init) | = ' '. | |||
DATA(ld_par_from_cust) | = ' '. | |||
DATA(ld_i_rw_forced) | = ' '. | |||
DATA(ld_choice_j) | = ' '. | |||
DATA(ld_choice_k) | = ' '. | |||
DATA(ld_choice_p) | = ' '. | |||
"SELECT single ANW FROM TKKB1 INTO @DATA(ld_ianw). | ||||
DATA(ld_ianw) | = '1'. | |||
"SELECT single KOKRS FROM KKBC INTO @DATA(ld_kokrs). | ||||
"SELECT single KST FROM TKKB2 INTO @DATA(ld_kst). | ||||
DATA(ld_kst) | = ' '. | |||
"SELECT single BGR FROM TKKB1 INTO @DATA(ld_rgjnr). | ||||
DATA(ld_rgjnr) | = ' '. | |||
Search for further information about these or an SAP related objects