SAP Function Modules

TB_LIMIT_EXPOSURE_WRITE SAP Function module - Update of Limit Utilizations







TB_LIMIT_EXPOSURE_WRITE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TB_LIMIT_EXPOSURE_WRITE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: TBL2
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TB_LIMIT_EXPOSURE_WRITE - TB LIMIT EXPOSURE WRITE





CALL FUNCTION 'TB_LIMIT_EXPOSURE_WRITE' "Update of Limit Utilizations
  EXPORTING
*   i_dli = SY-DATUM            " vtblil-dli    Determination Date
    it_sle =                    " trlm_t_sle    Determination Procedure
*   it_gl_sec_ev =              " trlm_t_gl_sec_ev  Determination Procedure for Global Collateral
*   it_gl_sec =                 " trlm_t_gl_sec  Global Collateral
*   ir_sli =                    " trlm_t_r_sli  Status to Be Generated on Determination Date
*   it_evfil =                  " trlm_t_evfil  Selection Filter
*   i_package_size = 10000      " i             Package Size Update
*   i_messages_show = ' '       " boole-boole   Display Messages
*   i_initialize = ' '          " boole-boole   Initialize Limit Management
  CHANGING
    ct_anbetrout =              " trlm_anbetrout_tab  Attributable Amounts
  EXCEPTIONS
    ERROR_INITIALIZE = 1        "               Error when Initializing
    ERROR_RESERVATION_APPEND = 2  "             Error During Selection of Reservations
    ERROR_WRITE_SINGLE = 3      "
    ERROR_WRITE_SUMS = 4        "
    ERROR_WRITE_GLOB_SEC_SINGLE = 5  "          Error While Writing Individual Records for Global Collateral
    ERROR_WRITE_GLOB_SEC_SUMS = 6  "            Error While Writing Totals Records of Global Collateral
    ERROR_CALL = 7              "               Incorrect Parameters
    .  "  TB_LIMIT_EXPOSURE_WRITE

ABAP code example for Function Module TB_LIMIT_EXPOSURE_WRITE





The ABAP code below is a full code listing to execute function module TB_LIMIT_EXPOSURE_WRITE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).


DATA(ld_ct_anbetrout) = 'Check type of data required'.

SELECT single DLI
FROM VTBLIL
INTO @DATA(ld_i_dli).

DATA(ld_it_sle) = 'Check type of data required'.
DATA(ld_it_gl_sec_ev) = 'Check type of data required'.
DATA(ld_it_gl_sec) = 'Check type of data required'.
DATA(ld_ir_sli) = 'Check type of data required'.
DATA(ld_it_evfil) = 'Check type of data required'.
DATA(ld_i_package_size) = 'Check type of data required'.

DATA(ld_i_messages_show) = some text here

DATA(ld_i_initialize) = some text here . CALL FUNCTION 'TB_LIMIT_EXPOSURE_WRITE' EXPORTING * i_dli = ld_i_dli it_sle = ld_it_sle * it_gl_sec_ev = ld_it_gl_sec_ev * it_gl_sec = ld_it_gl_sec * ir_sli = ld_ir_sli * it_evfil = ld_it_evfil * i_package_size = ld_i_package_size * i_messages_show = ld_i_messages_show * i_initialize = ld_i_initialize CHANGING ct_anbetrout = ld_ct_anbetrout EXCEPTIONS ERROR_INITIALIZE = 1 ERROR_RESERVATION_APPEND = 2 ERROR_WRITE_SINGLE = 3 ERROR_WRITE_SUMS = 4 ERROR_WRITE_GLOB_SEC_SINGLE = 5 ERROR_WRITE_GLOB_SEC_SUMS = 6 ERROR_CALL = 7 . " TB_LIMIT_EXPOSURE_WRITE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ct_anbetrout  TYPE TRLM_ANBETROUT_TAB ,
ld_i_dli  TYPE VTBLIL-DLI ,
ld_it_sle  TYPE TRLM_T_SLE ,
ld_it_gl_sec_ev  TYPE TRLM_T_GL_SEC_EV ,
ld_it_gl_sec  TYPE TRLM_T_GL_SEC ,
ld_ir_sli  TYPE TRLM_T_R_SLI ,
ld_it_evfil  TYPE TRLM_T_EVFIL ,
ld_i_package_size  TYPE I ,
ld_i_messages_show  TYPE BOOLE-BOOLE ,
ld_i_initialize  TYPE BOOLE-BOOLE .

ld_ct_anbetrout = 'Check type of data required'.

SELECT single DLI
FROM VTBLIL
INTO ld_i_dli.

ld_it_sle = 'Check type of data required'.
ld_it_gl_sec_ev = 'Check type of data required'.
ld_it_gl_sec = 'Check type of data required'.
ld_ir_sli = 'Check type of data required'.
ld_it_evfil = 'Check type of data required'.
ld_i_package_size = 'Check type of data required'.

ld_i_messages_show = some text here

ld_i_initialize = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TB_LIMIT_EXPOSURE_WRITE or its description.