SAP LVC_FILL_DATA_TABLE Function Module for









LVC_FILL_DATA_TABLE is a standard lvc fill data table 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 lvc fill data table FM, simply by entering the name LVC_FILL_DATA_TABLE into the relevant SAP transaction such as SE37 or SE38.

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



Function LVC_FILL_DATA_TABLE 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 'LVC_FILL_DATA_TABLE'"
EXPORTING
* I_VIEW = "
IT_FIELDCAT = "
IT_FIELDCAT_LOCAL = "
IT_FIDX = "
IT_POID = "
IT_GROUPLEVELS = "
IT_ROID = "
* IR_SALV_ADAPTER = "
* I_DELETE_ENTRIES_NOT_IN_RANGE = ABAP_TRUE "
* I_GUI_TYPE = "
* I_GRID = "
I_START_INDEX = "
I_END_INDEX = "
* IS_LAYOUT = "
IS_LAYOUT_LOCAL = "
IS_TOTAL_OPTIONS = "
* IT_EXCEPT_QINFO = "

CHANGING
CT_START_INDEX = "
CT_LVC_DATA = "

TABLES
IT_DATA = "
IT_COLLECT08 = "
IT_COLLECT09 = "
IT_COLLECT00 = "
IT_COLLECT01 = "
IT_COLLECT02 = "
IT_COLLECT03 = "
IT_COLLECT04 = "
IT_COLLECT05 = "
IT_COLLECT06 = "
IT_COLLECT07 = "
.



IMPORTING Parameters details for LVC_FILL_DATA_TABLE

I_VIEW -

Data type: UI_FUNC
Optional: Yes
Call by Reference: Yes

IT_FIELDCAT -

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

IT_FIELDCAT_LOCAL -

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

IT_FIDX -

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

IT_POID -

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

IT_GROUPLEVELS -

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

IT_ROID -

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

IR_SALV_ADAPTER -

Data type: IF_SALV_ADAPTER
Optional: Yes
Call by Reference: Yes

I_DELETE_ENTRIES_NOT_IN_RANGE -

Data type: ABAP_BOOL
Default: ABAP_TRUE
Optional: Yes
Call by Reference: Yes

I_GUI_TYPE -

Data type: INT4
Optional: Yes
Call by Reference: Yes

I_GRID -

Data type: CL_GUI_ALV_GRID
Optional: Yes
Call by Reference: Yes

I_START_INDEX -

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

I_END_INDEX -

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

IS_LAYOUT -

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

IS_LAYOUT_LOCAL -

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

IS_TOTAL_OPTIONS -

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

IT_EXCEPT_QINFO -

Data type: LVC_T_QINF
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for LVC_FILL_DATA_TABLE

CT_START_INDEX -

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

CT_LVC_DATA -

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

TABLES Parameters details for LVC_FILL_DATA_TABLE

IT_DATA -

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

IT_COLLECT08 -

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

IT_COLLECT09 -

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

IT_COLLECT00 -

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

IT_COLLECT01 -

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

IT_COLLECT02 -

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

IT_COLLECT03 -

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

IT_COLLECT04 -

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

IT_COLLECT05 -

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

IT_COLLECT06 -

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

IT_COLLECT07 -

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

Copy and paste ABAP code example for LVC_FILL_DATA_TABLE 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_i_view  TYPE UI_FUNC, "   
lt_it_data  TYPE STANDARD TABLE OF TABLE, "   
lv_ct_start_index  TYPE LVC_T_STIN, "   
lv_it_fieldcat  TYPE LVC_T_FCAT, "   
lt_it_collect08  TYPE STANDARD TABLE OF TABLE, "   
lt_it_collect09  TYPE STANDARD TABLE OF TABLE, "   
lv_it_fieldcat_local  TYPE LVC_T_FCAT, "   
lv_it_fidx  TYPE LVC_T_FIDX, "   
lv_it_poid  TYPE LVC_T_POID, "   
lv_it_grouplevels  TYPE LVC_T_GRPL, "   
lv_it_roid  TYPE LVC_T_ROID, "   
lv_ir_salv_adapter  TYPE IF_SALV_ADAPTER, "   
lv_i_delete_entries_not_in_range  TYPE ABAP_BOOL, "   ABAP_TRUE
lv_i_gui_type  TYPE INT4, "   
lv_ct_lvc_data  TYPE LVC_T_DATA, "   
lt_it_collect00  TYPE STANDARD TABLE OF TABLE, "   
lv_i_grid  TYPE CL_GUI_ALV_GRID, "   
lt_it_collect01  TYPE STANDARD TABLE OF TABLE, "   
lt_it_collect02  TYPE STANDARD TABLE OF TABLE, "   
lv_i_start_index  TYPE I, "   
lv_i_end_index  TYPE I, "   
lt_it_collect03  TYPE STANDARD TABLE OF TABLE, "   
lv_is_layout  TYPE LVC_S_LAYO, "   
lt_it_collect04  TYPE STANDARD TABLE OF TABLE, "   
lt_it_collect05  TYPE STANDARD TABLE OF TABLE, "   
lv_is_layout_local  TYPE LVC_S_LAYL, "   
lt_it_collect06  TYPE STANDARD TABLE OF TABLE, "   
lv_is_total_options  TYPE LVC_S_TOTO, "   
lt_it_collect07  TYPE STANDARD TABLE OF TABLE, "   
lv_it_except_qinfo  TYPE LVC_T_QINF. "   

  CALL FUNCTION 'LVC_FILL_DATA_TABLE'  "
    EXPORTING
         I_VIEW = lv_i_view
         IT_FIELDCAT = lv_it_fieldcat
         IT_FIELDCAT_LOCAL = lv_it_fieldcat_local
         IT_FIDX = lv_it_fidx
         IT_POID = lv_it_poid
         IT_GROUPLEVELS = lv_it_grouplevels
         IT_ROID = lv_it_roid
         IR_SALV_ADAPTER = lv_ir_salv_adapter
         I_DELETE_ENTRIES_NOT_IN_RANGE = lv_i_delete_entries_not_in_range
         I_GUI_TYPE = lv_i_gui_type
         I_GRID = lv_i_grid
         I_START_INDEX = lv_i_start_index
         I_END_INDEX = lv_i_end_index
         IS_LAYOUT = lv_is_layout
         IS_LAYOUT_LOCAL = lv_is_layout_local
         IS_TOTAL_OPTIONS = lv_is_total_options
         IT_EXCEPT_QINFO = lv_it_except_qinfo
    CHANGING
         CT_START_INDEX = lv_ct_start_index
         CT_LVC_DATA = lv_ct_lvc_data
    TABLES
         IT_DATA = lt_it_data
         IT_COLLECT08 = lt_it_collect08
         IT_COLLECT09 = lt_it_collect09
         IT_COLLECT00 = lt_it_collect00
         IT_COLLECT01 = lt_it_collect01
         IT_COLLECT02 = lt_it_collect02
         IT_COLLECT03 = lt_it_collect03
         IT_COLLECT04 = lt_it_collect04
         IT_COLLECT05 = lt_it_collect05
         IT_COLLECT06 = lt_it_collect06
         IT_COLLECT07 = lt_it_collect07
. " LVC_FILL_DATA_TABLE




ABAP code using 7.40 inline data declarations to call FM LVC_FILL_DATA_TABLE

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_delete_entries_not_in_range) = ABAP_TRUE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!