SAP K_LINE_ITEM_ACT_DATA_GET Function Module for









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

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



Function K_LINE_ITEM_ACT_DATA_GET 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_DATA_GET'"
EXPORTING
I_CALLING_REPORT = "Calling Program
* I_USEAR = ' ' "Checkbox for Choice of Data Input from the Archive
I_REP_OBJECT = "Report Object
* I_DISPLAY_VARIANT = "Layout
I_CO_AREA = "Controlling Area
* I_ACTUAL_VERSION = '000' "
IT_SELECTION = "
* IT_FREE_SELECTION = "
* I_FIX_VARIANT = "
* I_ONLINE_MAXSEL = 10000 "Maximum Number of Selected Entries

IMPORTING
ET_COVP_EXT = "
ET_FIELDCAT = "Field Catalog
ET_FIELD_GROUPS = "Field Groups
ET_SORT = "List Sort
ET_FILTER = "Filter Criteria
ES_DISVARIANT_KEY = "Layout
ES_LAYOUT = "Layout of List
ED_SAVE = "Variants Can Be Saved

CHANGING
* IT_KAEPX_DATA_CARRIER = "

EXCEPTIONS
NO_DATA_SELECTED = 1 NO_FIELDCATALOG = 2
.




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_DATA_GET

I_CALLING_REPORT - Calling Program

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

I_USEAR - Checkbox for Choice of Data Input from the Archive

Data type: DTINP-XUSEAR
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_REP_OBJECT - Report Object

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

I_DISPLAY_VARIANT - Layout

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 -

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

IT_SELECTION -

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

IT_FREE_SELECTION -

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

I_FIX_VARIANT -

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

I_ONLINE_MAXSEL - Maximum Number of Selected Entries

Data type: KAEP_SETT-MAXSEL
Default: 10000
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for K_LINE_ITEM_ACT_DATA_GET

ET_COVP_EXT -

Data type: KAEP_T_COVP_EXT
Optional: No
Call by Reference: Yes

ET_FIELDCAT - Field Catalog

Data type: LVC_T_FCAT
Optional: No
Call by Reference: Yes

ET_FIELD_GROUPS - Field Groups

Data type: LVC_T_SGRP
Optional: No
Call by Reference: Yes

ET_SORT - List Sort

Data type: LVC_T_SORT
Optional: No
Call by Reference: Yes

ET_FILTER - Filter Criteria

Data type: LVC_T_FILT
Optional: No
Call by Reference: Yes

ES_DISVARIANT_KEY - Layout

Data type: DISVARIANT
Optional: No
Call by Reference: Yes

ES_LAYOUT - Layout of List

Data type: LVC_S_LAYO
Optional: No
Call by Reference: Yes

ED_SAVE - Variants Can Be Saved

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

CHANGING Parameters details for K_LINE_ITEM_ACT_DATA_GET

IT_KAEPX_DATA_CARRIER -

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

EXCEPTIONS details

NO_DATA_SELECTED -

Data type:
Optional: No
Call by Reference: Yes

NO_FIELDCATALOG -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for K_LINE_ITEM_ACT_DATA_GET 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_et_covp_ext  TYPE KAEP_T_COVP_EXT, "   
lv_i_calling_report  TYPE SY-REPID, "   
lv_no_data_selected  TYPE SY, "   
lv_it_kaepx_data_carrier  TYPE KAEPX_DATA_CARRIER_T, "   
lv_i_usear  TYPE DTINP-XUSEAR, "   SPACE
lv_et_fieldcat  TYPE LVC_T_FCAT, "   
lv_i_rep_object  TYPE KAEP_REP_OBJECT, "   
lv_no_fieldcatalog  TYPE KAEP_REP_OBJECT, "   
lv_et_field_groups  TYPE LVC_T_SGRP, "   
lv_i_display_variant  TYPE KAEP_DISVARIANT, "   
lv_et_sort  TYPE LVC_T_SORT, "   
lv_i_co_area  TYPE TKA01-KOKRS, "   
lv_et_filter  TYPE LVC_T_FILT, "   
lv_i_actual_version  TYPE TKA09-VERSN, "   '000'
lv_it_selection  TYPE KAEP_T_COSEL, "   
lv_es_disvariant_key  TYPE DISVARIANT, "   
lv_es_layout  TYPE LVC_S_LAYO, "   
lv_it_free_selection  TYPE RSDS_TWHERE, "   
lv_ed_save  TYPE C, "   
lv_i_fix_variant  TYPE KAEP_SETT-FIXVAR, "   
lv_i_online_maxsel  TYPE KAEP_SETT-MAXSEL. "   10000

  CALL FUNCTION 'K_LINE_ITEM_ACT_DATA_GET'  "
    EXPORTING
         I_CALLING_REPORT = lv_i_calling_report
         I_USEAR = lv_i_usear
         I_REP_OBJECT = lv_i_rep_object
         I_DISPLAY_VARIANT = lv_i_display_variant
         I_CO_AREA = lv_i_co_area
         I_ACTUAL_VERSION = lv_i_actual_version
         IT_SELECTION = lv_it_selection
         IT_FREE_SELECTION = lv_it_free_selection
         I_FIX_VARIANT = lv_i_fix_variant
         I_ONLINE_MAXSEL = lv_i_online_maxsel
    IMPORTING
         ET_COVP_EXT = lv_et_covp_ext
         ET_FIELDCAT = lv_et_fieldcat
         ET_FIELD_GROUPS = lv_et_field_groups
         ET_SORT = lv_et_sort
         ET_FILTER = lv_et_filter
         ES_DISVARIANT_KEY = lv_es_disvariant_key
         ES_LAYOUT = lv_es_layout
         ED_SAVE = lv_ed_save
    CHANGING
         IT_KAEPX_DATA_CARRIER = lv_it_kaepx_data_carrier
    EXCEPTIONS
        NO_DATA_SELECTED = 1
        NO_FIELDCATALOG = 2
. " K_LINE_ITEM_ACT_DATA_GET




ABAP code using 7.40 inline data declarations to call FM K_LINE_ITEM_ACT_DATA_GET

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 REPID FROM SY INTO @DATA(ld_i_calling_report).
 
 
 
"SELECT single XUSEAR FROM DTINP INTO @DATA(ld_i_usear).
DATA(ld_i_usear) = ' '.
 
 
 
 
 
 
 
"SELECT single KOKRS FROM TKA01 INTO @DATA(ld_i_co_area).
 
 
"SELECT single VERSN FROM TKA09 INTO @DATA(ld_i_actual_version).
DATA(ld_i_actual_version) = '000'.
 
 
 
 
 
 
"SELECT single FIXVAR FROM KAEP_SETT INTO @DATA(ld_i_fix_variant).
 
"SELECT single MAXSEL FROM KAEP_SETT INTO @DATA(ld_i_online_maxsel).
DATA(ld_i_online_maxsel) = 10000.
 


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!