CNV_MBT_MSG_ADD_MESSAGE 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 CNV_MBT_MSG_ADD_MESSAGE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CNV_MBT_MSG
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'CNV_MBT_MSG_ADD_MESSAGE' "Create a new system message
EXPORTING
* ip_central = " cnvmbtdest-exec_target Specifies The Target System the Activity is Executed in
* ip_control = " cnvmbtdest-exec_target Specifies The Target System the Activity is Executed in
* ip_receiver = " cnvmbtdest-exec_target Specifies The Target System the Activity is Executed in
* ip_sender = " cnvmbtdest-exec_target Specifies The Target System the Activity is Executed in
* ip_upgrade = " cnvmbtdest-exec_target Specifies The Target System the Activity is Executed in
ip_pack = " cnvmbtpack-packid Package Number to Specify CMIS and TDMS Packages
* ip_textline1 = " temsg-emtext Express message text
* ip_textline2 = " temsg-emtext Express message text
* ip_textline3 = " temsg-emtext Express message text
* ip_client = " cnv_mbt_flag Client specific system message call
* ip_server = " cnv_mbt_flag Server specific system message call
* ip_expiration_date = " temsg-datdel Expiration date of system message
* ip_expiration_time = " temsg-timdel Expiration time of system message
* ip_delete_date = " temsg-datrem Deletion date of a system message
* ip_delete_time = " temsg-timrem Deletion time of a system message
IMPORTING
ex_message_id = " temsg-id Express Message ID
ex_message_id_saved = " cnv_mbt_flag Indicates if the message id is saved or not
EXCEPTIONS
EMPTY_MESSAGE = 1 " No message text available
SERVER_NOT_AVAILABLE = 2 "
CLIENT_NOT_AVAILABLE = 3 "
NOT_AUTHORIZED = 4 " User not authorized to create a system message
NO_SYSTEM_SELECTED = 5 " No system was selected
NO_PACKID = 6 " Package number is initial
NO_DEST_FOR_PACKID = 7 " There are no destinations for the package number
NO_DESTINATION = 8 " No destination found
OTHER_ERROR = 9 "
. " CNV_MBT_MSG_ADD_MESSAGE
The ABAP code below is a full code listing to execute function module CNV_MBT_MSG_ADD_MESSAGE 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_ex_message_id | TYPE TEMSG-ID , |
| ld_ex_message_id_saved | TYPE CNV_MBT_FLAG . |
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_ex_message_id | TYPE TEMSG-ID , |
| ld_ip_central | TYPE CNVMBTDEST-EXEC_TARGET , |
| ld_ex_message_id_saved | TYPE CNV_MBT_FLAG , |
| ld_ip_control | TYPE CNVMBTDEST-EXEC_TARGET , |
| ld_ip_receiver | TYPE CNVMBTDEST-EXEC_TARGET , |
| ld_ip_sender | TYPE CNVMBTDEST-EXEC_TARGET , |
| ld_ip_upgrade | TYPE CNVMBTDEST-EXEC_TARGET , |
| ld_ip_pack | TYPE CNVMBTPACK-PACKID , |
| ld_ip_textline1 | TYPE TEMSG-EMTEXT , |
| ld_ip_textline2 | TYPE TEMSG-EMTEXT , |
| ld_ip_textline3 | TYPE TEMSG-EMTEXT , |
| ld_ip_client | TYPE CNV_MBT_FLAG , |
| ld_ip_server | TYPE CNV_MBT_FLAG , |
| ld_ip_expiration_date | TYPE TEMSG-DATDEL , |
| ld_ip_expiration_time | TYPE TEMSG-TIMDEL , |
| ld_ip_delete_date | TYPE TEMSG-DATREM , |
| ld_ip_delete_time | TYPE TEMSG-TIMREM . |
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 CNV_MBT_MSG_ADD_MESSAGE or its description.
CNV_MBT_MSG_ADD_MESSAGE - Create a new system message CNV_MBT_MODIFY_LOCKUSER_TABLE - Modifies the table cnvmbtusr CNV_MBT_ME_SIM_EXE_TEMPL_MAPP - Executes the Merge Simulation remotely CNV_MBT_ME_CWBI_PACK_MAPPING - Maintenance/Assignment of mapping templates to package CNV_MBT_MESSAGE_SHOW - function for writing protocol message CNV_MBT_L_SUBSTATE_WRITE - MBT PCL WRITE complete SUBSTATE entries (local and central)