SAP CMS_MAP_MOV_CREATE Function Module for Create a Movable
CMS_MAP_MOV_CREATE is a standard cms map mov 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 Movable 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 mov create FM, simply by entering the name CMS_MAP_MOV_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMS_MAP_MOV
Program Name: SAPLCMS_MAP_MOV
Main Program: SAPLCMS_MAP_MOV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CMS_MAP_MOV_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_MOV_CREATE'"Create a Movable.
EXPORTING
I_MOV_CATEGORY = "Object Category
* I_STR_AIRCRAFT_DATA = "Aircraft data
* I_STR_VEHICLE_DATA = "Vehicle data
* I_TAB_OBJ_PART = "Movables - part data
* I_TAB_MOV_BP = "Movables - business partner data
* I_TAB_MOV_DOC = "Movables - Document data
* I_TAB_MOV_VAL = "Value data
* I_TAB_MOV_INS = "Insurance data
* I_TAB_MOV_INS_BP = "Insurance data
* I_TAB_MOV_INS_DOC = "Insurance - document data
* I_TAB_MOV_NOTES = "Notes data of an objects
I_MOV_TYP = "Movable types
* I_TAB_USER_STATUS = "User Status
* I_FLG_TESTRUN = "Indiacates that it is a test-run
* I_TAB_SYSTEM_STATUS = "System status for Movables
* I_STR_MOV_ORG_UNIT_DATA = "Organization units data
* I_STR_ADDR_DATA = "Address data
* I_STR_MOV_AST_DATA = "Movables - Asset data
* I_STR_COMMON_DATA = "Common data
* I_STR_DEVICE_DATA = "Device data
IMPORTING
E_STR_MOV_PKY_SKY = "Movables PKy SKy Mapping
E_TAB_RETURN = "Return parameter table
IMPORTING Parameters details for CMS_MAP_MOV_CREATE
I_MOV_CATEGORY - Object Category
Data type: CMS_DTE_OMS_OBJ_CATOptional: No
Call by Reference: No ( called with pass by value option)
I_STR_AIRCRAFT_DATA - Aircraft data
Data type: CMS_STR_AIRCRAFT_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_VEHICLE_DATA - Vehicle data
Data type: CMS_STR_VEHICLE_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_OBJ_PART - Movables - part data
Data type: CMS_TAB_MOV_PART_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_MOV_BP - Movables - business partner data
Data type: CMS_TAB_MOV_BP_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_MOV_DOC - Movables - Document data
Data type: CMS_TAB_MOV_DOC_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_MOV_VAL - Value data
Data type: CMS_TAB_MOV_VAL_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_MOV_INS - Insurance data
Data type: CMS_TAB_MOV_INS_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_MOV_INS_BP - Insurance data
Data type: CMS_TAB_MOV_INS_BP_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_MOV_INS_DOC - Insurance - document data
Data type: CMS_TAB_MOV_INS_DOC_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_MOV_NOTES - Notes data of an objects
Data type: CMS_TAB_MOV_NOTES_CRT_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MOV_TYP - Movable types
Data type: CMS_DTE_MOV_TYPOptional: No
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_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 status for Movables
Data type: CMS_TAB_MOV_SYS_STAT_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_MOV_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_MOV_AST_DATA - Movables - Asset data
Data type: CMS_STR_MOV_AST_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_COMMON_DATA - Common data
Data type: CMS_STR_MOV_COMMON_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_DEVICE_DATA - Device data
Data type: CMS_STR_DEVICE_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CMS_MAP_MOV_CREATE
E_STR_MOV_PKY_SKY - Movables PKy SKy Mapping
Data type: CMS_STR_MOV_PKY_SKY_MAPOptional: No
Call by Reference: Yes
E_TAB_RETURN - Return parameter table
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CMS_MAP_MOV_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_mov_category | TYPE CMS_DTE_OMS_OBJ_CAT, " | |||
| lv_e_str_mov_pky_sky | TYPE CMS_STR_MOV_PKY_SKY_MAP, " | |||
| lv_i_str_aircraft_data | TYPE CMS_STR_AIRCRAFT_MAP_CRT, " | |||
| lv_i_str_vehicle_data | TYPE CMS_STR_VEHICLE_MAP_CRT, " | |||
| lv_i_tab_obj_part | TYPE CMS_TAB_MOV_PART_MAP_CRT, " | |||
| lv_i_tab_mov_bp | TYPE CMS_TAB_MOV_BP_MAP_CRT, " | |||
| lv_i_tab_mov_doc | TYPE CMS_TAB_MOV_DOC_MAP_CRT, " | |||
| lv_i_tab_mov_val | TYPE CMS_TAB_MOV_VAL_MAP_CRT, " | |||
| lv_i_tab_mov_ins | TYPE CMS_TAB_MOV_INS_MAP_CRT, " | |||
| lv_i_tab_mov_ins_bp | TYPE CMS_TAB_MOV_INS_BP_MAP_CRT, " | |||
| lv_i_tab_mov_ins_doc | TYPE CMS_TAB_MOV_INS_DOC_MAP_CRT, " | |||
| lv_i_tab_mov_notes | TYPE CMS_TAB_MOV_NOTES_CRT_MAP, " | |||
| lv_i_mov_typ | TYPE CMS_DTE_MOV_TYP, " | |||
| lv_e_tab_return | TYPE BAPIRET2_T, " | |||
| lv_i_tab_user_status | TYPE CMS_TAB_USR_STAT_MAP_CRT, " | |||
| lv_i_flg_testrun | TYPE CMS_DTE_FLG_TESTRUN_MAP, " | |||
| lv_i_tab_system_status | TYPE CMS_TAB_MOV_SYS_STAT_MAP_CRT, " | |||
| lv_i_str_mov_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_mov_ast_data | TYPE CMS_STR_MOV_AST_MAP_CRT, " | |||
| lv_i_str_common_data | TYPE CMS_STR_MOV_COMMON_MAP, " | |||
| lv_i_str_device_data | TYPE CMS_STR_DEVICE_MAP_CRT. " |
|   CALL FUNCTION 'CMS_MAP_MOV_CREATE' "Create a Movable |
| EXPORTING | ||
| I_MOV_CATEGORY | = lv_i_mov_category | |
| I_STR_AIRCRAFT_DATA | = lv_i_str_aircraft_data | |
| I_STR_VEHICLE_DATA | = lv_i_str_vehicle_data | |
| I_TAB_OBJ_PART | = lv_i_tab_obj_part | |
| I_TAB_MOV_BP | = lv_i_tab_mov_bp | |
| I_TAB_MOV_DOC | = lv_i_tab_mov_doc | |
| I_TAB_MOV_VAL | = lv_i_tab_mov_val | |
| I_TAB_MOV_INS | = lv_i_tab_mov_ins | |
| I_TAB_MOV_INS_BP | = lv_i_tab_mov_ins_bp | |
| I_TAB_MOV_INS_DOC | = lv_i_tab_mov_ins_doc | |
| I_TAB_MOV_NOTES | = lv_i_tab_mov_notes | |
| I_MOV_TYP | = lv_i_mov_typ | |
| I_TAB_USER_STATUS | = lv_i_tab_user_status | |
| I_FLG_TESTRUN | = lv_i_flg_testrun | |
| I_TAB_SYSTEM_STATUS | = lv_i_tab_system_status | |
| I_STR_MOV_ORG_UNIT_DATA | = lv_i_str_mov_org_unit_data | |
| I_STR_ADDR_DATA | = lv_i_str_addr_data | |
| I_STR_MOV_AST_DATA | = lv_i_str_mov_ast_data | |
| I_STR_COMMON_DATA | = lv_i_str_common_data | |
| I_STR_DEVICE_DATA | = lv_i_str_device_data | |
| IMPORTING | ||
| E_STR_MOV_PKY_SKY | = lv_e_str_mov_pky_sky | |
| E_TAB_RETURN | = lv_e_tab_return | |
| . " CMS_MAP_MOV_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM CMS_MAP_MOV_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