SAP Function Modules

UKM_GET_COMMTS_RULEBASED SAP Function module







UKM_GET_COMMTS_RULEBASED is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name UKM_GET_COMMTS_RULEBASED into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: UKM_COMMITMENTS_DISPLAY
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM UKM_GET_COMMTS_RULEBASED - UKM GET COMMTS RULEBASED





CALL FUNCTION 'UKM_GET_COMMTS_RULEBASED' "
  EXPORTING
    i_partner =                 " bu_partner    Business Partner
    i_segment =                 " ukm_credit_sgmnt  Credit Segment
*   io_account =                " cl_ukm_account  Credit Account
*   io_partner =                " cl_ukm_business_partner  Business Partner from Credit Management View
*   i_refresh = 'X'             " boolean
  IMPORTING
    e_commitments_amount =      " ukm_comm_total  Total Credit Exposure in Credit Segment Currency
    e_exposure_percent =        " ukm_credlimit_used  Credit Limit Utilization in Percent
    e_credit_limit =            " ukm_credit_limit  Credit Limit
    e_currency =                " ukm_sgm_currency  Currency Key
    e_days =                    " ukm_credit_horizon  Horizon in days
    e_date =                    " datum
    e_amount_l =                " ukm_sgm_amount  Credit Exposure Total (Actual)
  EXCEPTIONS
    PARTNER_NOT_FOUND = 1       "
    SEGMENT_NOT_FOUND = 2       "
    .  "  UKM_GET_COMMTS_RULEBASED

ABAP code example for Function Module UKM_GET_COMMTS_RULEBASED





The ABAP code below is a full code listing to execute function module UKM_GET_COMMTS_RULEBASED including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_commitments_amount  TYPE UKM_COMM_TOTAL ,
ld_e_exposure_percent  TYPE UKM_CREDLIMIT_USED ,
ld_e_credit_limit  TYPE UKM_CREDIT_LIMIT ,
ld_e_currency  TYPE UKM_SGM_CURRENCY ,
ld_e_days  TYPE UKM_CREDIT_HORIZON ,
ld_e_date  TYPE DATUM ,
ld_e_amount_l  TYPE UKM_SGM_AMOUNT .

DATA(ld_i_partner) = 'Check type of data required'.
DATA(ld_i_segment) = 'Check type of data required'.
DATA(ld_io_account) = 'Check type of data required'.
DATA(ld_io_partner) = 'Check type of data required'.
DATA(ld_i_refresh) = 'Check type of data required'. . CALL FUNCTION 'UKM_GET_COMMTS_RULEBASED' EXPORTING i_partner = ld_i_partner i_segment = ld_i_segment * io_account = ld_io_account * io_partner = ld_io_partner * i_refresh = ld_i_refresh IMPORTING e_commitments_amount = ld_e_commitments_amount e_exposure_percent = ld_e_exposure_percent e_credit_limit = ld_e_credit_limit e_currency = ld_e_currency e_days = ld_e_days e_date = ld_e_date e_amount_l = ld_e_amount_l EXCEPTIONS PARTNER_NOT_FOUND = 1 SEGMENT_NOT_FOUND = 2 . " UKM_GET_COMMTS_RULEBASED
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_commitments_amount  TYPE UKM_COMM_TOTAL ,
ld_i_partner  TYPE BU_PARTNER ,
ld_e_exposure_percent  TYPE UKM_CREDLIMIT_USED ,
ld_i_segment  TYPE UKM_CREDIT_SGMNT ,
ld_e_credit_limit  TYPE UKM_CREDIT_LIMIT ,
ld_io_account  TYPE CL_UKM_ACCOUNT ,
ld_e_currency  TYPE UKM_SGM_CURRENCY ,
ld_io_partner  TYPE CL_UKM_BUSINESS_PARTNER ,
ld_e_days  TYPE UKM_CREDIT_HORIZON ,
ld_i_refresh  TYPE BOOLEAN ,
ld_e_date  TYPE DATUM ,
ld_e_amount_l  TYPE UKM_SGM_AMOUNT .

ld_i_partner = 'Check type of data required'.
ld_i_segment = 'Check type of data required'.
ld_io_account = 'Check type of data required'.
ld_io_partner = 'Check type of data required'.
ld_i_refresh = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name UKM_GET_COMMTS_RULEBASED or its description.