SAP ADD_UP_RECORD Function Module for









ADD_UP_RECORD is a standard add up record 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 add up record FM, simply by entering the name ADD_UP_RECORD into the relevant SAP transaction such as SE37 or SE38.

Function Group: GLCF
Program Name: SAPLGLCF
Main Program: SAPLGLCF
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ADD_UP_RECORD 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 'ADD_UP_RECORD'"
EXPORTING
I_DB = "Database
I_GLT0 = "
I_GLT3 = "
I_PERID_HIGH = "To period
I_PERID_LOW = "From period

IMPORTING
E_RESULT_LC = "Result in local currency
E_RESULT_TC = "Result in transaction currency
.



IMPORTING Parameters details for ADD_UP_RECORD

I_DB - Database

Data type: T881-TAB
Optional: No
Call by Reference: No ( called with pass by value option)

I_GLT0 -

Data type: GLT0
Optional: No
Call by Reference: No ( called with pass by value option)

I_GLT3 -

Data type: GLT3
Optional: No
Call by Reference: No ( called with pass by value option)

I_PERID_HIGH - To period

Data type: GLT0-RPMAX
Optional: No
Call by Reference: No ( called with pass by value option)

I_PERID_LOW - From period

Data type: GLT0-RPMAX
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ADD_UP_RECORD

E_RESULT_LC - Result in local currency

Data type: GLS3-HSL
Optional: No
Call by Reference: No ( called with pass by value option)

E_RESULT_TC - Result in transaction currency

Data type: GLS3-TSL
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ADD_UP_RECORD 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_db  TYPE T881-TAB, "   
lv_e_result_lc  TYPE GLS3-HSL, "   
lv_i_glt0  TYPE GLT0, "   
lv_e_result_tc  TYPE GLS3-TSL, "   
lv_i_glt3  TYPE GLT3, "   
lv_i_perid_high  TYPE GLT0-RPMAX, "   
lv_i_perid_low  TYPE GLT0-RPMAX. "   

  CALL FUNCTION 'ADD_UP_RECORD'  "
    EXPORTING
         I_DB = lv_i_db
         I_GLT0 = lv_i_glt0
         I_GLT3 = lv_i_glt3
         I_PERID_HIGH = lv_i_perid_high
         I_PERID_LOW = lv_i_perid_low
    IMPORTING
         E_RESULT_LC = lv_e_result_lc
         E_RESULT_TC = lv_e_result_tc
. " ADD_UP_RECORD




ABAP code using 7.40 inline data declarations to call FM ADD_UP_RECORD

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 TAB FROM T881 INTO @DATA(ld_i_db).
 
"SELECT single HSL FROM GLS3 INTO @DATA(ld_e_result_lc).
 
 
"SELECT single TSL FROM GLS3 INTO @DATA(ld_e_result_tc).
 
 
"SELECT single RPMAX FROM GLT0 INTO @DATA(ld_i_perid_high).
 
"SELECT single RPMAX FROM GLT0 INTO @DATA(ld_i_perid_low).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!