SAP UKM_CALCULATE_EXPOSURE Function Module for









UKM_CALCULATE_EXPOSURE is a standard ukm calculate exposure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ukm calculate exposure FM, simply by entering the name UKM_CALCULATE_EXPOSURE into the relevant SAP transaction such as SE37 or SE38.

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



Function UKM_CALCULATE_EXPOSURE 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 'UKM_CALCULATE_EXPOSURE'"
EXPORTING
I_CREDIT_LIMIT = "SAP Credit Management: Master Data for Credit Account
I_COMMITMENT = "Amount
* I_ICON_RED_PERCENTAGE = 100 "
* I_ICON_YELLOW_PERCENTAGE = "

IMPORTING
E_EXPOSURE_PERCENT = "Credit Limit Utilization in Percent
E_EXPOSURE_AMOUNT = "
E_ICON = "
E_ICON_WITH_TEXT = "
.



IMPORTING Parameters details for UKM_CALCULATE_EXPOSURE

I_CREDIT_LIMIT - SAP Credit Management: Master Data for Credit Account

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

I_COMMITMENT - Amount

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

I_ICON_RED_PERCENTAGE -

Data type: NUMC3
Default: 100
Optional: Yes
Call by Reference: Yes

I_ICON_YELLOW_PERCENTAGE -

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

EXPORTING Parameters details for UKM_CALCULATE_EXPOSURE

E_EXPOSURE_PERCENT - Credit Limit Utilization in Percent

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

E_EXPOSURE_AMOUNT -

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

E_ICON -

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

E_ICON_WITH_TEXT -

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

Copy and paste ABAP code example for UKM_CALCULATE_EXPOSURE 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_credit_limit  TYPE UKM_CREDIT_LIMIT, "   
lv_e_exposure_percent  TYPE UKM_CREDLIMIT_USED, "   
lv_i_commitment  TYPE UKM_AMOUNT, "   
lv_e_exposure_amount  TYPE UKM_CREDLIMIT_USEDW, "   
lv_e_icon  TYPE CHAR4, "   
lv_i_icon_red_percentage  TYPE NUMC3, "   100
lv_e_icon_with_text  TYPE UKM_ICON, "   
lv_i_icon_yellow_percentage  TYPE NUMC3. "   

  CALL FUNCTION 'UKM_CALCULATE_EXPOSURE'  "
    EXPORTING
         I_CREDIT_LIMIT = lv_i_credit_limit
         I_COMMITMENT = lv_i_commitment
         I_ICON_RED_PERCENTAGE = lv_i_icon_red_percentage
         I_ICON_YELLOW_PERCENTAGE = lv_i_icon_yellow_percentage
    IMPORTING
         E_EXPOSURE_PERCENT = lv_e_exposure_percent
         E_EXPOSURE_AMOUNT = lv_e_exposure_amount
         E_ICON = lv_e_icon
         E_ICON_WITH_TEXT = lv_e_icon_with_text
. " UKM_CALCULATE_EXPOSURE




ABAP code using 7.40 inline data declarations to call FM UKM_CALCULATE_EXPOSURE

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.

 
 
 
 
 
DATA(ld_i_icon_red_percentage) = 100.
 
 
 


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!