HR_CLM_GET_CURRENT_AMOUNT 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 HR_CLM_GET_CURRENT_AMOUNT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
HRCLM00TRNPRO
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'HR_CLM_GET_CURRENT_AMOUNT' "Get current amount after applying all specified rules
EXPORTING
reduction_percent = " t7xas8-cpper Co-payment percentage
reduction_amount = " t7xas8-cpamt Co-payment amount
claim_amount = " t7xast-clamt Claim amount
* previous_pass_amount = " t7xast-clamt Claim amount in the previous pass
processing_rule = " t7xas8-cpprl Processing rule for co-payment amount & percent
CHANGING
current_amount = " t7xast-clamt Amount after applying all the above reductions
. " HR_CLM_GET_CURRENT_AMOUNT
The ABAP code below is a full code listing to execute function module HR_CLM_GET_CURRENT_AMOUNT 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).
SELECT single CLAMT
FROM T7XAST
INTO @DATA(ld_current_amount).
SELECT single CPPER
FROM T7XAS8
INTO @DATA(ld_reduction_percent).
SELECT single CPAMT
FROM T7XAS8
INTO @DATA(ld_reduction_amount).
SELECT single CLAMT
FROM T7XAST
INTO @DATA(ld_claim_amount).
SELECT single CLAMT
FROM T7XAST
INTO @DATA(ld_previous_pass_amount).
SELECT single CPPRL
FROM T7XAS8
INTO @DATA(ld_processing_rule).
. CALL FUNCTION 'HR_CLM_GET_CURRENT_AMOUNT' EXPORTING reduction_percent = ld_reduction_percent reduction_amount = ld_reduction_amount claim_amount = ld_claim_amount * previous_pass_amount = ld_previous_pass_amount processing_rule = ld_processing_rule CHANGING current_amount = ld_current_amount . " HR_CLM_GET_CURRENT_AMOUNT
IF SY-SUBRC EQ 0. "All OK ENDIF.
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_current_amount | TYPE T7XAST-CLAMT , |
| ld_reduction_percent | TYPE T7XAS8-CPPER , |
| ld_reduction_amount | TYPE T7XAS8-CPAMT , |
| ld_claim_amount | TYPE T7XAST-CLAMT , |
| ld_previous_pass_amount | TYPE T7XAST-CLAMT , |
| ld_processing_rule | TYPE T7XAS8-CPPRL . |
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 HR_CLM_GET_CURRENT_AMOUNT or its description.
HR_CLM_GET_CURRENT_AMOUNT - Get current amount after applying all specified rules HR_CLM_GET_CLAIM_RECS - Read claims from claims transaction table HR_CLM_GET_CLAIM_LIMITS - Get claim limits HR_CLM_GET_BALANCE_DETAILS - Get balance details for claims processing HR_CLM_GET_BALANCE_AS_OF - Get balance details as of data and claim HR_CLM_GENERATE_WGTYPES - Create records in IT0015 or IT0267 for claims wagetypes