SAP K_KKB_ORIGIN_REPORT_CALL Function Module for









K_KKB_ORIGIN_REPORT_CALL is a standard k kkb origin 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 origin report call FM, simply by entering the name K_KKB_ORIGIN_REPORT_CALL into the relevant SAP transaction such as SE37 or SE38.

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



Function K_KKB_ORIGIN_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_ORIGIN_REPORT_CALL'"
EXPORTING
INPUT_DATA = "Input data for objects

TABLES
S_ABKAT = "Selection variance category
S_WRTTP = "Selection value type
S_ABVER = "Selection version variance
S_BEKNZ = "Selection debit indicator
S_GJAHR = "Selection fiscal year
S_HERKU = "Selection origin/partner
S_HRKFT = "Selection origin
S_KSTAR = "Selection cost element
S_PERBL = "Selection periods
S_VERSN = "Version Selection

EXCEPTIONS
INPUT_INCONSISTENT = 1
.



IMPORTING Parameters details for K_KKB_ORIGIN_REPORT_CALL

INPUT_DATA - Input data for objects

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

TABLES Parameters details for K_KKB_ORIGIN_REPORT_CALL

S_ABKAT - Selection variance category

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

S_WRTTP - Selection value type

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

S_ABVER - Selection version variance

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

S_BEKNZ - Selection debit indicator

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

S_GJAHR - Selection fiscal year

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

S_HERKU - Selection origin/partner

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

S_HRKFT - Selection origin

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

S_KSTAR - Selection cost element

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

S_PERBL - Selection periods

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

S_VERSN - Version Selection

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

EXCEPTIONS details

INPUT_INCONSISTENT - 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_ORIGIN_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:
lt_s_abkat  TYPE STANDARD TABLE OF STRING, "   
lv_input_data  TYPE KKBC, "   
lv_input_inconsistent  TYPE KKBC, "   
lt_s_wrttp  TYPE STANDARD TABLE OF KKBC, "   
lt_s_abver  TYPE STANDARD TABLE OF KKBC, "   
lt_s_beknz  TYPE STANDARD TABLE OF KKBC, "   
lt_s_gjahr  TYPE STANDARD TABLE OF KKBC, "   
lt_s_herku  TYPE STANDARD TABLE OF KKBC, "   
lt_s_hrkft  TYPE STANDARD TABLE OF KKBC, "   
lt_s_kstar  TYPE STANDARD TABLE OF KKBC, "   
lt_s_perbl  TYPE STANDARD TABLE OF KKBC, "   
lt_s_versn  TYPE STANDARD TABLE OF KKBC. "   

  CALL FUNCTION 'K_KKB_ORIGIN_REPORT_CALL'  "
    EXPORTING
         INPUT_DATA = lv_input_data
    TABLES
         S_ABKAT = lt_s_abkat
         S_WRTTP = lt_s_wrttp
         S_ABVER = lt_s_abver
         S_BEKNZ = lt_s_beknz
         S_GJAHR = lt_s_gjahr
         S_HERKU = lt_s_herku
         S_HRKFT = lt_s_hrkft
         S_KSTAR = lt_s_kstar
         S_PERBL = lt_s_perbl
         S_VERSN = lt_s_versn
    EXCEPTIONS
        INPUT_INCONSISTENT = 1
. " K_KKB_ORIGIN_REPORT_CALL




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

 
 
 
 
 
 
 
 
 
 
 
 


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!