SAP K_LINE_ITEM_ACT_CALL_WITH_DATA Function Module for









K_LINE_ITEM_ACT_CALL_WITH_DATA is a standard k line item act call with data 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 line item act call with data FM, simply by entering the name K_LINE_ITEM_ACT_CALL_WITH_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function K_LINE_ITEM_ACT_CALL_WITH_DATA 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_LINE_ITEM_ACT_CALL_WITH_DATA'"
EXPORTING
I_REP_OBJECT = "Report Object
* I_TRANSFER_VERSIONS = 'X' "
* I_DISPLAY_VARIANT = "
I_CO_AREA = "Controlling Area
* I_ACTUAL_VERSION = '000' "Plan Version
* I_FROM_PER = "From Period
* I_TO_PER = "To Period
* I_YEAR = "Fiscal Year
* IT_COSEL = "
* I_CALLBACK_PROGRAM = "
* I_EXIT_SET_TITLE = "

TABLES
T_COEP = "Line Item Table
* T_COBK = "Document Header Table

EXCEPTIONS
NO_DATA = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLKAEP_001 Line Item Reports in Actual: Customer-Specific Fields in Display Variant
EXIT_SAPLKAEP_002 Line Item Reports in Plan: Customer-Specific Fields in Display Variant
EXIT_SAPLKAEP_003 Line Item Reports in Commit.:Customer-Specific Fields in Display Variant
EXIT_SAPLKAEP_004 Line Item Reports Budget: Customer-Specific Fields in Display Variant
EXIT_SAPLKAEP_005 Line Item Reports in Actual: Customer-Specific Authorization Check
EXIT_SAPLKAEP_006 Line Item Reports in Plan: Customer-Specific Authorization Check
EXIT_SAPLKAEP_007 Line Item Reports in Commitment: Customer-Specific Authorization Check
EXIT_SAPLKAEP_008 Line Item Reports Budget: Customer-Specific Authorization Check
EXIT_SAPLKAEP_009 Line Item Reports: Customer-Specific Preparation of Lists

IMPORTING Parameters details for K_LINE_ITEM_ACT_CALL_WITH_DATA

I_REP_OBJECT - Report Object

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

I_TRANSFER_VERSIONS -

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

I_DISPLAY_VARIANT -

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

I_CO_AREA - Controlling Area

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

I_ACTUAL_VERSION - Plan Version

Data type: COEP-VERSN
Default: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FROM_PER - From Period

Data type: COVJA-PERAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TO_PER - To Period

Data type: COVJA-PERBI
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_YEAR - Fiscal Year

Data type: COVJA-GJAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_COSEL -

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

I_CALLBACK_PROGRAM -

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

I_EXIT_SET_TITLE -

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

TABLES Parameters details for K_LINE_ITEM_ACT_CALL_WITH_DATA

T_COEP - Line Item Table

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

T_COBK - Document Header Table

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

EXCEPTIONS details

NO_DATA -

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

Copy and paste ABAP code example for K_LINE_ITEM_ACT_CALL_WITH_DATA 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_coep  TYPE STANDARD TABLE OF COEP, "   
lv_no_data  TYPE COEP, "   
lv_i_rep_object  TYPE KAEP_REP_OBJECT, "   
lv_i_transfer_versions  TYPE KAEP_FLAG, "   'X'
lv_i_display_variant  TYPE KAEP_DISVARIANT, "   
lt_t_cobk  TYPE STANDARD TABLE OF COBK, "   
lv_i_co_area  TYPE TKA01-KOKRS, "   
lv_i_actual_version  TYPE COEP-VERSN, "   '000'
lv_i_from_per  TYPE COVJA-PERAB, "   
lv_i_to_per  TYPE COVJA-PERBI, "   
lv_i_year  TYPE COVJA-GJAHR, "   
lv_it_cosel  TYPE KAEP_T_COSEL, "   
lv_i_callback_program  TYPE SY-REPID, "   
lv_i_exit_set_title  TYPE KAEP_FORMNAME. "   

  CALL FUNCTION 'K_LINE_ITEM_ACT_CALL_WITH_DATA'  "
    EXPORTING
         I_REP_OBJECT = lv_i_rep_object
         I_TRANSFER_VERSIONS = lv_i_transfer_versions
         I_DISPLAY_VARIANT = lv_i_display_variant
         I_CO_AREA = lv_i_co_area
         I_ACTUAL_VERSION = lv_i_actual_version
         I_FROM_PER = lv_i_from_per
         I_TO_PER = lv_i_to_per
         I_YEAR = lv_i_year
         IT_COSEL = lv_it_cosel
         I_CALLBACK_PROGRAM = lv_i_callback_program
         I_EXIT_SET_TITLE = lv_i_exit_set_title
    TABLES
         T_COEP = lt_t_coep
         T_COBK = lt_t_cobk
    EXCEPTIONS
        NO_DATA = 1
. " K_LINE_ITEM_ACT_CALL_WITH_DATA




ABAP code using 7.40 inline data declarations to call FM K_LINE_ITEM_ACT_CALL_WITH_DATA

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_i_transfer_versions) = 'X'.
 
 
 
"SELECT single KOKRS FROM TKA01 INTO @DATA(ld_i_co_area).
 
"SELECT single VERSN FROM COEP INTO @DATA(ld_i_actual_version).
DATA(ld_i_actual_version) = '000'.
 
"SELECT single PERAB FROM COVJA INTO @DATA(ld_i_from_per).
 
"SELECT single PERBI FROM COVJA INTO @DATA(ld_i_to_per).
 
"SELECT single GJAHR FROM COVJA INTO @DATA(ld_i_year).
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_i_callback_program).
 
 


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!