SAP FAGL_STATKEYF_FOR_SELECTION4 Function Module for NOTRANSL: Lesen von statistischen Kennzahlen (Allokation)
FAGL_STATKEYF_FOR_SELECTION4 is a standard fagl statkeyf for selection4 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Lesen von statistischen Kennzahlen (Allokation) processing and below is the pattern details for this FM, 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 fagl statkeyf for selection4 FM, simply by entering the name FAGL_STATKEYF_FOR_SELECTION4 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FAGL_STATKEYFIG_READ
Program Name: SAPLFAGL_STATKEYFIG_READ
Main Program: SAPLFAGL_STATKEYFIG_READ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FAGL_STATKEYF_FOR_SELECTION4 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 'FAGL_STATKEYF_FOR_SELECTION4'"NOTRANSL: Lesen von statistischen Kennzahlen (Allokation).
EXPORTING
IT_SELECTION = "
* IT_FIELDLIST = "
* ID_IPKNZ = "
TABLES
ET_GLU1 = "G/L user table 1
ET_GLU2 = "FI-SL user table 2: 52+1 period fields
IMPORTING Parameters details for FAGL_STATKEYF_FOR_SELECTION4
IT_SELECTION -
Data type: GUSL_T_SELECTIONOptional: No
Call by Reference: Yes
IT_FIELDLIST -
Data type: GUSL_T_FIELDSOptional: Yes
Call by Reference: Yes
ID_IPKNZ -
Data type: COptional: Yes
Call by Reference: Yes
TABLES Parameters details for FAGL_STATKEYF_FOR_SELECTION4
ET_GLU1 - G/L user table 1
Data type: GLU1Optional: No
Call by Reference: No ( called with pass by value option)
ET_GLU2 - FI-SL user table 2: 52+1 period fields
Data type: GLU2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FAGL_STATKEYF_FOR_SELECTION4 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_et_glu1 | TYPE STANDARD TABLE OF GLU1, " | |||
| lv_it_selection | TYPE GUSL_T_SELECTION, " | |||
| lt_et_glu2 | TYPE STANDARD TABLE OF GLU2, " | |||
| lv_it_fieldlist | TYPE GUSL_T_FIELDS, " | |||
| lv_id_ipknz | TYPE C. " |
|   CALL FUNCTION 'FAGL_STATKEYF_FOR_SELECTION4' "NOTRANSL: Lesen von statistischen Kennzahlen (Allokation) |
| EXPORTING | ||
| IT_SELECTION | = lv_it_selection | |
| IT_FIELDLIST | = lv_it_fieldlist | |
| ID_IPKNZ | = lv_id_ipknz | |
| TABLES | ||
| ET_GLU1 | = lt_et_glu1 | |
| ET_GLU2 | = lt_et_glu2 | |
| . " FAGL_STATKEYF_FOR_SELECTION4 | ||
ABAP code using 7.40 inline data declarations to call FM FAGL_STATKEYF_FOR_SELECTION4
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