SAP Reports / Programs | Service Station Retailing | Industry Solution Oil | Service Station Retailing(IS-OIL-DS-SSR) SAP IS

ROIRI_MARGIN_REPORT_FORMS_02 SAP ABAP INCLUDE - Other form routines (data selections and calculations)







ROIRI_MARGIN_REPORT_FORMS_02 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter ROIRI_MARGIN_REPORT_FORMS_02 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT ROIRI_MARGIN_REPORT_FORMS_02. "Basic submit
SUBMIT ROIRI_MARGIN_REPORT_FORMS_02 AND RETURN. "Return to original report after report execution complete
SUBMIT ROIRI_MARGIN_REPORT_FORMS_02 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Other form routines (data selections and calculations)


INCLUDES used within this REPORT ROIRI_MARGIN_REPORT_FORMS_02

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

OIRA_AUTH_FILTER_LOCATIONS CALL FUNCTION 'OIRA_AUTH_FILTER_LOCATIONS' EXPORTING i_structure = l_structure i_fname_pblnr = 'OIRIPBLNR' * I_RNBT = * I_REPID = SY-REPID TABLES t_data_tab = gt_raw_s412 EXCEPTIONS ddif_tabl_get = 1 OTHERS = 2.

OIFSPBL_ARRAY_READ CALL FUNCTION 'OIFSPBL_ARRAY_READ' TABLES ioifspbl_prefetch = g_pblnr_tab oifspbl_tab = g_oifspbl_tab.

ADDR_GET_ARRAY CALL FUNCTION 'ADDR_GET_ARRAY' * IMPORTING * RETURNCODE = TABLES address_selection = g_addrsel_tab address_value = g_addr1_val_tab * ADDRESS_ADDITIONAL_INFO = * ERROR_TABLE = * ADDRESS_TEXT = * EXCEPTIONS * PARAMETER_ERROR = 1 * INTERNAL_ERROR = 2 * OTHERS = 3 .

WEEKDAY_GET CALL FUNCTION 'WEEKDAY_GET' EXPORTING language = sy-langu TABLES weekday = l_weekdays_tab EXCEPTIONS weekday_not_found = 1 OTHERS = 2.

DATE_COMPUTE_DAY CALL FUNCTION 'DATE_COMPUTE_DAY' EXPORTING date = l_outtab_02-sptag IMPORTING day = l_outtab_02-day_wotnr.

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING et_sort = lt_sort.

OIRA_ALV_SUBTOTALLINES_GET CALL FUNCTION 'OIRA_ALV_SUBTOTALLINES_GET' EXPORTING i_selfield = pe_selfield i_sort_tab = lt_sort i_structure = 'ROIRI_MARG_ALV' IMPORTING e_tabix_from = g_tabix_01_from e_tabix_to = g_tabix_01_to e_fieldname = pe_selfield-fieldname e_value = pe_selfield-value TABLES i_outtab_total = gt_outtab_01.

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING et_sort = lt_sort.

OIRA_ALV_SUBTOTALLINES_GET CALL FUNCTION 'OIRA_ALV_SUBTOTALLINES_GET' EXPORTING i_selfield = pe_selfield i_sort_tab = lt_sort i_structure = 'ROIRI_MARG_ALV' IMPORTING e_tabix_from = g_tabix_01_from e_tabix_to = g_tabix_01_to e_fieldname = pe_selfield-fieldname e_value = pe_selfield-value TABLES i_outtab_total = gt_outtab_01.

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING et_sort = lt_sort.

OIRA_ALV_SUBTOTALLINES_GET CALL FUNCTION 'OIRA_ALV_SUBTOTALLINES_GET' EXPORTING i_selfield = pe_selfield i_sort_tab = lt_sort i_structure = 'ROIRI_MARG_ALV_DATES' IMPORTING e_tabix_from = g_tabix_02_from e_tabix_to = g_tabix_02_to e_fieldname = pe_selfield-fieldname e_value = pe_selfield-value TABLES i_outtab_total = gt_outtab_02.

DATE_GET_WEEK call function 'DATE_GET_WEEK' EXPORTING date = sy-datum IMPORTING week = week-high EXCEPTIONS date_invalid = 1 others = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name ROIRI_MARGIN_REPORT_FORMS_02 or its description.