SAP CMS_API_ANL_GET_CALC_FOR_CON Function Module for Input the constellation and get the Results of Calculations (Analysis)









CMS_API_ANL_GET_CALC_FOR_CON is a standard cms api anl get calc for con SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Input the constellation and get the Results of Calculations (Analysis) 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 cms api anl get calc for con FM, simply by entering the name CMS_API_ANL_GET_CALC_FOR_CON into the relevant SAP transaction such as SE37 or SE38.

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



Function CMS_API_ANL_GET_CALC_FOR_CON 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 'CMS_API_ANL_GET_CALC_FOR_CON'"Input the constellation and get the Results of Calculations (Analysis)
EXPORTING
I_TAB_AST_GUID = "Technical Key of the Asset
* I_TAB_RBL_STATUS = "Receivables Status
I_TAB_CAG_GUID = "Technical Key of the Collateral Agreement
I_TAB_RBL_SKY = "Semantic Key for a Receivable
I_TAB_CHG = "Charges details
I_TAB_CAG_RBL = "Collateral Agreement-Receivable details with the CAG-GUID
I_TAB_REL_CAG_TO = "Table of Relationship Details: Contributions 'To'
I_RESULT_CURR = "Calculations Result Currency
* I_RATE_TYPE = 'M' "Exchange Rate type for currency conversion
* I_RBL_RISK_METHOD = 'B' "Indicator for RBL amt : Referring to MaxRisk or CurrRisk

IMPORTING
E_TAB_ASSESS_VALUE = "Assessment value - Calculation Result table
E_TAB_LTOV_RATIO_PR = "Loan to Value Ratio (With Ref to Prior Charges) - Res Table
E_TAB_LTOV_RATIO_RBL = "Loan to Value Ratio (With Ref to Prior RBL) - Results Table
E_TAB_COLL_VALUE = "Collateral Value - Calculation Result table
E_TAB_DIST_COLL_VALUE = "Distribution of Collateral value- Result table
E_TAB_DIST_COLL_VALUE_REL = "Distribution of Collateral value to relations
E_TAB_DIST_LENDING_RANGE = "Distribution of Lending Ranges : Results table
E_TAB_FREE_COLL = "Free Collaterals - Calculation Result table
E_TAB_COV_RATIO = "Coverage ratio of collateral agreements -Calculatiion result
E_TAB_COVERAGE_GAP = "Coverage Gap - Calculation Result table
E_TAB_RC = "Return Code and corresponding Message
E_TAB_COLL_RIGHT = "Collateral Right - Calculation Result table
E_TAB_PRIOR_CHGS = "Prior Charges - Calculation Result Table
E_TAB_LENDING_VAL_AST = "Lending Value for Asset - Calculation Result table
E_TAB_LENDING_VAL_GRT = "Lending Value for Guarantee - Calculation Result table
E_TAB_LENDING_LMT_AST = "Lending Limit for Asset - Calculation Result table
E_TAB_LENDING_LMT_GRT = "Lending Limit for Guarantee - Calculation Result table
E_TAB_LENDING_RANGES = "Lending Range - Calculation Result table
E_TAB_LTOV_RATIO_CAG = "Loan to Value Ratio (With Ref to CAG) - Results Table
.



IMPORTING Parameters details for CMS_API_ANL_GET_CALC_FOR_CON

I_TAB_AST_GUID - Technical Key of the Asset

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

I_TAB_RBL_STATUS - Receivables Status

Data type: CMS_TAB_RBL_STATUS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_CAG_GUID - Technical Key of the Collateral Agreement

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

I_TAB_RBL_SKY - Semantic Key for a Receivable

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

I_TAB_CHG - Charges details

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

I_TAB_CAG_RBL - Collateral Agreement-Receivable details with the CAG-GUID

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

I_TAB_REL_CAG_TO - Table of Relationship Details: Contributions 'To'

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

I_RESULT_CURR - Calculations Result Currency

Data type: CMS_DTE_CALC_RES_CURR
Optional: No
Call by Reference: No ( called with pass by value option)

I_RATE_TYPE - Exchange Rate type for currency conversion

Data type: CMS_DTE_RATE_TYPE
Default: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RBL_RISK_METHOD - Indicator for RBL amt : Referring to MaxRisk or CurrRisk

Data type: CMS_DTE_IND_RISK_METHOD
Default: 'B'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CMS_API_ANL_GET_CALC_FOR_CON

E_TAB_ASSESS_VALUE - Assessment value - Calculation Result table

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

E_TAB_LTOV_RATIO_PR - Loan to Value Ratio (With Ref to Prior Charges) - Res Table

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

E_TAB_LTOV_RATIO_RBL - Loan to Value Ratio (With Ref to Prior RBL) - Results Table

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

E_TAB_COLL_VALUE - Collateral Value - Calculation Result table

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

E_TAB_DIST_COLL_VALUE - Distribution of Collateral value- Result table

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

E_TAB_DIST_COLL_VALUE_REL - Distribution of Collateral value to relations

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

E_TAB_DIST_LENDING_RANGE - Distribution of Lending Ranges : Results table

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

E_TAB_FREE_COLL - Free Collaterals - Calculation Result table

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

E_TAB_COV_RATIO - Coverage ratio of collateral agreements -Calculatiion result

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

E_TAB_COVERAGE_GAP - Coverage Gap - Calculation Result table

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

E_TAB_RC - Return Code and corresponding Message

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

E_TAB_COLL_RIGHT - Collateral Right - Calculation Result table

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

E_TAB_PRIOR_CHGS - Prior Charges - Calculation Result Table

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

E_TAB_LENDING_VAL_AST - Lending Value for Asset - Calculation Result table

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

E_TAB_LENDING_VAL_GRT - Lending Value for Guarantee - Calculation Result table

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

E_TAB_LENDING_LMT_AST - Lending Limit for Asset - Calculation Result table

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

E_TAB_LENDING_LMT_GRT - Lending Limit for Guarantee - Calculation Result table

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

E_TAB_LENDING_RANGES - Lending Range - Calculation Result table

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

E_TAB_LTOV_RATIO_CAG - Loan to Value Ratio (With Ref to CAG) - Results Table

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

Copy and paste ABAP code example for CMS_API_ANL_GET_CALC_FOR_CON 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_tab_ast_guid  TYPE CMS_TAB_AST_GUID, "   
lv_e_tab_assess_value  TYPE CMS_TAB_ANL_NOM_VALUE, "   
lv_i_tab_rbl_status  TYPE CMS_TAB_RBL_STATUS, "   
lv_e_tab_ltov_ratio_pr  TYPE CMS_TAB_ANL_LTOV_RATIO_PR, "   
lv_e_tab_ltov_ratio_rbl  TYPE CMS_TAB_ANL_LTOV_RATIO_RBL, "   
lv_e_tab_coll_value  TYPE CMS_TAB_ANL_COLL_VALUE, "   
lv_e_tab_dist_coll_value  TYPE CMS_TAB_ANL_DIST_CV_RESULT, "   
lv_e_tab_dist_coll_value_rel  TYPE CMS_TAB_ANL_DIST_CV_REL_RESULT, "   
lv_e_tab_dist_lending_range  TYPE CMS_TAB_ANL_DIST_LR_RESULT, "   
lv_e_tab_free_coll  TYPE CMS_TAB_ANL_FREE_COLL, "   
lv_e_tab_cov_ratio  TYPE CMS_TAB_ANL_COV_RATIO, "   
lv_e_tab_coverage_gap  TYPE CMS_TAB_ANL_COVERAGE_GAP, "   
lv_e_tab_rc  TYPE CMS_TAB_MSG_COL_MESSAGE, "   
lv_i_tab_cag_guid  TYPE CMS_TAB_CAG_GUID, "   
lv_e_tab_coll_right  TYPE CMS_TAB_ANL_COLL_RIGHT, "   
lv_i_tab_rbl_sky  TYPE CMS_TAB_RBL_SKY, "   
lv_e_tab_prior_chgs  TYPE CMS_TAB_ANL_PRIOR_CHGS, "   
lv_i_tab_chg  TYPE CMS_TAB_CHG, "   
lv_e_tab_lending_val_ast  TYPE CMS_TAB_ANL_LENDING_VAL_AST, "   
lv_i_tab_cag_rbl  TYPE CMS_TAB_CAG_RBL_LINK_DATA, "   
lv_e_tab_lending_val_grt  TYPE CMS_TAB_ANL_LENDING_VAL_GRT, "   
lv_i_tab_rel_cag_to  TYPE CMS_TAB_REL_CAG_TO, "   
lv_e_tab_lending_lmt_ast  TYPE CMS_TAB_ANL_LENDING_LMT_AST, "   
lv_i_result_curr  TYPE CMS_DTE_CALC_RES_CURR, "   
lv_e_tab_lending_lmt_grt  TYPE CMS_TAB_ANL_LENDING_LMT_GRT, "   
lv_i_rate_type  TYPE CMS_DTE_RATE_TYPE, "   'M'
lv_e_tab_lending_ranges  TYPE CMS_TAB_ANL_LENDING_RANGE, "   
lv_i_rbl_risk_method  TYPE CMS_DTE_IND_RISK_METHOD, "   'B'
lv_e_tab_ltov_ratio_cag  TYPE CMS_TAB_ANL_LTOV_RATIO_CAG. "   

  CALL FUNCTION 'CMS_API_ANL_GET_CALC_FOR_CON'  "Input the constellation and get the Results of Calculations (Analysis)
    EXPORTING
         I_TAB_AST_GUID = lv_i_tab_ast_guid
         I_TAB_RBL_STATUS = lv_i_tab_rbl_status
         I_TAB_CAG_GUID = lv_i_tab_cag_guid
         I_TAB_RBL_SKY = lv_i_tab_rbl_sky
         I_TAB_CHG = lv_i_tab_chg
         I_TAB_CAG_RBL = lv_i_tab_cag_rbl
         I_TAB_REL_CAG_TO = lv_i_tab_rel_cag_to
         I_RESULT_CURR = lv_i_result_curr
         I_RATE_TYPE = lv_i_rate_type
         I_RBL_RISK_METHOD = lv_i_rbl_risk_method
    IMPORTING
         E_TAB_ASSESS_VALUE = lv_e_tab_assess_value
         E_TAB_LTOV_RATIO_PR = lv_e_tab_ltov_ratio_pr
         E_TAB_LTOV_RATIO_RBL = lv_e_tab_ltov_ratio_rbl
         E_TAB_COLL_VALUE = lv_e_tab_coll_value
         E_TAB_DIST_COLL_VALUE = lv_e_tab_dist_coll_value
         E_TAB_DIST_COLL_VALUE_REL = lv_e_tab_dist_coll_value_rel
         E_TAB_DIST_LENDING_RANGE = lv_e_tab_dist_lending_range
         E_TAB_FREE_COLL = lv_e_tab_free_coll
         E_TAB_COV_RATIO = lv_e_tab_cov_ratio
         E_TAB_COVERAGE_GAP = lv_e_tab_coverage_gap
         E_TAB_RC = lv_e_tab_rc
         E_TAB_COLL_RIGHT = lv_e_tab_coll_right
         E_TAB_PRIOR_CHGS = lv_e_tab_prior_chgs
         E_TAB_LENDING_VAL_AST = lv_e_tab_lending_val_ast
         E_TAB_LENDING_VAL_GRT = lv_e_tab_lending_val_grt
         E_TAB_LENDING_LMT_AST = lv_e_tab_lending_lmt_ast
         E_TAB_LENDING_LMT_GRT = lv_e_tab_lending_lmt_grt
         E_TAB_LENDING_RANGES = lv_e_tab_lending_ranges
         E_TAB_LTOV_RATIO_CAG = lv_e_tab_ltov_ratio_cag
. " CMS_API_ANL_GET_CALC_FOR_CON




ABAP code using 7.40 inline data declarations to call FM CMS_API_ANL_GET_CALC_FOR_CON

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_rate_type) = 'M'.
 
 
DATA(ld_i_rbl_risk_method) = 'B'.
 
 


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!