SAP BAPI_CMS_CAG_GETDETAIL_MULTI Function Module for Get details of Collateral agreement(Multi)









BAPI_CMS_CAG_GETDETAIL_MULTI is a standard bapi cms cag getdetail multi SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get details of Collateral agreement(Multi) 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 bapi cms cag getdetail multi FM, simply by entering the name BAPI_CMS_CAG_GETDETAIL_MULTI into the relevant SAP transaction such as SE37 or SE38.

Function Group: CMS_BUSISB101_BAPI
Program Name: SAPLCMS_BUSISB101_BAPI
Main Program: SAPLCMS_BUSISB101_BAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_CMS_CAG_GETDETAIL_MULTI 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 'BAPI_CMS_CAG_GETDETAIL_MULTI'"Get details of Collateral agreement(Multi)
EXPORTING
* DATA_REQUESTED = "Data to be fetched for the CAG
* PROCESSEXTENSION = "Flag: Execute Customer Extensions (BAdIs) in BAPI

TABLES
COLLATERAL_AGREEMENT_KEY = "Semantic key for Collateral agreements
* RULES = "Rules associated to Collateral agreement
* RECEIVABLE_LINKS = "Collateral agreement receivable links
* CHARGES = "Charges on Collateral agreement
* BUSINESS_PARTNERS = "Business partners linked to Collateral agreement
* DOCUMENTS = "Documents linked to collateral agreement
* PORTION_BUSINESS_PARTNERS = "Business partners linked to Agreement-Portions
* RELATIONS_FROM = "Relationship: Contributions From Agreement Portions
* RELATED_TO = "Relationship: Contributions of Portions to Agreements
* USER_STATUS = "User status
* SYSTEM_STATUS = "System status
* EXTENSIONIN = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* SPECIAL_ARRANGEMENTS = "Special agreements on collateral agreements
* PARTNER_TERMINATION_DATA = "BuPa termination details
* COSTS = "Expenditure incurred on collateral agreements
* NOTES = "Notes created on Collateral agreement
* ASSESSMENT_VALUE = "Assesment value of Agreement
* PRIOR_CHARGES = "Prior charges
* GUARANTEE_LENDING_VALUE = "Lending value for guarantees
* GUARANTEE_LENDING_LIMIT = "Lending limit for guarantees
* CALCULATED_VALUES = "Agreement specific calcualted values
* PRIOR_CHARGE_LOAN_TO_VALUE = "Agreement specific calcualted values
* BASIC_DATA = "Basic data for collateral agreements
* DISTRIBUTED_COLLATERAL_VALUE = "Distributed collateral value
* RELATION_FROM_COLLATERAL_VALUE = "Distribution of collateral value to relations
* RELATED_TO_COLLATERAL_VALUE = "Distribution of collateral value to relations
* COVERAGE_GAP = "Coverage gap for Receivables
* FREE_COLLATERAL = "Free collateral
* EXTENSIONOUT = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* RETURN = "Return Parameter
* ADMIN_DATA = "Administrative data for collateral agreements
* GUARANTEE_DATA = "Guarantee data
* TRANSFER_DATA = "Transfer specific details
* LAND_CHARGE_DATA = "Land charges specific data
* ASSIGNMENT_PLEDGE_DATA = "Assignment Pledge specific data
* PORTIONS = "Collateral agreement portions
.



IMPORTING Parameters details for BAPI_CMS_CAG_GETDETAIL_MULTI

DATA_REQUESTED - Data to be fetched for the CAG

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

PROCESSEXTENSION - Flag: Execute Customer Extensions (BAdIs) in BAPI

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

TABLES Parameters details for BAPI_CMS_CAG_GETDETAIL_MULTI

COLLATERAL_AGREEMENT_KEY - Semantic key for Collateral agreements

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

RULES - Rules associated to Collateral agreement

Data type: BAPICMS_STR_CAG_RULES_GET
Optional: Yes
Call by Reference: Yes

RECEIVABLE_LINKS - Collateral agreement receivable links

Data type: BAPICMS_STR_CAG_RBL_GET
Optional: Yes
Call by Reference: Yes

CHARGES - Charges on Collateral agreement

Data type: BAPICMS_STR_CAG_CHG_GET
Optional: Yes
Call by Reference: Yes

BUSINESS_PARTNERS - Business partners linked to Collateral agreement

Data type: BAPICMS_STR_CAG_BP_GET
Optional: Yes
Call by Reference: Yes

DOCUMENTS - Documents linked to collateral agreement

Data type: BAPICMS_STR_CAG_DOC_GET
Optional: Yes
Call by Reference: Yes

PORTION_BUSINESS_PARTNERS - Business partners linked to Agreement-Portions

Data type: BAPICMS_STR_CAG_POR_BP_GET
Optional: Yes
Call by Reference: Yes

RELATIONS_FROM - Relationship: Contributions From Agreement Portions

Data type: BAPICMS_STR_CAG_REL_FROM_GET
Optional: Yes
Call by Reference: Yes

RELATED_TO - Relationship: Contributions of Portions to Agreements

Data type: BAPICMS_STR_CAG_REL_TO_GET
Optional: Yes
Call by Reference: Yes

USER_STATUS - User status

Data type: BAPICMS_STR_CAG_USR_STAT_GET
Optional: Yes
Call by Reference: Yes

SYSTEM_STATUS - System status

Data type: BAPICMS_STR_CAG_SYS_STAT_GET
Optional: Yes
Call by Reference: Yes

EXTENSIONIN - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

SPECIAL_ARRANGEMENTS - Special agreements on collateral agreements

Data type: BAPICMS_STR_CAG_SA_GET
Optional: Yes
Call by Reference: Yes

PARTNER_TERMINATION_DATA - BuPa termination details

Data type: BAPICMS_STR_CAG_BP_TRM_GET
Optional: Yes
Call by Reference: Yes

COSTS - Expenditure incurred on collateral agreements

Data type: BAPICMS_STR_CAG_EXP_GET
Optional: Yes
Call by Reference: Yes

NOTES - Notes created on Collateral agreement

Data type: BAPICMS_STR_CAG_NOTES_GET
Optional: Yes
Call by Reference: Yes

ASSESSMENT_VALUE - Assesment value of Agreement

Data type: BAPICMS_STR_CAG_ASMT_VAL_GET
Optional: Yes
Call by Reference: Yes

PRIOR_CHARGES - Prior charges

Data type: BAPICMS_STR_CAG_PR_CHG_GET
Optional: Yes
Call by Reference: Yes

GUARANTEE_LENDING_VALUE - Lending value for guarantees

Data type: BAPICMS_STR_CAG_LV_GUAR_GET
Optional: Yes
Call by Reference: Yes

GUARANTEE_LENDING_LIMIT - Lending limit for guarantees

Data type: BAPICMS_STR_CAG_LL_GUAR_GET
Optional: Yes
Call by Reference: Yes

CALCULATED_VALUES - Agreement specific calcualted values

Data type: BAPICMS_STR_CAG_CALC_GET
Optional: Yes
Call by Reference: Yes

PRIOR_CHARGE_LOAN_TO_VALUE - Agreement specific calcualted values

Data type: BAPICMS_STR_CAG_LVR_PR_GET
Optional: Yes
Call by Reference: Yes

BASIC_DATA - Basic data for collateral agreements

Data type: BAPICMS_STR_CAG_BASIC_GET
Optional: Yes
Call by Reference: Yes

DISTRIBUTED_COLLATERAL_VALUE - Distributed collateral value

Data type: BAPICMS_STR_CAG_DIST_CV_GET
Optional: Yes
Call by Reference: Yes

RELATION_FROM_COLLATERAL_VALUE - Distribution of collateral value to relations

Data type: BAPICMS_STR_CAG_DIST_CV_REL
Optional: Yes
Call by Reference: Yes

RELATED_TO_COLLATERAL_VALUE - Distribution of collateral value to relations

Data type: BAPICMS_STR_CAG_DCV_REL_TO
Optional: Yes
Call by Reference: Yes

COVERAGE_GAP - Coverage gap for Receivables

Data type: BAPICMS_STR_COVERAGE_GAP
Optional: Yes
Call by Reference: Yes

FREE_COLLATERAL - Free collateral

Data type: BAPICMS_STR_CAG_FREE_COL_GET
Optional: Yes
Call by Reference: Yes

EXTENSIONOUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameter

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

ADMIN_DATA - Administrative data for collateral agreements

Data type: BAPICMS_STR_CAG_ADMIN_GET
Optional: Yes
Call by Reference: Yes

GUARANTEE_DATA - Guarantee data

Data type: BAPICMS_STR_CAG_GUAR_GET
Optional: Yes
Call by Reference: Yes

TRANSFER_DATA - Transfer specific details

Data type: BAPICMS_STR_CAG_TRANS_GET
Optional: Yes
Call by Reference: Yes

LAND_CHARGE_DATA - Land charges specific data

Data type: BAPICMS_STR_CAG_LCHG_GET
Optional: Yes
Call by Reference: Yes

ASSIGNMENT_PLEDGE_DATA - Assignment Pledge specific data

Data type: BAPICMS_STR_CAG_ASM_PLD_GET
Optional: Yes
Call by Reference: Yes

PORTIONS - Collateral agreement portions

Data type: BAPICMS_STR_CAG_POR_GET
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_CMS_CAG_GETDETAIL_MULTI 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_data_requested  TYPE BAPICMS_STR_CAG_REQD_DATA, "   
lt_collateral_agreement_key  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_SKY_GET, "   
lt_rules  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_RULES_GET, "   
lt_receivable_links  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_RBL_GET, "   
lt_charges  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_CHG_GET, "   
lt_business_partners  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_BP_GET, "   
lt_documents  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_DOC_GET, "   
lt_portion_business_partners  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_POR_BP_GET, "   
lt_relations_from  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_REL_FROM_GET, "   
lt_related_to  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_REL_TO_GET, "   
lt_user_status  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_USR_STAT_GET, "   
lt_system_status  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_SYS_STAT_GET, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_processextension  TYPE BAPI_CMS_STR_CENTRAL-PROCESSEXTENSION, "   
lt_special_arrangements  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_SA_GET, "   
lt_partner_termination_data  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_BP_TRM_GET, "   
lt_costs  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_EXP_GET, "   
lt_notes  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_NOTES_GET, "   
lt_assessment_value  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_ASMT_VAL_GET, "   
lt_prior_charges  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_PR_CHG_GET, "   
lt_guarantee_lending_value  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_LV_GUAR_GET, "   
lt_guarantee_lending_limit  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_LL_GUAR_GET, "   
lt_calculated_values  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_CALC_GET, "   
lt_prior_charge_loan_to_value  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_LVR_PR_GET, "   
lt_basic_data  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_BASIC_GET, "   
lt_distributed_collateral_value  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_DIST_CV_GET, "   
lt_relation_from_collateral_value  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_DIST_CV_REL, "   
lt_related_to_collateral_value  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_DCV_REL_TO, "   
lt_coverage_gap  TYPE STANDARD TABLE OF BAPICMS_STR_COVERAGE_GAP, "   
lt_free_collateral  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_FREE_COL_GET, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_admin_data  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_ADMIN_GET, "   
lt_guarantee_data  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_GUAR_GET, "   
lt_transfer_data  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_TRANS_GET, "   
lt_land_charge_data  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_LCHG_GET, "   
lt_assignment_pledge_data  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_ASM_PLD_GET, "   
lt_portions  TYPE STANDARD TABLE OF BAPICMS_STR_CAG_POR_GET. "   

  CALL FUNCTION 'BAPI_CMS_CAG_GETDETAIL_MULTI'  "Get details of Collateral agreement(Multi)
    EXPORTING
         DATA_REQUESTED = lv_data_requested
         PROCESSEXTENSION = lv_processextension
    TABLES
         COLLATERAL_AGREEMENT_KEY = lt_collateral_agreement_key
         RULES = lt_rules
         RECEIVABLE_LINKS = lt_receivable_links
         CHARGES = lt_charges
         BUSINESS_PARTNERS = lt_business_partners
         DOCUMENTS = lt_documents
         PORTION_BUSINESS_PARTNERS = lt_portion_business_partners
         RELATIONS_FROM = lt_relations_from
         RELATED_TO = lt_related_to
         USER_STATUS = lt_user_status
         SYSTEM_STATUS = lt_system_status
         EXTENSIONIN = lt_extensionin
         SPECIAL_ARRANGEMENTS = lt_special_arrangements
         PARTNER_TERMINATION_DATA = lt_partner_termination_data
         COSTS = lt_costs
         NOTES = lt_notes
         ASSESSMENT_VALUE = lt_assessment_value
         PRIOR_CHARGES = lt_prior_charges
         GUARANTEE_LENDING_VALUE = lt_guarantee_lending_value
         GUARANTEE_LENDING_LIMIT = lt_guarantee_lending_limit
         CALCULATED_VALUES = lt_calculated_values
         PRIOR_CHARGE_LOAN_TO_VALUE = lt_prior_charge_loan_to_value
         BASIC_DATA = lt_basic_data
         DISTRIBUTED_COLLATERAL_VALUE = lt_distributed_collateral_value
         RELATION_FROM_COLLATERAL_VALUE = lt_relation_from_collateral_value
         RELATED_TO_COLLATERAL_VALUE = lt_related_to_collateral_value
         COVERAGE_GAP = lt_coverage_gap
         FREE_COLLATERAL = lt_free_collateral
         EXTENSIONOUT = lt_extensionout
         RETURN = lt_return
         ADMIN_DATA = lt_admin_data
         GUARANTEE_DATA = lt_guarantee_data
         TRANSFER_DATA = lt_transfer_data
         LAND_CHARGE_DATA = lt_land_charge_data
         ASSIGNMENT_PLEDGE_DATA = lt_assignment_pledge_data
         PORTIONS = lt_portions
. " BAPI_CMS_CAG_GETDETAIL_MULTI




ABAP code using 7.40 inline data declarations to call FM BAPI_CMS_CAG_GETDETAIL_MULTI

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single PROCESSEXTENSION FROM BAPI_CMS_STR_CENTRAL INTO @DATA(ld_processextension).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!