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

Function CMS_MAP_SHP_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_SHP_CREATE'"MAPI : Ships create.
EXPORTING
I_SHP_TYPE = "Ship Type
* I_TAB_SHP_INS = "Insurance data
* I_TAB_SHP_INS_BP = "Insurance data
* I_TAB_SHP_INS_DOC = "Insurance - document data
* I_TAB_SHP_NOTES = "Notes data of an objects
* I_STR_SHP_DETAILS = "MAPI : Ship details
* I_FLG_TESTRUN = "Indiacates that it is a test-run
* I_TAB_SYSTEM_STATUS = "System status for Movables
* I_STR_SHP_ORG_UNIT_DATA = "Organization units data
* I_STR_SHP_AST_DATA = "Movables - Asset data
* I_TAB_SHP_BP = "Movables - business partner data
* I_TAB_SHP_DOC = "Movables - Document data
* I_TAB_SHP_VAL = "Value data
IMPORTING
E_STR_SHP_PKY_SKY = "MAPI : Ship primary key & semantic key
E_TAB_RETURN = "Return parameter table
IMPORTING Parameters details for CMS_MAP_SHP_CREATE
I_SHP_TYPE - Ship Type
Data type: CMS_DTE_SHP_TYPOptional: No
Call by Reference: No ( called with pass by value option)
I_TAB_SHP_INS - Insurance data
Data type: CMS_TAB_MOV_INS_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_SHP_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_SHP_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_SHP_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_STR_SHP_DETAILS - MAPI : Ship details
Data type: CMS_STR_SHP_DETAILS_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_SHP_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_SHP_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_TAB_SHP_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_SHP_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_SHP_VAL - Value data
Data type: CMS_TAB_MOV_VAL_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CMS_MAP_SHP_CREATE
E_STR_SHP_PKY_SKY - MAPI : Ship primary key & semantic key
Data type: CMS_STR_SHP_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_SHP_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_shp_type | TYPE CMS_DTE_SHP_TYP, " | |||
| lv_e_str_shp_pky_sky | TYPE CMS_STR_SHP_PKY_SKY_MAP, " | |||
| lv_i_tab_shp_ins | TYPE CMS_TAB_MOV_INS_MAP_CRT, " | |||
| lv_i_tab_shp_ins_bp | TYPE CMS_TAB_MOV_INS_BP_MAP_CRT, " | |||
| lv_i_tab_shp_ins_doc | TYPE CMS_TAB_MOV_INS_DOC_MAP_CRT, " | |||
| lv_i_tab_shp_notes | TYPE CMS_TAB_MOV_NOTES_CRT_MAP, " | |||
| lv_e_tab_return | TYPE BAPIRET2_T, " | |||
| lv_i_str_shp_details | TYPE CMS_STR_SHP_DETAILS_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_shp_org_unit_data | TYPE CMS_STR_OMS_ORG_UNIT_MAP, " | |||
| lv_i_str_shp_ast_data | TYPE CMS_STR_MOV_AST_MAP_CRT, " | |||
| lv_i_tab_shp_bp | TYPE CMS_TAB_MOV_BP_MAP_CRT, " | |||
| lv_i_tab_shp_doc | TYPE CMS_TAB_MOV_DOC_MAP_CRT, " | |||
| lv_i_tab_shp_val | TYPE CMS_TAB_MOV_VAL_MAP_CRT. " |
|   CALL FUNCTION 'CMS_MAP_SHP_CREATE' "MAPI : Ships create |
| EXPORTING | ||
| I_SHP_TYPE | = lv_i_shp_type | |
| I_TAB_SHP_INS | = lv_i_tab_shp_ins | |
| I_TAB_SHP_INS_BP | = lv_i_tab_shp_ins_bp | |
| I_TAB_SHP_INS_DOC | = lv_i_tab_shp_ins_doc | |
| I_TAB_SHP_NOTES | = lv_i_tab_shp_notes | |
| I_STR_SHP_DETAILS | = lv_i_str_shp_details | |
| I_FLG_TESTRUN | = lv_i_flg_testrun | |
| I_TAB_SYSTEM_STATUS | = lv_i_tab_system_status | |
| I_STR_SHP_ORG_UNIT_DATA | = lv_i_str_shp_org_unit_data | |
| I_STR_SHP_AST_DATA | = lv_i_str_shp_ast_data | |
| I_TAB_SHP_BP | = lv_i_tab_shp_bp | |
| I_TAB_SHP_DOC | = lv_i_tab_shp_doc | |
| I_TAB_SHP_VAL | = lv_i_tab_shp_val | |
| IMPORTING | ||
| E_STR_SHP_PKY_SKY | = lv_e_str_shp_pky_sky | |
| E_TAB_RETURN | = lv_e_tab_return | |
| . " CMS_MAP_SHP_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM CMS_MAP_SHP_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