SAP KL_BK_CALC_NOM_DAR_GH_WP Function Module for Nominal Amount for Loans, Money Market Transactions, Securities
KL_BK_CALC_NOM_DAR_GH_WP is a standard kl bk calc nom dar gh wp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Nominal Amount for Loans, Money Market Transactions, Securities 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 nom dar gh wp FM, simply by entering the name KL_BK_CALC_NOM_DAR_GH_WP 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_NOM_DAR_GH_WP 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_NOM_DAR_GH_WP'"Nominal Amount for Loans, Money Market Transactions, Securities.
EXPORTING
* I_DATUM = SY-DATUM "Evaluation Date
I_FGET = "Single Transaction as SFGDT
I_CURR = "
* I_PROT_LEVEL = 1 "
* I_CP_ISSUER_FLAG = "
* I_VAR = "Variable 1: Assignment Key
IMPORTING
E_AMOUNT = "Nominal Amount
E_CURR = "Curreny of Nominal Amount
E_BEZWHR = "Amount of External Commitment Capital
E_SEZWHR = "Currency of External Commitment Capital
E_CASHFLOW_EIN = "Amount of Incoming Cash Flow
E_CASHFLOW_EIN_CURR = "Currency of Incoming Cash Flow
E_CASHFLOW_AUS = "Amount of Outgong Cash Flow
E_CASHFLOW_AUS_CURR = "Currency of Outgoing Cash Flow
TABLES
C_ERROR_ITAB = "
EXCEPTIONS
INVALID_DATA = 1
IMPORTING Parameters details for KL_BK_CALC_NOM_DAR_GH_WP
I_DATUM - Evaluation Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FGET - Single Transaction as SFGDT
Data type: TV1_FGET_TYPOptional: No
Call by Reference: Yes
I_CURR -
Data type: TCURC-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_PROT_LEVEL -
Data type:Default: 1
Optional: Yes
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_VAR - Variable 1: Assignment Key
Data type: KLREGDEF-VAR_1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for KL_BK_CALC_NOM_DAR_GH_WP
E_AMOUNT - Nominal Amount
Data type: KLBKNZ-BBK1WHROptional: No
Call by Reference: No ( called with pass by value option)
E_CURR - Curreny of Nominal Amount
Data type: TCURC-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
E_BEZWHR - Amount of External Commitment Capital
Data type: VTVFGKO01-BEZWHROptional: No
Call by Reference: No ( called with pass by value option)
E_SEZWHR - Currency of External Commitment Capital
Data type: VTVFGKO01-SEZWHROptional: No
Call by Reference: No ( called with pass by value option)
E_CASHFLOW_EIN - Amount of Incoming Cash Flow
Data type: KLBMG-BCFEINOptional: No
Call by Reference: No ( called with pass by value option)
E_CASHFLOW_EIN_CURR - Currency of Incoming Cash Flow
Data type: KLBMG-SCFEINWHROptional: No
Call by Reference: No ( called with pass by value option)
E_CASHFLOW_AUS - Amount of Outgong Cash Flow
Data type: KLBMG-BCFAUSOptional: No
Call by Reference: No ( called with pass by value option)
E_CASHFLOW_AUS_CURR - Currency of Outgoing Cash Flow
Data type: KLBMG-SCFAUSWHROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for KL_BK_CALC_NOM_DAR_GH_WP
C_ERROR_ITAB -
Data type: BAPIERROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KL_BK_CALC_NOM_DAR_GH_WP 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_datum | TYPE SY-DATUM, " SY-DATUM | |||
| lv_e_amount | TYPE KLBKNZ-BBK1WHR, " | |||
| lt_c_error_itab | TYPE STANDARD TABLE OF BAPIERR, " | |||
| lv_invalid_data | TYPE BAPIERR, " | |||
| lv_e_curr | TYPE TCURC-WAERS, " | |||
| lv_i_fget | TYPE TV1_FGET_TYP, " | |||
| lv_i_curr | TYPE TCURC-WAERS, " | |||
| lv_e_bezwhr | TYPE VTVFGKO01-BEZWHR, " | |||
| lv_e_sezwhr | TYPE VTVFGKO01-SEZWHR, " | |||
| lv_i_prot_level | TYPE VTVFGKO01, " 1 | |||
| lv_e_cashflow_ein | TYPE KLBMG-BCFEIN, " | |||
| lv_i_cp_issuer_flag | TYPE N, " | |||
| lv_i_var | TYPE KLREGDEF-VAR_1, " | |||
| lv_e_cashflow_ein_curr | TYPE KLBMG-SCFEINWHR, " | |||
| lv_e_cashflow_aus | TYPE KLBMG-BCFAUS, " | |||
| lv_e_cashflow_aus_curr | TYPE KLBMG-SCFAUSWHR. " |
|   CALL FUNCTION 'KL_BK_CALC_NOM_DAR_GH_WP' "Nominal Amount for Loans, Money Market Transactions, Securities |
| EXPORTING | ||
| I_DATUM | = lv_i_datum | |
| I_FGET | = lv_i_fget | |
| I_CURR | = lv_i_curr | |
| I_PROT_LEVEL | = lv_i_prot_level | |
| I_CP_ISSUER_FLAG | = lv_i_cp_issuer_flag | |
| I_VAR | = lv_i_var | |
| IMPORTING | ||
| E_AMOUNT | = lv_e_amount | |
| E_CURR | = lv_e_curr | |
| E_BEZWHR | = lv_e_bezwhr | |
| E_SEZWHR | = lv_e_sezwhr | |
| E_CASHFLOW_EIN | = lv_e_cashflow_ein | |
| E_CASHFLOW_EIN_CURR | = lv_e_cashflow_ein_curr | |
| E_CASHFLOW_AUS | = lv_e_cashflow_aus | |
| E_CASHFLOW_AUS_CURR | = lv_e_cashflow_aus_curr | |
| TABLES | ||
| C_ERROR_ITAB | = lt_c_error_itab | |
| EXCEPTIONS | ||
| INVALID_DATA = 1 | ||
| . " KL_BK_CALC_NOM_DAR_GH_WP | ||
ABAP code using 7.40 inline data declarations to call FM KL_BK_CALC_NOM_DAR_GH_WP
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_datum). | ||||
| DATA(ld_i_datum) | = SY-DATUM. | |||
| "SELECT single BBK1WHR FROM KLBKNZ INTO @DATA(ld_e_amount). | ||||
| "SELECT single WAERS FROM TCURC INTO @DATA(ld_e_curr). | ||||
| "SELECT single WAERS FROM TCURC INTO @DATA(ld_i_curr). | ||||
| "SELECT single BEZWHR FROM VTVFGKO01 INTO @DATA(ld_e_bezwhr). | ||||
| "SELECT single SEZWHR FROM VTVFGKO01 INTO @DATA(ld_e_sezwhr). | ||||
| DATA(ld_i_prot_level) | = 1. | |||
| "SELECT single BCFEIN FROM KLBMG INTO @DATA(ld_e_cashflow_ein). | ||||
| "SELECT single VAR_1 FROM KLREGDEF INTO @DATA(ld_i_var). | ||||
| "SELECT single SCFEINWHR FROM KLBMG INTO @DATA(ld_e_cashflow_ein_curr). | ||||
| "SELECT single BCFAUS FROM KLBMG INTO @DATA(ld_e_cashflow_aus). | ||||
| "SELECT single SCFAUSWHR FROM KLBMG INTO @DATA(ld_e_cashflow_aus_curr). | ||||
Search for further information about these or an SAP related objects