SAP K_KKB_GENERAL_REPORT_CALL Function Module for









K_KKB_GENERAL_REPORT_CALL is a standard k kkb general 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 general report call FM, simply by entering the name K_KKB_GENERAL_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_GENERAL_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_GENERAL_REPORT_CALL'"
EXPORTING
* AUFL_FLAG = ' ' "Option delete group yes/no
RGJNR = "Report group
* EXC_NO_SUBMIT_RAISE = ' ' "
* SETPOS = ' ' "Item of the set variable
* VAR_DEF = ' ' "Variation selection is active
* VAR_VAL = '*' "
* NO_JOB_READ = ' ' "
* I_VALDATE = 99992131 "
* BATCH = ' ' "Switch background/online
* CHOICE_BJ = ' ' "Selection background job yes/no
* CHOICE_IN = ' ' "Choice INDX stock yes/no
* EDITION = 'X' "Carry out editing
* INDXN = ' ' "INDX stock
* INDXT = ' ' "Update INDX
* JOBNAME = SY-UNAME "Job name for background processing
* LSTALL = ' ' "List all

IMPORTING
EXIT = "Cancelation by user
JOBNAME = "Job name for background processing

TABLES
GLOBALS = "Parameter table
SEL_TAB1 = "Selection 1
SEL_TAB2 = "Selection 2

EXCEPTIONS
INTERNAL_ERROR = 1 NO_SUBMIT_POSSIBLE = 2 FUNCTION_NOT_SUPPORTED = 3
.



IMPORTING Parameters details for K_KKB_GENERAL_REPORT_CALL

AUFL_FLAG - Option delete group yes/no

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RGJNR - Report group

Data type: TKKB1-BGR
Optional: No
Call by Reference: No ( called with pass by value option)

EXC_NO_SUBMIT_RAISE -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SETPOS - Item of the set variable

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VAR_DEF - Variation selection is active

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VAR_VAL -

Data type:
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_JOB_READ -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VALDATE -

Data type: GREP_PARAM-VALDATE
Default: 99992131
Optional: Yes
Call by Reference: No ( called with pass by value option)

BATCH - Switch background/online

Data type: SY-BATCH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHOICE_BJ - Selection background job yes/no

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHOICE_IN - Choice INDX stock yes/no

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EDITION - Carry out editing

Data type: RGRWA-EDITION
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

INDXN - INDX stock

Data type: RGRWA-INDXN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

INDXT - Update INDX

Data type: RGRWA-INDXT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

JOBNAME - Job name for background processing

Data type: TBTCO-JOBNAME
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

LSTALL - List all

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for K_KKB_GENERAL_REPORT_CALL

EXIT - Cancelation by user

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

JOBNAME - Job name for background processing

Data type: TBTCO-JOBNAME
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for K_KKB_GENERAL_REPORT_CALL

GLOBALS - Parameter table

Data type: KKB2
Optional: No
Call by Reference: No ( called with pass by value option)

SEL_TAB1 - Selection 1

Data type: KKB1
Optional: No
Call by Reference: No ( called with pass by value option)

SEL_TAB2 - Selection 2

Data type: KKB1
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INTERNAL_ERROR - Internal error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_SUBMIT_POSSIBLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FUNCTION_NOT_SUPPORTED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for K_KKB_GENERAL_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_exit  TYPE STRING, "   
lt_globals  TYPE STANDARD TABLE OF KKB2, "   
lv_aufl_flag  TYPE KKB2, "   SPACE
lv_internal_error  TYPE KKB2, "   
lv_rgjnr  TYPE TKKB1-BGR, "   
lv_exc_no_submit_raise  TYPE TKKB1, "   SPACE
lv_setpos  TYPE TKKB1, "   SPACE
lv_var_def  TYPE TKKB1, "   SPACE
lv_var_val  TYPE TKKB1, "   '*'
lv_no_job_read  TYPE TKKB1, "   SPACE
lv_i_valdate  TYPE GREP_PARAM-VALDATE, "   99992131
lv_batch  TYPE SY-BATCH, "   SPACE
lv_jobname  TYPE TBTCO-JOBNAME, "   
lt_sel_tab1  TYPE STANDARD TABLE OF KKB1, "   
lv_no_submit_possible  TYPE KKB1, "   
lt_sel_tab2  TYPE STANDARD TABLE OF KKB1, "   
lv_choice_bj  TYPE KKB1, "   SPACE
lv_function_not_supported  TYPE KKB1, "   
lv_choice_in  TYPE KKB1, "   SPACE
lv_edition  TYPE RGRWA-EDITION, "   'X'
lv_indxn  TYPE RGRWA-INDXN, "   SPACE
lv_indxt  TYPE RGRWA-INDXT, "   SPACE
lv_jobname  TYPE TBTCO-JOBNAME, "   SY-UNAME
lv_lstall  TYPE TBTCO. "   SPACE

  CALL FUNCTION 'K_KKB_GENERAL_REPORT_CALL'  "
    EXPORTING
         AUFL_FLAG = lv_aufl_flag
         RGJNR = lv_rgjnr
         EXC_NO_SUBMIT_RAISE = lv_exc_no_submit_raise
         SETPOS = lv_setpos
         VAR_DEF = lv_var_def
         VAR_VAL = lv_var_val
         NO_JOB_READ = lv_no_job_read
         I_VALDATE = lv_i_valdate
         BATCH = lv_batch
         CHOICE_BJ = lv_choice_bj
         CHOICE_IN = lv_choice_in
         EDITION = lv_edition
         INDXN = lv_indxn
         INDXT = lv_indxt
         JOBNAME = lv_jobname
         LSTALL = lv_lstall
    IMPORTING
         EXIT = lv_exit
         JOBNAME = lv_jobname
    TABLES
         GLOBALS = lt_globals
         SEL_TAB1 = lt_sel_tab1
         SEL_TAB2 = lt_sel_tab2
    EXCEPTIONS
        INTERNAL_ERROR = 1
        NO_SUBMIT_POSSIBLE = 2
        FUNCTION_NOT_SUPPORTED = 3
. " K_KKB_GENERAL_REPORT_CALL




ABAP code using 7.40 inline data declarations to call FM K_KKB_GENERAL_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.

 
 
DATA(ld_aufl_flag) = ' '.
 
 
"SELECT single BGR FROM TKKB1 INTO @DATA(ld_rgjnr).
 
DATA(ld_exc_no_submit_raise) = ' '.
 
DATA(ld_setpos) = ' '.
 
DATA(ld_var_def) = ' '.
 
DATA(ld_var_val) = '*'.
 
DATA(ld_no_job_read) = ' '.
 
"SELECT single VALDATE FROM GREP_PARAM INTO @DATA(ld_i_valdate).
DATA(ld_i_valdate) = 99992131.
 
"SELECT single BATCH FROM SY INTO @DATA(ld_batch).
DATA(ld_batch) = ' '.
 
"SELECT single JOBNAME FROM TBTCO INTO @DATA(ld_jobname).
 
 
 
 
DATA(ld_choice_bj) = ' '.
 
 
DATA(ld_choice_in) = ' '.
 
"SELECT single EDITION FROM RGRWA INTO @DATA(ld_edition).
DATA(ld_edition) = 'X'.
 
"SELECT single INDXN FROM RGRWA INTO @DATA(ld_indxn).
DATA(ld_indxn) = ' '.
 
"SELECT single INDXT FROM RGRWA INTO @DATA(ld_indxt).
DATA(ld_indxt) = ' '.
 
"SELECT single JOBNAME FROM TBTCO INTO @DATA(ld_jobname).
DATA(ld_jobname) = SY-UNAME.
 
DATA(ld_lstall) = ' '.
 


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!