SAP FAGL_GET_ITEMS_BSEG Function Module for
FAGL_GET_ITEMS_BSEG is a standard fagl get items bseg 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 fagl get items bseg FM, simply by entering the name FAGL_GET_ITEMS_BSEG into the relevant SAP transaction such as SE37 or SE38.
Function Group: FAGL_ITEMS_SELECT
Program Name: SAPLFAGL_ITEMS_SELECT
Main Program: SAPLFAGL_ITEMS_SELECT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FAGL_GET_ITEMS_BSEG 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_GET_ITEMS_BSEG'".
EXPORTING
I_SELECTION = "
* I_FIELDLIST = "
* I_BLOCKSIZE = "
* I_BLOCK_DATA = GUSL_C_FALSE "FI-SL Dynamic Read Modules: General Flags
* I_AGGREGATION = GUSL_C_FALSE "FI-SL Dynamic Read Modules: General Flags
* I_MAX_LINES = "Maximum Number of Items
* I_RESET_INIT = GUSL_C_FALSE "
IMPORTING
FLAG_CURSOR_OPEN = "Checkbox
CHANGING
C_T_FAGLPOSE = "Table Type for FAGLPOSX
IMPORTING Parameters details for FAGL_GET_ITEMS_BSEG
I_SELECTION -
Data type: GUSL_T_SELECTIONOptional: No
Call by Reference: Yes
I_FIELDLIST -
Data type: GUSL_T_FIELDSOptional: Yes
Call by Reference: Yes
I_BLOCKSIZE -
Data type: IOptional: Yes
Call by Reference: Yes
I_BLOCK_DATA - FI-SL Dynamic Read Modules: General Flags
Data type: GUSL_BOOLDefault: GUSL_C_FALSE
Optional: Yes
Call by Reference: Yes
I_AGGREGATION - FI-SL Dynamic Read Modules: General Flags
Data type: GUSL_BOOLDefault: GUSL_C_FALSE
Optional: Yes
Call by Reference: Yes
I_MAX_LINES - Maximum Number of Items
Data type: NMAX_ITOptional: Yes
Call by Reference: Yes
I_RESET_INIT -
Data type: GUSL_BOOLDefault: GUSL_C_FALSE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FAGL_GET_ITEMS_BSEG
FLAG_CURSOR_OPEN - Checkbox
Data type: FLAGOptional: No
Call by Reference: Yes
CHANGING Parameters details for FAGL_GET_ITEMS_BSEG
C_T_FAGLPOSE - Table Type for FAGLPOSX
Data type: FAGLPOSE_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FAGL_GET_ITEMS_BSEG 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_selection | TYPE GUSL_T_SELECTION, " | |||
| lv_c_t_faglpose | TYPE FAGLPOSE_T, " | |||
| lv_flag_cursor_open | TYPE FLAG, " | |||
| lv_i_fieldlist | TYPE GUSL_T_FIELDS, " | |||
| lv_i_blocksize | TYPE I, " | |||
| lv_i_block_data | TYPE GUSL_BOOL, " GUSL_C_FALSE | |||
| lv_i_aggregation | TYPE GUSL_BOOL, " GUSL_C_FALSE | |||
| lv_i_max_lines | TYPE NMAX_IT, " | |||
| lv_i_reset_init | TYPE GUSL_BOOL. " GUSL_C_FALSE |
|   CALL FUNCTION 'FAGL_GET_ITEMS_BSEG' " |
| EXPORTING | ||
| I_SELECTION | = lv_i_selection | |
| I_FIELDLIST | = lv_i_fieldlist | |
| I_BLOCKSIZE | = lv_i_blocksize | |
| I_BLOCK_DATA | = lv_i_block_data | |
| I_AGGREGATION | = lv_i_aggregation | |
| I_MAX_LINES | = lv_i_max_lines | |
| I_RESET_INIT | = lv_i_reset_init | |
| IMPORTING | ||
| FLAG_CURSOR_OPEN | = lv_flag_cursor_open | |
| CHANGING | ||
| C_T_FAGLPOSE | = lv_c_t_faglpose | |
| . " FAGL_GET_ITEMS_BSEG | ||
ABAP code using 7.40 inline data declarations to call FM FAGL_GET_ITEMS_BSEG
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_block_data) | = GUSL_C_FALSE. | |||
| DATA(ld_i_aggregation) | = GUSL_C_FALSE. | |||
| DATA(ld_i_reset_init) | = GUSL_C_FALSE. | |||
Search for further information about these or an SAP related objects