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
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
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).
| 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 . |
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 . |
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
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.
CMS_API_CAG_GET_MLT - Fetch details for all giiven Collateral Agreements CMS_API_CAG_GET_LIST_BCM - Get a list of CAGs for the cag type and org unit CMS_API_CAG_GET_LIST - CAG list for the selection Criteria CMS_API_CAG_GET_BY_SKY - Fetch CAG Technical Key based on the Semantic key CMS_API_CAG_GET_BY_POR - Fetch Collateral Agreement by portion CMS_API_CAG_GET_BY_BP - Fetch collateral agreements for a business partner