SAP KLAB_DEAL_EVAL_TABLE Function Module for Risk Calculation: Mapped Transactions - Mass Data









KLAB_DEAL_EVAL_TABLE is a standard klab deal eval table SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Risk Calculation: Mapped Transactions - Mass Data 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 klab deal eval table FM, simply by entering the name KLAB_DEAL_EVAL_TABLE into the relevant SAP transaction such as SE37 or SE38.

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



Function KLAB_DEAL_EVAL_TABLE 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 'KLAB_DEAL_EVAL_TABLE'"Risk Calculation: Mapped Transactions - Mass Data
EXPORTING
* IT_REP_REPOS = "
* I_PROT_LEVEL = 1 "
AUSWDAT = "Base Date for Fiction
IT_EV = "
* I_IT_SI_WERT = "Third-Party Collateral
* I_IT_SI_ANT = "Percentual Collateralization
* I_IT_SI_ANBETROUT = "Securities Collateral: dp_attributable amount
* I_SEC_CALC = "
* I_ABW_FLAG = "

IMPORTING
IT_ANBETROUT = "Output Structure for Attributable Amount Determination
E_DEAL_FIGURES_TAB = "
E_IT_FAZ_DEAL_COL = "Single Transaction and Collateral Data Relevant for Facility
E_IT_SEC_ANBETROUT = "Output Structure for Attributable Amount Determination
E_IT_SI_FAZ = "Single Transaction and Collateral Data Relevant for Facility

TABLES
C_ERRORITAB = "
* C_SI_ERROR_ITAB = "

EXCEPTIONS
NO_SFGDT_FOUND = 1 NO_EV = 2 NO_CALC = 3
.



IMPORTING Parameters details for KLAB_DEAL_EVAL_TABLE

IT_REP_REPOS -

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

I_PROT_LEVEL -

Data type: SPROT-LEVEL
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUSWDAT - Base Date for Fiction

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

IT_EV -

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

I_IT_SI_WERT - Third-Party Collateral

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

I_IT_SI_ANT - Percentual Collateralization

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

I_IT_SI_ANBETROUT - Securities Collateral: dp_attributable amount

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

I_SEC_CALC -

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

I_ABW_FLAG -

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

EXPORTING Parameters details for KLAB_DEAL_EVAL_TABLE

IT_ANBETROUT - Output Structure for Attributable Amount Determination

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

E_DEAL_FIGURES_TAB -

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

E_IT_FAZ_DEAL_COL - Single Transaction and Collateral Data Relevant for Facility

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

E_IT_SEC_ANBETROUT - Output Structure for Attributable Amount Determination

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

E_IT_SI_FAZ - Single Transaction and Collateral Data Relevant for Facility

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

TABLES Parameters details for KLAB_DEAL_EVAL_TABLE

C_ERRORITAB -

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

C_SI_ERROR_ITAB -

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

EXCEPTIONS details

NO_SFGDT_FOUND -

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

NO_EV -

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

NO_CALC -

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

Copy and paste ABAP code example for KLAB_DEAL_EVAL_TABLE 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:
lt_c_erroritab  TYPE STANDARD TABLE OF BAPIERR, "   
lv_it_anbetrout  TYPE KLANBETROUT_TAB, "   
lv_it_rep_repos  TYPE KL2_REP_OBJ_TAB, "   
lv_no_sfgdt_found  TYPE KL2_REP_OBJ_TAB, "   
lv_no_ev  TYPE KL2_REP_OBJ_TAB, "   
lv_i_prot_level  TYPE SPROT-LEVEL, "   1
lt_c_si_error_itab  TYPE STANDARD TABLE OF BAPIERR, "   
lv_e_deal_figures_tab  TYPE KLNT2_DEAL_FIGURES_TAB, "   
lv_auswdat  TYPE KLDATS-DFIKT, "   
lv_no_calc  TYPE KLDATS, "   
lv_e_it_faz_deal_col  TYPE KLFAZDEALCOL_TAB, "   
lv_it_ev  TYPE KL2_EV_TAB, "   
lv_e_it_sec_anbetrout  TYPE KLANBETROUT_TAB, "   
lv_e_it_si_faz  TYPE KLFAZDEALCOL_TAB, "   
lv_i_it_si_wert  TYPE KLCOLAMT_TAB, "   
lv_i_it_si_ant  TYPE KLCOLPERC_TAB, "   
lv_i_it_si_anbetrout  TYPE KLCOLEVANBETROUT_TAB, "   
lv_i_sec_calc  TYPE C, "   
lv_i_abw_flag  TYPE C. "   

  CALL FUNCTION 'KLAB_DEAL_EVAL_TABLE'  "Risk Calculation: Mapped Transactions - Mass Data
    EXPORTING
         IT_REP_REPOS = lv_it_rep_repos
         I_PROT_LEVEL = lv_i_prot_level
         AUSWDAT = lv_auswdat
         IT_EV = lv_it_ev
         I_IT_SI_WERT = lv_i_it_si_wert
         I_IT_SI_ANT = lv_i_it_si_ant
         I_IT_SI_ANBETROUT = lv_i_it_si_anbetrout
         I_SEC_CALC = lv_i_sec_calc
         I_ABW_FLAG = lv_i_abw_flag
    IMPORTING
         IT_ANBETROUT = lv_it_anbetrout
         E_DEAL_FIGURES_TAB = lv_e_deal_figures_tab
         E_IT_FAZ_DEAL_COL = lv_e_it_faz_deal_col
         E_IT_SEC_ANBETROUT = lv_e_it_sec_anbetrout
         E_IT_SI_FAZ = lv_e_it_si_faz
    TABLES
         C_ERRORITAB = lt_c_erroritab
         C_SI_ERROR_ITAB = lt_c_si_error_itab
    EXCEPTIONS
        NO_SFGDT_FOUND = 1
        NO_EV = 2
        NO_CALC = 3
. " KLAB_DEAL_EVAL_TABLE




ABAP code using 7.40 inline data declarations to call FM KLAB_DEAL_EVAL_TABLE

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 LEVEL FROM SPROT INTO @DATA(ld_i_prot_level).
DATA(ld_i_prot_level) = 1.
 
 
 
"SELECT single DFIKT FROM KLDATS INTO @DATA(ld_auswdat).
 
 
 
 
 
 
 
 
 
 
 


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!