SAP KL_BK_CALC_NOMINAL_VAL_SINGLE Function Module for Get Nominal Amount - Single Record
KL_BK_CALC_NOMINAL_VAL_SINGLE is a standard kl bk calc nominal val single SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Nominal Amount - Single Record 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 kl bk calc nominal val single FM, simply by entering the name KL_BK_CALC_NOMINAL_VAL_SINGLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: KLBK
Program Name: SAPLKLBK
Main Program: SAPLKLBK
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KL_BK_CALC_NOMINAL_VAL_SINGLE 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 'KL_BK_CALC_NOMINAL_VAL_SINGLE'"Get Nominal Amount - Single Record.
EXPORTING
* I_AKT_DATUM = SY-DATUM "Evaluation Date
I_RES_CURR = "Limit Currency
I_SFGDT = "Single Transaction as SFGDT
* I_CP_ISSUER_FLAG = "
* I_PROTOCOL_LEVEL = 1 "Log Level
* I_VAR = "Variable 1: Assignment Key
* I_ERM_VERFAHREN_TAB = "
* WA_EXTOBJ = "
IMPORTING
E_KL0_BMG = "Nominal Amount, Incoming/Outgoing Cash Flow, External Commitment
CHANGING
* C_REP_TAB = "
TABLES
C_ERROR_ITAB = "Error Message Table
EXCEPTIONS
NO_FGET_DATA = 1 NO_NOMINAL_VALUE = 2 INVALID_DATA = 3 MARKET_DATA_SPOT = 4
IMPORTING Parameters details for KL_BK_CALC_NOMINAL_VAL_SINGLE
I_AKT_DATUM - Evaluation Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RES_CURR - Limit Currency
Data type: TCURC-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_SFGDT - Single Transaction as SFGDT
Data type: TVS_SFGDT_TYPOptional: No
Call by Reference: No ( called with pass by value option)
I_CP_ISSUER_FLAG -
Data type: NOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PROTOCOL_LEVEL - Log Level
Data type:Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VAR - Variable 1: Assignment Key
Data type: KLREGDEF-VAR_1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ERM_VERFAHREN_TAB -
Data type: KL2_EV_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
WA_EXTOBJ -
Data type: KL2_EXTOBJ_TYPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for KL_BK_CALC_NOMINAL_VAL_SINGLE
E_KL0_BMG - Nominal Amount, Incoming/Outgoing Cash Flow, External Commitment
Data type: KL0_BMG_TYPOptional: No
Call by Reference: Yes
CHANGING Parameters details for KL_BK_CALC_NOMINAL_VAL_SINGLE
C_REP_TAB -
Data type: KL2_REP_TABOptional: Yes
Call by Reference: Yes
TABLES Parameters details for KL_BK_CALC_NOMINAL_VAL_SINGLE
C_ERROR_ITAB - Error Message Table
Data type: BAPIERROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_FGET_DATA - FGET structure is incorrect
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_NOMINAL_VALUE - Unable to find the nominal amount
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MARKET_DATA_SPOT - Due to convert_currency2
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for KL_BK_CALC_NOMINAL_VAL_SINGLE 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_c_rep_tab | TYPE KL2_REP_TAB, " | |||
| lv_e_kl0_bmg | TYPE KL0_BMG_TYP, " | |||
| lv_i_akt_datum | TYPE SY-DATUM, " SY-DATUM | |||
| lt_c_error_itab | TYPE STANDARD TABLE OF BAPIERR, " | |||
| lv_no_fget_data | TYPE BAPIERR, " | |||
| lv_i_res_curr | TYPE TCURC-WAERS, " | |||
| lv_no_nominal_value | TYPE TCURC, " | |||
| lv_i_sfgdt | TYPE TVS_SFGDT_TYP, " | |||
| lv_invalid_data | TYPE TVS_SFGDT_TYP, " | |||
| lv_i_cp_issuer_flag | TYPE N, " | |||
| lv_market_data_spot | TYPE N, " | |||
| lv_i_protocol_level | TYPE N, " 1 | |||
| lv_i_var | TYPE KLREGDEF-VAR_1, " | |||
| lv_i_erm_verfahren_tab | TYPE KL2_EV_TAB, " | |||
| lv_wa_extobj | TYPE KL2_EXTOBJ_TYP. " |
|   CALL FUNCTION 'KL_BK_CALC_NOMINAL_VAL_SINGLE' "Get Nominal Amount - Single Record |
| EXPORTING | ||
| I_AKT_DATUM | = lv_i_akt_datum | |
| I_RES_CURR | = lv_i_res_curr | |
| I_SFGDT | = lv_i_sfgdt | |
| I_CP_ISSUER_FLAG | = lv_i_cp_issuer_flag | |
| I_PROTOCOL_LEVEL | = lv_i_protocol_level | |
| I_VAR | = lv_i_var | |
| I_ERM_VERFAHREN_TAB | = lv_i_erm_verfahren_tab | |
| WA_EXTOBJ | = lv_wa_extobj | |
| IMPORTING | ||
| E_KL0_BMG | = lv_e_kl0_bmg | |
| CHANGING | ||
| C_REP_TAB | = lv_c_rep_tab | |
| TABLES | ||
| C_ERROR_ITAB | = lt_c_error_itab | |
| EXCEPTIONS | ||
| NO_FGET_DATA = 1 | ||
| NO_NOMINAL_VALUE = 2 | ||
| INVALID_DATA = 3 | ||
| MARKET_DATA_SPOT = 4 | ||
| . " KL_BK_CALC_NOMINAL_VAL_SINGLE | ||
ABAP code using 7.40 inline data declarations to call FM KL_BK_CALC_NOMINAL_VAL_SINGLE
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 DATUM FROM SY INTO @DATA(ld_i_akt_datum). | ||||
| DATA(ld_i_akt_datum) | = SY-DATUM. | |||
| "SELECT single WAERS FROM TCURC INTO @DATA(ld_i_res_curr). | ||||
| DATA(ld_i_protocol_level) | = 1. | |||
| "SELECT single VAR_1 FROM KLREGDEF INTO @DATA(ld_i_var). | ||||
Search for further information about these or an SAP related objects