SAP FI_ITEMS_DISPLAY Function Module for
FI_ITEMS_DISPLAY is a standard fi items display 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 fi items display FM, simply by entering the name FI_ITEMS_DISPLAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: FI_ITEMS
Program Name: SAPLFI_ITEMS
Main Program: SAPLFI_ITEMS
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function FI_ITEMS_DISPLAY 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 'FI_ITEMS_DISPLAY'".
EXPORTING
CALLER_REPID = "ABAP Program: Current Main Program
* CH_STATUS = ' ' "Screens, Current GUI Status
* IT_KONTAB = "Line Items: Accounts to be Displayed
* IT_SLBTAB = "Line Items: Selected Company Codes
* IT_T001 = "
* IT_KNA1 = "
* IT_KNB1 = "
* IT_LFA1 = "
* IT_LFB1 = "
* IT_SKAT = "
* IT_SKB1 = "
* ACCTYPE = ' ' "
* X_INET = ' ' "
* X_GRID = ' ' "
* X_OPVW = 'X' "
* X_CHANGE = ' ' "
* I_U_SAVE = ' ' "
* IS_U_VARIANT = "
* IS_U_LAYOUT = "
* IT_U_FIELDCAT = "
* IT_U_SORT = "
TABLES
IT_ITEMS = "
IMPORTING Parameters details for FI_ITEMS_DISPLAY
CALLER_REPID - ABAP Program: Current Main Program
Data type: SY-REPIDOptional: No
Call by Reference: Yes
CH_STATUS - Screens, Current GUI Status
Data type: SY-PFKEYDefault: SPACE
Optional: Yes
Call by Reference: Yes
IT_KONTAB - Line Items: Accounts to be Displayed
Data type: TPIT_T_RFEPKOptional: Yes
Call by Reference: Yes
IT_SLBTAB - Line Items: Selected Company Codes
Data type: TPIT_T_RFEPBOptional: Yes
Call by Reference: Yes
IT_T001 -
Data type: TPIT_T_VT001Optional: Yes
Call by Reference: Yes
IT_KNA1 -
Data type: TPIT_T_VKNA1Optional: Yes
Call by Reference: Yes
IT_KNB1 -
Data type: TPIT_T_VKNB1Optional: Yes
Call by Reference: Yes
IT_LFA1 -
Data type: TPIT_T_VLFA1Optional: Yes
Call by Reference: Yes
IT_LFB1 -
Data type: TPIT_T_VLFB1Optional: Yes
Call by Reference: Yes
IT_SKAT -
Data type: TPIT_T_VSKATOptional: Yes
Call by Reference: Yes
IT_SKB1 -
Data type: TPIT_T_VSKB1Optional: Yes
Call by Reference: Yes
ACCTYPE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
X_INET -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
X_GRID -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
X_OPVW -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
X_CHANGE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_U_SAVE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
IS_U_VARIANT -
Data type: DISVARIANTOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_U_LAYOUT -
Data type: SLIS_LAYOUT_ALVOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_U_FIELDCAT -
Data type: SLIS_T_FIELDCAT_ALVOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_U_SORT -
Data type: SLIS_T_SORTINFO_ALVOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FI_ITEMS_DISPLAY
IT_ITEMS -
Data type: RFPOSXEXTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FI_ITEMS_DISPLAY 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_it_items | TYPE STANDARD TABLE OF RFPOSXEXT, " | |||
lv_caller_repid | TYPE SY-REPID, " | |||
lv_ch_status | TYPE SY-PFKEY, " SPACE | |||
lv_it_kontab | TYPE TPIT_T_RFEPK, " | |||
lv_it_slbtab | TYPE TPIT_T_RFEPB, " | |||
lv_it_t001 | TYPE TPIT_T_VT001, " | |||
lv_it_kna1 | TYPE TPIT_T_VKNA1, " | |||
lv_it_knb1 | TYPE TPIT_T_VKNB1, " | |||
lv_it_lfa1 | TYPE TPIT_T_VLFA1, " | |||
lv_it_lfb1 | TYPE TPIT_T_VLFB1, " | |||
lv_it_skat | TYPE TPIT_T_VSKAT, " | |||
lv_it_skb1 | TYPE TPIT_T_VSKB1, " | |||
lv_acctype | TYPE C, " SPACE | |||
lv_x_inet | TYPE C, " SPACE | |||
lv_x_grid | TYPE C, " SPACE | |||
lv_x_opvw | TYPE C, " 'X' | |||
lv_x_change | TYPE C, " SPACE | |||
lv_i_u_save | TYPE C, " SPACE | |||
lv_is_u_variant | TYPE DISVARIANT, " | |||
lv_is_u_layout | TYPE SLIS_LAYOUT_ALV, " | |||
lv_it_u_fieldcat | TYPE SLIS_T_FIELDCAT_ALV, " | |||
lv_it_u_sort | TYPE SLIS_T_SORTINFO_ALV. " |
  CALL FUNCTION 'FI_ITEMS_DISPLAY' " |
EXPORTING | ||
CALLER_REPID | = lv_caller_repid | |
CH_STATUS | = lv_ch_status | |
IT_KONTAB | = lv_it_kontab | |
IT_SLBTAB | = lv_it_slbtab | |
IT_T001 | = lv_it_t001 | |
IT_KNA1 | = lv_it_kna1 | |
IT_KNB1 | = lv_it_knb1 | |
IT_LFA1 | = lv_it_lfa1 | |
IT_LFB1 | = lv_it_lfb1 | |
IT_SKAT | = lv_it_skat | |
IT_SKB1 | = lv_it_skb1 | |
ACCTYPE | = lv_acctype | |
X_INET | = lv_x_inet | |
X_GRID | = lv_x_grid | |
X_OPVW | = lv_x_opvw | |
X_CHANGE | = lv_x_change | |
I_U_SAVE | = lv_i_u_save | |
IS_U_VARIANT | = lv_is_u_variant | |
IS_U_LAYOUT | = lv_is_u_layout | |
IT_U_FIELDCAT | = lv_it_u_fieldcat | |
IT_U_SORT | = lv_it_u_sort | |
TABLES | ||
IT_ITEMS | = lt_it_items | |
. " FI_ITEMS_DISPLAY |
ABAP code using 7.40 inline data declarations to call FM FI_ITEMS_DISPLAY
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_caller_repid). | ||||
"SELECT single PFKEY FROM SY INTO @DATA(ld_ch_status). | ||||
DATA(ld_ch_status) | = ' '. | |||
DATA(ld_acctype) | = ' '. | |||
DATA(ld_x_inet) | = ' '. | |||
DATA(ld_x_grid) | = ' '. | |||
DATA(ld_x_opvw) | = 'X'. | |||
DATA(ld_x_change) | = ' '. | |||
DATA(ld_i_u_save) | = ' '. | |||
Search for further information about these or an SAP related objects