SAP GAP_DATA_GET_XXXX Function Module for IS-B: RM Datenbeschaffung Gap - generisches Reporting
GAP_DATA_GET_XXXX is a standard gap data get xxxx SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-B: RM Datenbeschaffung Gap - generisches Reporting 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 gap data get xxxx FM, simply by entering the name GAP_DATA_GET_XXXX into the relevant SAP transaction such as SE37 or SE38.
Function Group: JBRH
Program Name: SAPLJBRH
Main Program: SAPLJBRH
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GAP_DATA_GET_XXXX 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 'GAP_DATA_GET_XXXX'"IS-B: RM Datenbeschaffung Gap - generisches Reporting.
EXPORTING
I_FORM_NAME = "Unterprogramm für Export
I_PROGRAM_NAME = "Programm für Export
I_TAB_NAME = "Strukturname der Berichtsart
* I_EXTERNAL = "Kennzeichen externer Aufruf (z.B. aus InSight)
* I_DO_CURRENCY_CONVERSION = ' ' "Feld zum Ankreuzen
* I_DISPLAY_CURRENCY = "Währungsschlüssel
IMPORTING
E_TFILL = "Kennzeichen Sätze gefunden
TABLES
I_SEL_TAB = "Allgemeine Selektionstabelle
I_SF_TAB = "Tabelle verwendete Felder
I_PARAM_TAB = "Tabelle Auswertungsparameter
* I_SH_TAB = "Tabelle verwendete Hierarchien
IMPORTING Parameters details for GAP_DATA_GET_XXXX
I_FORM_NAME - Unterprogramm für Export
Data type: FORMROUTOptional: No
Call by Reference: No ( called with pass by value option)
I_PROGRAM_NAME - Programm für Export
Data type: PROGRAMMOptional: No
Call by Reference: No ( called with pass by value option)
I_TAB_NAME - Strukturname der Berichtsart
Data type: TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_EXTERNAL - Kennzeichen externer Aufruf (z.B. aus InSight)
Data type: JBREXTERNOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DO_CURRENCY_CONVERSION - Feld zum Ankreuzen
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DISPLAY_CURRENCY - Währungsschlüssel
Data type: CURRENCYOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GAP_DATA_GET_XXXX
E_TFILL - Kennzeichen Sätze gefunden
Data type: SY-TFILLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GAP_DATA_GET_XXXX
I_SEL_TAB - Allgemeine Selektionstabelle
Data type: CEDSTOptional: No
Call by Reference: No ( called with pass by value option)
I_SF_TAB - Tabelle verwendete Felder
Data type: CFBSF01Optional: No
Call by Reference: No ( called with pass by value option)
I_PARAM_TAB - Tabelle Auswertungsparameter
Data type: RSPARAMSOptional: No
Call by Reference: No ( called with pass by value option)
I_SH_TAB - Tabelle verwendete Hierarchien
Data type: CFBSH01Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GAP_DATA_GET_XXXX 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_e_tfill | TYPE SY-TFILL, " | |||
| lt_i_sel_tab | TYPE STANDARD TABLE OF CEDST, " | |||
| lv_i_form_name | TYPE FORMROUT, " | |||
| lt_i_sf_tab | TYPE STANDARD TABLE OF CFBSF01, " | |||
| lv_i_program_name | TYPE PROGRAMM, " | |||
| lv_i_tab_name | TYPE TABNAME, " | |||
| lt_i_param_tab | TYPE STANDARD TABLE OF RSPARAMS, " | |||
| lt_i_sh_tab | TYPE STANDARD TABLE OF CFBSH01, " | |||
| lv_i_external | TYPE JBREXTERN, " | |||
| lv_i_do_currency_conversion | TYPE XFELD, " ' ' | |||
| lv_i_display_currency | TYPE CURRENCY. " |
|   CALL FUNCTION 'GAP_DATA_GET_XXXX' "IS-B: RM Datenbeschaffung Gap - generisches Reporting |
| EXPORTING | ||
| I_FORM_NAME | = lv_i_form_name | |
| I_PROGRAM_NAME | = lv_i_program_name | |
| I_TAB_NAME | = lv_i_tab_name | |
| I_EXTERNAL | = lv_i_external | |
| I_DO_CURRENCY_CONVERSION | = lv_i_do_currency_conversion | |
| I_DISPLAY_CURRENCY | = lv_i_display_currency | |
| IMPORTING | ||
| E_TFILL | = lv_e_tfill | |
| TABLES | ||
| I_SEL_TAB | = lt_i_sel_tab | |
| I_SF_TAB | = lt_i_sf_tab | |
| I_PARAM_TAB | = lt_i_param_tab | |
| I_SH_TAB | = lt_i_sh_tab | |
| . " GAP_DATA_GET_XXXX | ||
ABAP code using 7.40 inline data declarations to call FM GAP_DATA_GET_XXXX
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 TFILL FROM SY INTO @DATA(ld_e_tfill). | ||||
| DATA(ld_i_do_currency_conversion) | = ' '. | |||
Search for further information about these or an SAP related objects