SAP ALM_READ_GAPART_DATA Function Module for Reads all tables for the gap valuation type
ALM_READ_GAPART_DATA is a standard alm read gapart data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reads all tables for the gap valuation type 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 alm read gapart data FM, simply by entering the name ALM_READ_GAPART_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: JBGAPART
Program Name: SAPLJBGAPART
Main Program: SAPLJBGAPART
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ALM_READ_GAPART_DATA 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 'ALM_READ_GAPART_DATA'"Reads all tables for the gap valuation type.
TABLES
E_TAB_JBRBG2 = "Gap Analysis - Global Control
E_TAB_JBRBG2T = "Text Table for Gap Type
* E_TAB_JBRABREG2 = "RM: Control of Write-Down Rules via Evaluation Type
E_TAB_JBRBG3 = "Gap Analysis - Control using Valuation Rule
* E_TAB_JBRABREG3 = "RM: Write-Down Rule-Specific Control
E_TAB_JBRBEWREGT = "Valuation Rules for Evaluations (Texts)
* E_TAB_JBRABREGTABT = "RM: Write-Down Rule for P+L Simulation (Texts)
EXCEPTIONS
READ_ERROR = 1
TABLES Parameters details for ALM_READ_GAPART_DATA
E_TAB_JBRBG2 - Gap Analysis - Global Control
Data type: JBRBG2Optional: No
Call by Reference: Yes
E_TAB_JBRBG2T - Text Table for Gap Type
Data type: JBRBG2TOptional: No
Call by Reference: Yes
E_TAB_JBRABREG2 - RM: Control of Write-Down Rules via Evaluation Type
Data type: JBRABREG2Optional: Yes
Call by Reference: Yes
E_TAB_JBRBG3 - Gap Analysis - Control using Valuation Rule
Data type: JBRBG3Optional: No
Call by Reference: Yes
E_TAB_JBRABREG3 - RM: Write-Down Rule-Specific Control
Data type: JBRABREG3Optional: Yes
Call by Reference: Yes
E_TAB_JBRBEWREGT - Valuation Rules for Evaluations (Texts)
Data type: JBRBEWREGTOptional: No
Call by Reference: Yes
E_TAB_JBRABREGTABT - RM: Write-Down Rule for P+L Simulation (Texts)
Data type: JBRABREGTABTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
READ_ERROR - Error Reading Data
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ALM_READ_GAPART_DATA 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_read_error | TYPE STRING, " | |||
| lt_e_tab_jbrbg2 | TYPE STANDARD TABLE OF JBRBG2, " | |||
| lt_e_tab_jbrbg2t | TYPE STANDARD TABLE OF JBRBG2T, " | |||
| lt_e_tab_jbrabreg2 | TYPE STANDARD TABLE OF JBRABREG2, " | |||
| lt_e_tab_jbrbg3 | TYPE STANDARD TABLE OF JBRBG3, " | |||
| lt_e_tab_jbrabreg3 | TYPE STANDARD TABLE OF JBRABREG3, " | |||
| lt_e_tab_jbrbewregt | TYPE STANDARD TABLE OF JBRBEWREGT, " | |||
| lt_e_tab_jbrabregtabt | TYPE STANDARD TABLE OF JBRABREGTABT. " |
|   CALL FUNCTION 'ALM_READ_GAPART_DATA' "Reads all tables for the gap valuation type |
| TABLES | ||
| E_TAB_JBRBG2 | = lt_e_tab_jbrbg2 | |
| E_TAB_JBRBG2T | = lt_e_tab_jbrbg2t | |
| E_TAB_JBRABREG2 | = lt_e_tab_jbrabreg2 | |
| E_TAB_JBRBG3 | = lt_e_tab_jbrbg3 | |
| E_TAB_JBRABREG3 | = lt_e_tab_jbrabreg3 | |
| E_TAB_JBRBEWREGT | = lt_e_tab_jbrbewregt | |
| E_TAB_JBRABREGTABT | = lt_e_tab_jbrabregtabt | |
| EXCEPTIONS | ||
| READ_ERROR = 1 | ||
| . " ALM_READ_GAPART_DATA | ||
ABAP code using 7.40 inline data declarations to call FM ALM_READ_GAPART_DATA
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