SAP Function Modules

CMS_API_CAG_GET_MLT SAP Function module - Fetch details for all giiven Collateral Agreements







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

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


Pattern for FM CMS_API_CAG_GET_MLT - CMS API CAG GET MLT





CALL FUNCTION 'CMS_API_CAG_GET_MLT' "Fetch details for all giiven Collateral Agreements
  EXPORTING
    i_tab_cag_guid =            " cms_tab_cag_guid  Technical Key of the Collateral Agreement
*   i_flg_lock =                " cms_dte_flg_lock  Flag:Indicates that the entity needs to be locked
*   i_flg_db = 'X'              " cms_dte_flg_fetch_from_db  Flag: Indicates that the data is to be fetched from database
*   i_str_cag_reqd_data =       " cms_str_cag_reqd_data  Data to be fetched for the CAG
  IMPORTING
    e_tab_cag =                 " cms_tab_cag   Collateral Agreement
    e_tab_cag_por =             " cms_tab_cag_por  Portions for a Collateral Agreement
    e_tab_cag_bp =              " cms_tab_cag_mlt_bp  Business Partner Relationships for multiple CAGs
    e_tab_cag_por_bp =          " cms_tab_cag_bp  Business Partner for a Collateral Agreement
    e_tab_cag_bp_trm =          " cms_tab_cag_mlt_bp_trm  Bupa termination details for CAG
    e_tab_cag_doc =             " cms_tab_cag_doc  Documents for a Collateral Agreement
    e_tab_cag_rules =           " cms_tab_cag_mlt_rules  Rules for multiple agreements (With CAG_GUID)
    e_tab_cag_sa =              " cms_tab_cag_sa  Special Arrangements for a CAG
    e_tab_cag_exp =             " cms_tab_cag_mlt_exp  Expenditure Incurred for CAG
    e_tab_cag_sys_stat =        " cms_tab_cag_sys_stat  System status for the Collateral Agreement
    e_tab_cag_usr_stat =        " cms_tab_cag_usr_stat  User status for the Collateral Agreement
    e_tab_cag_notes =           " cms_tab_cag_txt_lines  Text lines
    e_tab_rc =                  " cms_tab_msg_col_message  Return Code and corresponding Message
    .  "  CMS_API_CAG_GET_MLT

ABAP code example for Function Module CMS_API_CAG_GET_MLT





The ABAP code below is a full code listing to execute function module CMS_API_CAG_GET_MLT 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_cag  TYPE CMS_TAB_CAG ,
ld_e_tab_cag_por  TYPE CMS_TAB_CAG_POR ,
ld_e_tab_cag_bp  TYPE CMS_TAB_CAG_MLT_BP ,
ld_e_tab_cag_por_bp  TYPE CMS_TAB_CAG_BP ,
ld_e_tab_cag_bp_trm  TYPE CMS_TAB_CAG_MLT_BP_TRM ,
ld_e_tab_cag_doc  TYPE CMS_TAB_CAG_DOC ,
ld_e_tab_cag_rules  TYPE CMS_TAB_CAG_MLT_RULES ,
ld_e_tab_cag_sa  TYPE CMS_TAB_CAG_SA ,
ld_e_tab_cag_exp  TYPE CMS_TAB_CAG_MLT_EXP ,
ld_e_tab_cag_sys_stat  TYPE CMS_TAB_CAG_SYS_STAT ,
ld_e_tab_cag_usr_stat  TYPE CMS_TAB_CAG_USR_STAT ,
ld_e_tab_cag_notes  TYPE CMS_TAB_CAG_TXT_LINES ,
ld_e_tab_rc  TYPE CMS_TAB_MSG_COL_MESSAGE .

DATA(ld_i_tab_cag_guid) = 'Check type of data required'.
DATA(ld_i_flg_lock) = 'Check type of data required'.
DATA(ld_i_flg_db) = 'Check type of data required'.
DATA(ld_i_str_cag_reqd_data) = 'Check type of data required'. . CALL FUNCTION 'CMS_API_CAG_GET_MLT' EXPORTING i_tab_cag_guid = ld_i_tab_cag_guid * i_flg_lock = ld_i_flg_lock * i_flg_db = ld_i_flg_db * i_str_cag_reqd_data = ld_i_str_cag_reqd_data IMPORTING e_tab_cag = ld_e_tab_cag e_tab_cag_por = ld_e_tab_cag_por e_tab_cag_bp = ld_e_tab_cag_bp e_tab_cag_por_bp = ld_e_tab_cag_por_bp e_tab_cag_bp_trm = ld_e_tab_cag_bp_trm e_tab_cag_doc = ld_e_tab_cag_doc e_tab_cag_rules = ld_e_tab_cag_rules e_tab_cag_sa = ld_e_tab_cag_sa e_tab_cag_exp = ld_e_tab_cag_exp e_tab_cag_sys_stat = ld_e_tab_cag_sys_stat e_tab_cag_usr_stat = ld_e_tab_cag_usr_stat e_tab_cag_notes = ld_e_tab_cag_notes e_tab_rc = ld_e_tab_rc . " CMS_API_CAG_GET_MLT
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_cag  TYPE CMS_TAB_CAG ,
ld_i_tab_cag_guid  TYPE CMS_TAB_CAG_GUID ,
ld_e_tab_cag_por  TYPE CMS_TAB_CAG_POR ,
ld_i_flg_lock  TYPE CMS_DTE_FLG_LOCK ,
ld_e_tab_cag_bp  TYPE CMS_TAB_CAG_MLT_BP ,
ld_i_flg_db  TYPE CMS_DTE_FLG_FETCH_FROM_DB ,
ld_e_tab_cag_por_bp  TYPE CMS_TAB_CAG_BP ,
ld_i_str_cag_reqd_data  TYPE CMS_STR_CAG_REQD_DATA ,
ld_e_tab_cag_bp_trm  TYPE CMS_TAB_CAG_MLT_BP_TRM ,
ld_e_tab_cag_doc  TYPE CMS_TAB_CAG_DOC ,
ld_e_tab_cag_rules  TYPE CMS_TAB_CAG_MLT_RULES ,
ld_e_tab_cag_sa  TYPE CMS_TAB_CAG_SA ,
ld_e_tab_cag_exp  TYPE CMS_TAB_CAG_MLT_EXP ,
ld_e_tab_cag_sys_stat  TYPE CMS_TAB_CAG_SYS_STAT ,
ld_e_tab_cag_usr_stat  TYPE CMS_TAB_CAG_USR_STAT ,
ld_e_tab_cag_notes  TYPE CMS_TAB_CAG_TXT_LINES ,
ld_e_tab_rc  TYPE CMS_TAB_MSG_COL_MESSAGE .

ld_i_tab_cag_guid = 'Check type of data required'.
ld_i_flg_lock = 'Check type of data required'.
ld_i_flg_db = 'Check type of data required'.
ld_i_str_cag_reqd_data = 'Check type of data required'.

SAP Documentation for FM CMS_API_CAG_GET_MLT


This API function module is used to fetch details of one or more collateral agreements maintained in Collateral Management. This is ...See here for full SAP fm documentation

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_API_CAG_GET_MLT or its description.