SAP CALL_EXIT_SAPLKLEX_001 Function Module for Capsel for User Exit for Calculation of Attributable Amount
CALL_EXIT_SAPLKLEX_001 is a standard call exit saplklex 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Capsel for User Exit for Calculation of Attributable Amount 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 call exit saplklex 001 FM, simply by entering the name CALL_EXIT_SAPLKLEX_001 into the relevant SAP transaction such as SE37 or SE38.
Function Group: KLEX
Program Name: SAPLKLEX
Main Program: SAPLKLEX
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CALL_EXIT_SAPLKLEX_001 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 'CALL_EXIT_SAPLKLEX_001'"Capsel for User Exit for Calculation of Attributable Amount.
EXPORTING
I_WA_KLEVDEF = "Definition of Determination Procedures
I_ARR = "
* I_AUSWDAT = SY-DATUM "
* I_WA_ANBETRIN = "Input of Attributable Amount Determination
* I_IT_SI_ANT = "Percentual Collateralization
* I_IT_SI_WERT = "Third-Party Collateral
* I_PROT_LEVEL = 1 "
IMPORTING
E_ANRECHBETR = "Amount of Assessment Basis 1 in Currency
E_WAERS = "Currency of Assessment Basis 1
E_BSIWHR = "Amount of Collateral (Economic)
E_SSIWHR = "Currency of Collateral
E_BBASIS = "Amount of Basic Key Figure 1 in Currency
E_SBASIS = "Currency of Basic Key Figure 1
E_IT_SI_WERT = "Third-Party Collateral - Standard Table
E_IT_SEC_ANBETROUT = "Output Structure for Attributable Amount Determination
TABLES
C_ERROR_ITAB = "
EXCEPTIONS
NO_CALC = 1
IMPORTING Parameters details for CALL_EXIT_SAPLKLEX_001
I_WA_KLEVDEF - Definition of Determination Procedures
Data type: KLEVDEFOptional: No
Call by Reference: No ( called with pass by value option)
I_ARR -
Data type: KLARRC-ARROptional: No
Call by Reference: No ( called with pass by value option)
I_AUSWDAT -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WA_ANBETRIN - Input of Attributable Amount Determination
Data type: KLANBETRINOptional: Yes
Call by Reference: No ( called with pass by value option)
I_IT_SI_ANT - Percentual Collateralization
Data type: KLCOLPERC_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_IT_SI_WERT - Third-Party Collateral
Data type: KLCOLAMT_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PROT_LEVEL -
Data type: SPROT-LEVELDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CALL_EXIT_SAPLKLEX_001
E_ANRECHBETR - Amount of Assessment Basis 1 in Currency
Data type: KLBMG-BBARWOptional: No
Call by Reference: No ( called with pass by value option)
E_WAERS - Currency of Assessment Basis 1
Data type: KLBMG-SBARWWHROptional: No
Call by Reference: No ( called with pass by value option)
E_BSIWHR - Amount of Collateral (Economic)
Data type: KLSI05-BSIWHROptional: No
Call by Reference: Yes
E_SSIWHR - Currency of Collateral
Data type: KLSI05-SSIWHROptional: No
Call by Reference: Yes
E_BBASIS - Amount of Basic Key Figure 1 in Currency
Data type: KLANBETRIN-BBASISOptional: No
Call by Reference: Yes
E_SBASIS - Currency of Basic Key Figure 1
Data type: KLANBETRIN-SBASISOptional: No
Call by Reference: Yes
E_IT_SI_WERT - Third-Party Collateral - Standard Table
Data type: KLCOLAMT_STAND_TABOptional: No
Call by Reference: Yes
E_IT_SEC_ANBETROUT - Output Structure for Attributable Amount Determination
Data type: KLANBETROUT_TABOptional: No
Call by Reference: Yes
TABLES Parameters details for CALL_EXIT_SAPLKLEX_001
C_ERROR_ITAB -
Data type: BAPIERROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_CALC -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CALL_EXIT_SAPLKLEX_001 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_no_calc | TYPE STRING, " | |||
lt_c_error_itab | TYPE STANDARD TABLE OF BAPIERR, " | |||
lv_e_anrechbetr | TYPE KLBMG-BBARW, " | |||
lv_i_wa_klevdef | TYPE KLEVDEF, " | |||
lv_i_arr | TYPE KLARRC-ARR, " | |||
lv_e_waers | TYPE KLBMG-SBARWWHR, " | |||
lv_e_bsiwhr | TYPE KLSI05-BSIWHR, " | |||
lv_i_auswdat | TYPE SY-DATUM, " SY-DATUM | |||
lv_e_ssiwhr | TYPE KLSI05-SSIWHR, " | |||
lv_i_wa_anbetrin | TYPE KLANBETRIN, " | |||
lv_e_bbasis | TYPE KLANBETRIN-BBASIS, " | |||
lv_i_it_si_ant | TYPE KLCOLPERC_TAB, " | |||
lv_e_sbasis | TYPE KLANBETRIN-SBASIS, " | |||
lv_i_it_si_wert | TYPE KLCOLAMT_TAB, " | |||
lv_e_it_si_wert | TYPE KLCOLAMT_STAND_TAB, " | |||
lv_i_prot_level | TYPE SPROT-LEVEL, " 1 | |||
lv_e_it_sec_anbetrout | TYPE KLANBETROUT_TAB. " |
  CALL FUNCTION 'CALL_EXIT_SAPLKLEX_001' "Capsel for User Exit for Calculation of Attributable Amount |
EXPORTING | ||
I_WA_KLEVDEF | = lv_i_wa_klevdef | |
I_ARR | = lv_i_arr | |
I_AUSWDAT | = lv_i_auswdat | |
I_WA_ANBETRIN | = lv_i_wa_anbetrin | |
I_IT_SI_ANT | = lv_i_it_si_ant | |
I_IT_SI_WERT | = lv_i_it_si_wert | |
I_PROT_LEVEL | = lv_i_prot_level | |
IMPORTING | ||
E_ANRECHBETR | = lv_e_anrechbetr | |
E_WAERS | = lv_e_waers | |
E_BSIWHR | = lv_e_bsiwhr | |
E_SSIWHR | = lv_e_ssiwhr | |
E_BBASIS | = lv_e_bbasis | |
E_SBASIS | = lv_e_sbasis | |
E_IT_SI_WERT | = lv_e_it_si_wert | |
E_IT_SEC_ANBETROUT | = lv_e_it_sec_anbetrout | |
TABLES | ||
C_ERROR_ITAB | = lt_c_error_itab | |
EXCEPTIONS | ||
NO_CALC = 1 | ||
. " CALL_EXIT_SAPLKLEX_001 |
ABAP code using 7.40 inline data declarations to call FM CALL_EXIT_SAPLKLEX_001
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 BBARW FROM KLBMG INTO @DATA(ld_e_anrechbetr). | ||||
"SELECT single ARR FROM KLARRC INTO @DATA(ld_i_arr). | ||||
"SELECT single SBARWWHR FROM KLBMG INTO @DATA(ld_e_waers). | ||||
"SELECT single BSIWHR FROM KLSI05 INTO @DATA(ld_e_bsiwhr). | ||||
"SELECT single DATUM FROM SY INTO @DATA(ld_i_auswdat). | ||||
DATA(ld_i_auswdat) | = SY-DATUM. | |||
"SELECT single SSIWHR FROM KLSI05 INTO @DATA(ld_e_ssiwhr). | ||||
"SELECT single BBASIS FROM KLANBETRIN INTO @DATA(ld_e_bbasis). | ||||
"SELECT single SBASIS FROM KLANBETRIN INTO @DATA(ld_e_sbasis). | ||||
"SELECT single LEVEL FROM SPROT INTO @DATA(ld_i_prot_level). | ||||
DATA(ld_i_prot_level) | = 1. | |||
Search for further information about these or an SAP related objects