SAP Function Modules

CMS_OBJ_ANL_GET_CALC_DATA_PERS SAP Function module - Get Calculation resutls from Persisted DB tables







CMS_OBJ_ANL_GET_CALC_DATA_PERS 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 CMS_OBJ_ANL_GET_CALC_DATA_PERS into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CMS_OBJ_ANL_GET_CALC_DATA_PERS - CMS OBJ ANL GET CALC DATA PERS





CALL FUNCTION 'CMS_OBJ_ANL_GET_CALC_DATA_PERS' "Get Calculation resutls from Persisted DB tables
  EXPORTING
    i_tab_ast_guid =            " cms_tab_ast_guid  Technical Key of the Asset
    i_tab_cag_guid =            " cms_tab_cag_guid  Technical Key of the Collateral Agreement
    i_tab_rbl_sky =             " cms_tab_rbl_sky  Semantic Key for a Receivable
*   i_tab_rel_cag_to =          " cms_tab_rel_cag_to  Table of Relationship Details: Contributions 'To'
    i_tab_chg =                 " cms_tab_chg   Charges details
    i_tab_cag_rbl =             " cms_tab_cag_rbl_link_data  Collateral Agreement-Receivable details with the CAG-GUID
    i_result_curr =             " cms_dte_calc_res_curr  Calculations Result Currency
    i_rate_type =               " cms_dte_rate_type  Exchange Rate Type for Currency Conversion
    i_tab_rbl_status =          " cms_tab_rbl_status  Receivables Status
*   i_bus_proc =                " cms_dte_bus_proc  CMS Business Process Name
  IMPORTING
    e_tab_ast_details =         " cms_tab_anl_details_ast  Analysis: Asset details table
    e_tab_sas_details =         " cms_tab_sas_details_api  Sub-asset details (API Layer and above)
    e_tab_cag_details =         " cms_tab_anl_details_cag  Analysis: Cag details table
    e_tab_rel_cag_from =        " cms_tab_rel_cag_from  Table of relationship details: Contributions 'From'
    e_tab_rel_cag_to =          " cms_tab_rel_cag_to  Table of Relationship Details: Contributions 'To'
    e_tab_cag_por =             " cms_tab_cag_por  Portions for a Collateral Agreement
    e_tab_rbl_details =         " cms_tab_anl_details_rbl  Analysis: RBL  details table
    e_tab_rbl_secured_amt =     " cms_tab_anl_rbl_secured_amt  Analysis: Receivables Secured Amount
    e_tab_rbl_maxrisk_amt =     " cms_tab_anl_rbl_risk_amt  Analyis: Receivables Risk amount for Calculations
    e_tab_rbl_currrisk_amt =    " cms_tab_anl_rbl_risk_amt  Analyis: Receivables Risk amount for Calculations
    e_tab_rc =                  " cms_tab_msg_col_message  Return Code and corresponding Message
    .  "  CMS_OBJ_ANL_GET_CALC_DATA_PERS

ABAP code example for Function Module CMS_OBJ_ANL_GET_CALC_DATA_PERS





The ABAP code below is a full code listing to execute function module CMS_OBJ_ANL_GET_CALC_DATA_PERS 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_tab_ast_details  TYPE CMS_TAB_ANL_DETAILS_AST ,
ld_e_tab_sas_details  TYPE CMS_TAB_SAS_DETAILS_API ,
ld_e_tab_cag_details  TYPE CMS_TAB_ANL_DETAILS_CAG ,
ld_e_tab_rel_cag_from  TYPE CMS_TAB_REL_CAG_FROM ,
ld_e_tab_rel_cag_to  TYPE CMS_TAB_REL_CAG_TO ,
ld_e_tab_cag_por  TYPE CMS_TAB_CAG_POR ,
ld_e_tab_rbl_details  TYPE CMS_TAB_ANL_DETAILS_RBL ,
ld_e_tab_rbl_secured_amt  TYPE CMS_TAB_ANL_RBL_SECURED_AMT ,
ld_e_tab_rbl_maxrisk_amt  TYPE CMS_TAB_ANL_RBL_RISK_AMT ,
ld_e_tab_rbl_currrisk_amt  TYPE CMS_TAB_ANL_RBL_RISK_AMT ,
ld_e_tab_rc  TYPE CMS_TAB_MSG_COL_MESSAGE .

DATA(ld_i_tab_ast_guid) = 'Check type of data required'.
DATA(ld_i_tab_cag_guid) = 'Check type of data required'.
DATA(ld_i_tab_rbl_sky) = 'Check type of data required'.
DATA(ld_i_tab_rel_cag_to) = 'Check type of data required'.
DATA(ld_i_tab_chg) = 'Check type of data required'.
DATA(ld_i_tab_cag_rbl) = 'Check type of data required'.
DATA(ld_i_result_curr) = 'Check type of data required'.
DATA(ld_i_rate_type) = 'Check type of data required'.
DATA(ld_i_tab_rbl_status) = 'Check type of data required'.
DATA(ld_i_bus_proc) = 'Check type of data required'. . CALL FUNCTION 'CMS_OBJ_ANL_GET_CALC_DATA_PERS' EXPORTING i_tab_ast_guid = ld_i_tab_ast_guid i_tab_cag_guid = ld_i_tab_cag_guid i_tab_rbl_sky = ld_i_tab_rbl_sky * i_tab_rel_cag_to = ld_i_tab_rel_cag_to i_tab_chg = ld_i_tab_chg i_tab_cag_rbl = ld_i_tab_cag_rbl i_result_curr = ld_i_result_curr i_rate_type = ld_i_rate_type i_tab_rbl_status = ld_i_tab_rbl_status * i_bus_proc = ld_i_bus_proc IMPORTING e_tab_ast_details = ld_e_tab_ast_details e_tab_sas_details = ld_e_tab_sas_details e_tab_cag_details = ld_e_tab_cag_details e_tab_rel_cag_from = ld_e_tab_rel_cag_from e_tab_rel_cag_to = ld_e_tab_rel_cag_to e_tab_cag_por = ld_e_tab_cag_por e_tab_rbl_details = ld_e_tab_rbl_details e_tab_rbl_secured_amt = ld_e_tab_rbl_secured_amt e_tab_rbl_maxrisk_amt = ld_e_tab_rbl_maxrisk_amt e_tab_rbl_currrisk_amt = ld_e_tab_rbl_currrisk_amt e_tab_rc = ld_e_tab_rc . " CMS_OBJ_ANL_GET_CALC_DATA_PERS
IF SY-SUBRC EQ 0. "All OK 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_tab_ast_details  TYPE CMS_TAB_ANL_DETAILS_AST ,
ld_i_tab_ast_guid  TYPE CMS_TAB_AST_GUID ,
ld_e_tab_sas_details  TYPE CMS_TAB_SAS_DETAILS_API ,
ld_i_tab_cag_guid  TYPE CMS_TAB_CAG_GUID ,
ld_e_tab_cag_details  TYPE CMS_TAB_ANL_DETAILS_CAG ,
ld_i_tab_rbl_sky  TYPE CMS_TAB_RBL_SKY ,
ld_e_tab_rel_cag_from  TYPE CMS_TAB_REL_CAG_FROM ,
ld_i_tab_rel_cag_to  TYPE CMS_TAB_REL_CAG_TO ,
ld_e_tab_rel_cag_to  TYPE CMS_TAB_REL_CAG_TO ,
ld_i_tab_chg  TYPE CMS_TAB_CHG ,
ld_e_tab_cag_por  TYPE CMS_TAB_CAG_POR ,
ld_i_tab_cag_rbl  TYPE CMS_TAB_CAG_RBL_LINK_DATA ,
ld_e_tab_rbl_details  TYPE CMS_TAB_ANL_DETAILS_RBL ,
ld_i_result_curr  TYPE CMS_DTE_CALC_RES_CURR ,
ld_e_tab_rbl_secured_amt  TYPE CMS_TAB_ANL_RBL_SECURED_AMT ,
ld_i_rate_type  TYPE CMS_DTE_RATE_TYPE ,
ld_e_tab_rbl_maxrisk_amt  TYPE CMS_TAB_ANL_RBL_RISK_AMT ,
ld_i_tab_rbl_status  TYPE CMS_TAB_RBL_STATUS ,
ld_e_tab_rbl_currrisk_amt  TYPE CMS_TAB_ANL_RBL_RISK_AMT ,
ld_i_bus_proc  TYPE CMS_DTE_BUS_PROC ,
ld_e_tab_rc  TYPE CMS_TAB_MSG_COL_MESSAGE .

ld_i_tab_ast_guid = 'Check type of data required'.
ld_i_tab_cag_guid = 'Check type of data required'.
ld_i_tab_rbl_sky = 'Check type of data required'.
ld_i_tab_rel_cag_to = 'Check type of data required'.
ld_i_tab_chg = 'Check type of data required'.
ld_i_tab_cag_rbl = 'Check type of data required'.
ld_i_result_curr = 'Check type of data required'.
ld_i_rate_type = 'Check type of data required'.
ld_i_tab_rbl_status = 'Check type of data required'.
ld_i_bus_proc = '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 CMS_OBJ_ANL_GET_CALC_DATA_PERS or its description.