SAP CMS_MAP_RIG_CREATE Function Module for Create a Claim, Insurance, Patent or Other Rights
CMS_MAP_RIG_CREATE is a standard cms map rig create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create a Claim, Insurance, Patent or Other Rights 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 map rig create FM, simply by entering the name CMS_MAP_RIG_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMS_MAP_RIG
Program Name: SAPLCMS_MAP_RIG
Main Program: SAPLCMS_MAP_RIG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CMS_MAP_RIG_CREATE 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_MAP_RIG_CREATE'"Create a Claim, Insurance, Patent or Other Rights.
EXPORTING
I_RIG_CATEGORY = "Object Category
* I_STR_PATENTS_DATA = "Right Specific data
* I_STR_CLAIM_DATA = "Claim data
* I_TAB_RIG_BP = "Rights - Business partner data
* I_TAB_RIG_DOC = "Rights - Document data
* I_TAB_RIG_VAL = "Value data
* I_TAB_RIG_INS = "Insurance data
* I_TAB_RIG_INS_BP = "Insurance - Business partner data
* I_TAB_RIG_INS_DOC = "Insurance - document data
I_TAB_RIG_NOTES = "Notes data of an objects
I_RIG_TYP = "Right Type
* I_FLG_TESTRUN = "Indiacates that it is a test-run
* I_TAB_SYSTEM_STATUS = "System statuses
* I_TAB_USER_STATUS = "User Status
* I_STR_ORG_UNIT_DATA = "Organization units data
* I_STR_ADDR_DATA = "Address data
* I_STR_AST_DATA = "Rights -asset data
* I_STR_COMMON_DATA = "Rights Common data
IMPORTING
E_STR_RIG_PKY_SKY = "Rights PKy SKy mapping
E_TAB_RETURN = "Return parameter table
IMPORTING Parameters details for CMS_MAP_RIG_CREATE
I_RIG_CATEGORY - Object Category
Data type: CMS_DTE_OMS_OBJ_CATOptional: No
Call by Reference: No ( called with pass by value option)
I_STR_PATENTS_DATA - Right Specific data
Data type: CMS_STR_RIG_PAT_DATA_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_CLAIM_DATA - Claim data
Data type: CMS_STR_RIG_CLM_DATA_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_RIG_BP - Rights - Business partner data
Data type: CMS_TAB_OMS_BP_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_RIG_DOC - Rights - Document data
Data type: CMS_TAB_OMS_DOC_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_RIG_VAL - Value data
Data type: CMS_TAB_OMS_VAL_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_RIG_INS - Insurance data
Data type: CMS_TAB_OMS_INS_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_RIG_INS_BP - Insurance - Business partner data
Data type: CMS_TAB_OMS_INS_BP_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_RIG_INS_DOC - Insurance - document data
Data type: CMS_TAB_OMS_INS_DOC_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_RIG_NOTES - Notes data of an objects
Data type: CMS_TAB_RIG_NOTES_CRT_MAPOptional: No
Call by Reference: Yes
I_RIG_TYP - Right Type
Data type: CMS_DTE_RIG_TYPOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_TESTRUN - Indiacates that it is a test-run
Data type: CMS_DTE_FLG_TESTRUN_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_SYSTEM_STATUS - System statuses
Data type: CMS_TAB_RIG_SYS_STAT_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_USER_STATUS - User Status
Data type: CMS_TAB_USR_STAT_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_ORG_UNIT_DATA - Organization units data
Data type: CMS_STR_OMS_ORG_UNIT_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_ADDR_DATA - Address data
Data type: CMS_STR_OMS_ADDR_DATA_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_AST_DATA - Rights -asset data
Data type: CMS_STR_RIG_AST_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_COMMON_DATA - Rights Common data
Data type: CMS_STR_RIG_COMMON_DATA_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CMS_MAP_RIG_CREATE
E_STR_RIG_PKY_SKY - Rights PKy SKy mapping
Data type: CMS_STR_RIG_PKY_SKY_MAPOptional: No
Call by Reference: No ( called with pass by value option)
E_TAB_RETURN - Return parameter table
Data type: BAPIRET2_TOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CMS_MAP_RIG_CREATE 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_rig_category | TYPE CMS_DTE_OMS_OBJ_CAT, " | |||
| lv_e_str_rig_pky_sky | TYPE CMS_STR_RIG_PKY_SKY_MAP, " | |||
| lv_i_str_patents_data | TYPE CMS_STR_RIG_PAT_DATA_MAP, " | |||
| lv_i_str_claim_data | TYPE CMS_STR_RIG_CLM_DATA_MAP, " | |||
| lv_i_tab_rig_bp | TYPE CMS_TAB_OMS_BP_MAP_CRT, " | |||
| lv_i_tab_rig_doc | TYPE CMS_TAB_OMS_DOC_MAP_CRT, " | |||
| lv_i_tab_rig_val | TYPE CMS_TAB_OMS_VAL_MAP_CRT, " | |||
| lv_i_tab_rig_ins | TYPE CMS_TAB_OMS_INS_MAP_CRT, " | |||
| lv_i_tab_rig_ins_bp | TYPE CMS_TAB_OMS_INS_BP_MAP_CRT, " | |||
| lv_i_tab_rig_ins_doc | TYPE CMS_TAB_OMS_INS_DOC_MAP_CRT, " | |||
| lv_i_tab_rig_notes | TYPE CMS_TAB_RIG_NOTES_CRT_MAP, " | |||
| lv_i_rig_typ | TYPE CMS_DTE_RIG_TYP, " | |||
| lv_e_tab_return | TYPE BAPIRET2_T, " | |||
| lv_i_flg_testrun | TYPE CMS_DTE_FLG_TESTRUN_MAP, " | |||
| lv_i_tab_system_status | TYPE CMS_TAB_RIG_SYS_STAT_MAP_CRT, " | |||
| lv_i_tab_user_status | TYPE CMS_TAB_USR_STAT_MAP_CRT, " | |||
| lv_i_str_org_unit_data | TYPE CMS_STR_OMS_ORG_UNIT_MAP, " | |||
| lv_i_str_addr_data | TYPE CMS_STR_OMS_ADDR_DATA_MAP, " | |||
| lv_i_str_ast_data | TYPE CMS_STR_RIG_AST_MAP_CRT, " | |||
| lv_i_str_common_data | TYPE CMS_STR_RIG_COMMON_DATA_MAP. " |
|   CALL FUNCTION 'CMS_MAP_RIG_CREATE' "Create a Claim, Insurance, Patent or Other Rights |
| EXPORTING | ||
| I_RIG_CATEGORY | = lv_i_rig_category | |
| I_STR_PATENTS_DATA | = lv_i_str_patents_data | |
| I_STR_CLAIM_DATA | = lv_i_str_claim_data | |
| I_TAB_RIG_BP | = lv_i_tab_rig_bp | |
| I_TAB_RIG_DOC | = lv_i_tab_rig_doc | |
| I_TAB_RIG_VAL | = lv_i_tab_rig_val | |
| I_TAB_RIG_INS | = lv_i_tab_rig_ins | |
| I_TAB_RIG_INS_BP | = lv_i_tab_rig_ins_bp | |
| I_TAB_RIG_INS_DOC | = lv_i_tab_rig_ins_doc | |
| I_TAB_RIG_NOTES | = lv_i_tab_rig_notes | |
| I_RIG_TYP | = lv_i_rig_typ | |
| I_FLG_TESTRUN | = lv_i_flg_testrun | |
| I_TAB_SYSTEM_STATUS | = lv_i_tab_system_status | |
| I_TAB_USER_STATUS | = lv_i_tab_user_status | |
| I_STR_ORG_UNIT_DATA | = lv_i_str_org_unit_data | |
| I_STR_ADDR_DATA | = lv_i_str_addr_data | |
| I_STR_AST_DATA | = lv_i_str_ast_data | |
| I_STR_COMMON_DATA | = lv_i_str_common_data | |
| IMPORTING | ||
| E_STR_RIG_PKY_SKY | = lv_e_str_rig_pky_sky | |
| E_TAB_RETURN | = lv_e_tab_return | |
| . " CMS_MAP_RIG_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM CMS_MAP_RIG_CREATE
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.Search for further information about these or an SAP related objects