The access logic of the credit limit utilization rate and the exposure amount in the credit limit UKM_BP_DISPLAY report

1. DEBUG program UKM_BP_DISPLAY

From the program, you can trace the function UKM_GET_COMMTS_RULEBASED to get the used credit limit,
Insert picture description here
and then trace to the function UKM_CALCULATE_EXPOSURE to get the credit limit usage rate and exposure amount
Insert picture description here

2. Summarize the access logic of credit line and exposure amount as follows

2.1 First call the function UKM_GET_COMMTS_RULEBASED according to the credit account UKMBP_CMS_SGM-PARTNER and credit segment UKMBP_CMS_SGM-CREDIT_SGMNT to obtain the amount of the used credit line.

CALL FUNCTION 'UKM_GET_COMMTS_RULEBASED'
    EXPORTING
      i_partner                  = gs_segment_alv-partner “信贷账户
      i_segment                  = gs_segment_alv-credit_sgmnt “信用段
      i_refresh                  = 'X'
    IMPORTING
      e_commitments_amount       = l_amount “获取到使用金额
      e_days                     = gs_segment_alv-horizon_days
      E_DATE                     = gs_segment_alv-horizon_date
* EXCEPTIONS
*   PARTNER_NOT_FOUND          = 1
*   SEGMENT_NOT_FOUND          = 2
*   OTHERS                     = 3

2.2 According to the credit limit UKMBP_CMS_SGM- CREDIT_LIMIT and the amount of the used credit limit, call the function UKM_CALCULATE_EXPOSURE to obtain the credit limit usage rate and exposure amount

CALL FUNCTION 'UKM_CALCULATE_EXPOSURE'
    EXPORTING
      i_credit_limit     = i_data-credit_limit  "信用额度
      i_commitment       = l_amount   “已使用额度
*     I_ICON_RED_PERCENTAGE    = 100
*     I_ICON_YELLOW_PERCENTAGE =
    IMPORTING
      e_exposure_percent = i_data-credit_limit_used "使用率
      e_exposure_amount  = i_data-credit_limit_usedw”敞口金额
      e_icon_with_text   = i_data-icon.

Guess you like

Origin blog.csdn.net/NamelessOfL/article/details/106154384