SAP OIRA_ALV_SUBTOTALLINES_GET Function Module for Retrieve ALV lines for which subtotal has been selected
OIRA_ALV_SUBTOTALLINES_GET is a standard oira alv subtotallines get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retrieve ALV lines for which subtotal has been selected 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 oira alv subtotallines get FM, simply by entering the name OIRA_ALV_SUBTOTALLINES_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIRA1
Program Name: SAPLOIRA1
Main Program: SAPLOIRA1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function OIRA_ALV_SUBTOTALLINES_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 'OIRA_ALV_SUBTOTALLINES_GET'"Retrieve ALV lines for which subtotal has been selected.
EXPORTING
* I_SELFIELD = "
* I_SELFIELD_GRID = "ALV control: Line description
* I_SORT_TAB = "
* I_SORT_TAB_GRID = "ALV control: Table of sort criteria
I_STRUCTURE = "Name of an ABAP Dictionary object
IMPORTING
E_TABIX_FROM = "Internal table, current line index
E_TABIX_TO = "Internal table, current line index
E_FIELDNAME = "
E_VALUE = "
TABLES
I_OUTTAB_TOTAL = "
EXCEPTIONS
DDIF_TABL_GET = 1
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_SAPLOIRA1_001 general location header screen
EXIT_SAPLOIRA1_002 Retrieve business location number from header screen
IMPORTING Parameters details for OIRA_ALV_SUBTOTALLINES_GET
I_SELFIELD -
Data type: SLIS_SELFIELDOptional: Yes
Call by Reference: Yes
I_SELFIELD_GRID - ALV control: Line description
Data type: LVC_S_ROWOptional: Yes
Call by Reference: Yes
I_SORT_TAB -
Data type: SLIS_T_SORTINFO_ALVOptional: Yes
Call by Reference: Yes
I_SORT_TAB_GRID - ALV control: Table of sort criteria
Data type: LVC_T_SORTOptional: Yes
Call by Reference: Yes
I_STRUCTURE - Name of an ABAP Dictionary object
Data type: DDOBJNAMEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for OIRA_ALV_SUBTOTALLINES_GET
E_TABIX_FROM - Internal table, current line index
Data type: SYTABIXOptional: No
Call by Reference: Yes
E_TABIX_TO - Internal table, current line index
Data type: SYTABIXOptional: No
Call by Reference: Yes
E_FIELDNAME -
Data type: SLIS_FIELDNAMEOptional: No
Call by Reference: Yes
E_VALUE -
Data type: SLIS_ENTRYOptional: No
Call by Reference: Yes
TABLES Parameters details for OIRA_ALV_SUBTOTALLINES_GET
I_OUTTAB_TOTAL -
Data type:Optional: No
Call by Reference: Yes
EXCEPTIONS details
DDIF_TABL_GET - Error on retrieving structure information
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIRA_ALV_SUBTOTALLINES_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_i_selfield | TYPE SLIS_SELFIELD, " | |||
lv_e_tabix_from | TYPE SYTABIX, " | |||
lv_ddif_tabl_get | TYPE SYTABIX, " | |||
lt_i_outtab_total | TYPE STANDARD TABLE OF SYTABIX, " | |||
lv_e_tabix_to | TYPE SYTABIX, " | |||
lv_i_selfield_grid | TYPE LVC_S_ROW, " | |||
lv_i_sort_tab | TYPE SLIS_T_SORTINFO_ALV, " | |||
lv_e_fieldname | TYPE SLIS_FIELDNAME, " | |||
lv_e_value | TYPE SLIS_ENTRY, " | |||
lv_i_sort_tab_grid | TYPE LVC_T_SORT, " | |||
lv_i_structure | TYPE DDOBJNAME. " |
  CALL FUNCTION 'OIRA_ALV_SUBTOTALLINES_GET' "Retrieve ALV lines for which subtotal has been selected |
EXPORTING | ||
I_SELFIELD | = lv_i_selfield | |
I_SELFIELD_GRID | = lv_i_selfield_grid | |
I_SORT_TAB | = lv_i_sort_tab | |
I_SORT_TAB_GRID | = lv_i_sort_tab_grid | |
I_STRUCTURE | = lv_i_structure | |
IMPORTING | ||
E_TABIX_FROM | = lv_e_tabix_from | |
E_TABIX_TO | = lv_e_tabix_to | |
E_FIELDNAME | = lv_e_fieldname | |
E_VALUE | = lv_e_value | |
TABLES | ||
I_OUTTAB_TOTAL | = lt_i_outtab_total | |
EXCEPTIONS | ||
DDIF_TABL_GET = 1 | ||
. " OIRA_ALV_SUBTOTALLINES_GET |
ABAP code using 7.40 inline data declarations to call FM OIRA_ALV_SUBTOTALLINES_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.Search for further information about these or an SAP related objects