SAP TB_LIMIT_EXPOSURE_WRITE_SUMS Function Module for Update of Limit Utilizations (Totals Records, End-of-Day Processing)









TB_LIMIT_EXPOSURE_WRITE_SUMS is a standard tb limit exposure write sums SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update of Limit Utilizations (Totals Records, End-of-Day Processing) 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 tb limit exposure write sums FM, simply by entering the name TB_LIMIT_EXPOSURE_WRITE_SUMS into the relevant SAP transaction such as SE37 or SE38.

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



Function TB_LIMIT_EXPOSURE_WRITE_SUMS 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 'TB_LIMIT_EXPOSURE_WRITE_SUMS'"Update of Limit Utilizations (Totals Records, End-of-Day Processing)
EXPORTING
* I_DLI = SY-DATUM "Date of Current Run
IR_SLI = "Status to be Updated
IT_SLE = "Table of Determination Procedures
* IT_LA = "
* IA_SYNC = 'S' "Update: Synchronous (S), Asyncronous (A)
* I_PACKAGE_SIZE = 10000 "Array Size for Update (COMMIT Counter)
* I_T_EVFIL = "

CHANGING
* C_INSERT_COUNT = "Information of The Update

EXCEPTIONS
ERROR_INSERT = 1 ERROR_CONSISTENCY = 2 ERROR_WRONG_PARAMETER = 3 ERROR_UNDEFINED = 4
.



IMPORTING Parameters details for TB_LIMIT_EXPOSURE_WRITE_SUMS

I_DLI - Date of Current Run

Data type: VTBLIL-DLI
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IR_SLI - Status to be Updated

Data type: TRLM_T_R_SLI
Optional: No
Call by Reference: Yes

IT_SLE - Table of Determination Procedures

Data type: TRLM_T_SLE
Optional: No
Call by Reference: Yes

IT_LA -

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

IA_SYNC - Update: Synchronous (S), Asyncronous (A)

Data type: C
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PACKAGE_SIZE - Array Size for Update (COMMIT Counter)

Data type: I
Default: 10000
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_T_EVFIL -

Data type: TRLM_T_EVFIL
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for TB_LIMIT_EXPOSURE_WRITE_SUMS

C_INSERT_COUNT - Information of The Update

Data type: TRLM_INSERT_COUNT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ERROR_INSERT - Error During Insertion of Totals Records

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

ERROR_CONSISTENCY - Inconsistency Index <-> Individual Record

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

ERROR_WRONG_PARAMETER - Incorrect Parameters for Interface

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

ERROR_UNDEFINED - RAISE OTHERS In Sub-FM

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

Copy and paste ABAP code example for TB_LIMIT_EXPOSURE_WRITE_SUMS 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_dli  TYPE VTBLIL-DLI, "   SY-DATUM
lv_error_insert  TYPE VTBLIL, "   
lv_c_insert_count  TYPE TRLM_INSERT_COUNT, "   
lv_ir_sli  TYPE TRLM_T_R_SLI, "   
lv_error_consistency  TYPE TRLM_T_R_SLI, "   
lv_it_sle  TYPE TRLM_T_SLE, "   
lv_error_wrong_parameter  TYPE TRLM_T_SLE, "   
lv_it_la  TYPE TRLM_T_LA, "   
lv_error_undefined  TYPE TRLM_T_LA, "   
lv_ia_sync  TYPE C, "   'S'
lv_i_package_size  TYPE I, "   10000
lv_i_t_evfil  TYPE TRLM_T_EVFIL. "   

  CALL FUNCTION 'TB_LIMIT_EXPOSURE_WRITE_SUMS'  "Update of Limit Utilizations (Totals Records, End-of-Day Processing)
    EXPORTING
         I_DLI = lv_i_dli
         IR_SLI = lv_ir_sli
         IT_SLE = lv_it_sle
         IT_LA = lv_it_la
         IA_SYNC = lv_ia_sync
         I_PACKAGE_SIZE = lv_i_package_size
         I_T_EVFIL = lv_i_t_evfil
    CHANGING
         C_INSERT_COUNT = lv_c_insert_count
    EXCEPTIONS
        ERROR_INSERT = 1
        ERROR_CONSISTENCY = 2
        ERROR_WRONG_PARAMETER = 3
        ERROR_UNDEFINED = 4
. " TB_LIMIT_EXPOSURE_WRITE_SUMS




ABAP code using 7.40 inline data declarations to call FM TB_LIMIT_EXPOSURE_WRITE_SUMS

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 DLI FROM VTBLIL INTO @DATA(ld_i_dli).
DATA(ld_i_dli) = SY-DATUM.
 
 
 
 
 
 
 
 
 
DATA(ld_ia_sync) = 'S'.
 
DATA(ld_i_package_size) = 10000.
 
 


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!