SAP CNV_MBT_MSG_INSERT_PARAMS Function Module for Insert new entries in table cnvmbtparams
CNV_MBT_MSG_INSERT_PARAMS is a standard cnv mbt msg insert params SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insert new entries in table cnvmbtparams 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 cnv mbt msg insert params FM, simply by entering the name CNV_MBT_MSG_INSERT_PARAMS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV_MBT_MSG
Program Name: SAPLCNV_MBT_MSG
Main Program: SAPLCNV_MBT_MSG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNV_MBT_MSG_INSERT_PARAMS 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 'CNV_MBT_MSG_INSERT_PARAMS'"Insert new entries in table cnvmbtparams.
EXPORTING
* PACKID = "Package Number to Specify CMIS and TDMS Packages
* PNAME = "Character field of length 40
* VALNUM = "Field for distinguishing entries
* SOPTION = "ABAP: Selection option (EQ/BT/CP/...)
* LOW = "ABAP/4: Selection value (LOW or HIGH value, external format)
* HIGH = "ABAP/4: Selection value (LOW or HIGH value, external format)
* AS_TABLE = "Processing mode: As table
* SINGLE_ENTRY = "Processing mode: single entry
TABLES
* IPT_PARAMS = "Table for storing general parameters
EXCEPTIONS
TABLE_IS_INITIAL = 1 NO_ACTIVE_PACK = 10 VALNUM_ALREADY_IN_USE = 11 VALNUM_NOT_CORRECT = 12 PACKID_INITIAL = 2 NO_MODE_SELECTED = 3 PNAME_INITIAL = 4 VALNUM_INITIAL = 5 LOW_INITIAL = 6 JUST_FIGURES_ALLOWED = 7 INSERT_NOT_POSSIBLE = 8 PACKID_NOT_CORRECT = 9
IMPORTING Parameters details for CNV_MBT_MSG_INSERT_PARAMS
PACKID - Package Number to Specify CMIS and TDMS Packages
Data type: CNV_MBT_PACKIDOptional: Yes
Call by Reference: Yes
PNAME - Character field of length 40
Data type: CHAR40Optional: Yes
Call by Reference: Yes
VALNUM - Field for distinguishing entries
Data type: CNV_MBT_DISTING_ENTRIESOptional: Yes
Call by Reference: No ( called with pass by value option)
SOPTION - ABAP: Selection option (EQ/BT/CP/...)
Data type: TVARV_OPTIOptional: Yes
Call by Reference: No ( called with pass by value option)
LOW - ABAP/4: Selection value (LOW or HIGH value, external format)
Data type: TVARV_VALOptional: Yes
Call by Reference: Yes
HIGH - ABAP/4: Selection value (LOW or HIGH value, external format)
Data type: TVARV_VALOptional: Yes
Call by Reference: Yes
AS_TABLE - Processing mode: As table
Data type: COptional: Yes
Call by Reference: Yes
SINGLE_ENTRY - Processing mode: single entry
Data type: COptional: Yes
Call by Reference: Yes
TABLES Parameters details for CNV_MBT_MSG_INSERT_PARAMS
IPT_PARAMS - Table for storing general parameters
Data type: CNVMBTPARAMSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
TABLE_IS_INITIAL - No entries in table cnvmbtparams
Data type:Optional: No
Call by Reference: Yes
NO_ACTIVE_PACK - Package not available or deactivated
Data type:Optional: No
Call by Reference: Yes
VALNUM_ALREADY_IN_USE - Valnum already assigned
Data type:Optional: No
Call by Reference: Yes
VALNUM_NOT_CORRECT - Valnum is depending of the mode not correct.
Data type:Optional: No
Call by Reference: Yes
PACKID_INITIAL - Import parameter packid is initial
Data type:Optional: No
Call by Reference: Yes
NO_MODE_SELECTED - No processing mode for this function module selected
Data type:Optional: No
Call by Reference: Yes
PNAME_INITIAL - Import parameter pname is initial
Data type:Optional: No
Call by Reference: Yes
VALNUM_INITIAL - Import parameter valnum is initial
Data type:Optional: No
Call by Reference: Yes
LOW_INITIAL - Import parameter low is initial
Data type:Optional: No
Call by Reference: Yes
JUST_FIGURES_ALLOWED - For import parameter just numbers allowed
Data type:Optional: No
Call by Reference: Yes
INSERT_NOT_POSSIBLE - Could not insert new entry into cnvmbtparams
Data type:Optional: No
Call by Reference: Yes
PACKID_NOT_CORRECT - Import parameter packid match not with table entry packid
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CNV_MBT_MSG_INSERT_PARAMS 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_packid | TYPE CNV_MBT_PACKID, " | |||
| lt_ipt_params | TYPE STANDARD TABLE OF CNVMBTPARAMS, " | |||
| lv_table_is_initial | TYPE CNVMBTPARAMS, " | |||
| lv_no_active_pack | TYPE CNVMBTPARAMS, " | |||
| lv_valnum_already_in_use | TYPE CNVMBTPARAMS, " | |||
| lv_valnum_not_correct | TYPE CNVMBTPARAMS, " | |||
| lv_pname | TYPE CHAR40, " | |||
| lv_packid_initial | TYPE CHAR40, " | |||
| lv_valnum | TYPE CNV_MBT_DISTING_ENTRIES, " | |||
| lv_no_mode_selected | TYPE CNV_MBT_DISTING_ENTRIES, " | |||
| lv_soption | TYPE TVARV_OPTI, " | |||
| lv_pname_initial | TYPE TVARV_OPTI, " | |||
| lv_low | TYPE TVARV_VAL, " | |||
| lv_valnum_initial | TYPE TVARV_VAL, " | |||
| lv_high | TYPE TVARV_VAL, " | |||
| lv_low_initial | TYPE TVARV_VAL, " | |||
| lv_as_table | TYPE C, " | |||
| lv_just_figures_allowed | TYPE C, " | |||
| lv_single_entry | TYPE C, " | |||
| lv_insert_not_possible | TYPE C, " | |||
| lv_packid_not_correct | TYPE C. " |
|   CALL FUNCTION 'CNV_MBT_MSG_INSERT_PARAMS' "Insert new entries in table cnvmbtparams |
| EXPORTING | ||
| PACKID | = lv_packid | |
| PNAME | = lv_pname | |
| VALNUM | = lv_valnum | |
| SOPTION | = lv_soption | |
| LOW | = lv_low | |
| HIGH | = lv_high | |
| AS_TABLE | = lv_as_table | |
| SINGLE_ENTRY | = lv_single_entry | |
| TABLES | ||
| IPT_PARAMS | = lt_ipt_params | |
| EXCEPTIONS | ||
| TABLE_IS_INITIAL = 1 | ||
| NO_ACTIVE_PACK = 10 | ||
| VALNUM_ALREADY_IN_USE = 11 | ||
| VALNUM_NOT_CORRECT = 12 | ||
| PACKID_INITIAL = 2 | ||
| NO_MODE_SELECTED = 3 | ||
| PNAME_INITIAL = 4 | ||
| VALNUM_INITIAL = 5 | ||
| LOW_INITIAL = 6 | ||
| JUST_FIGURES_ALLOWED = 7 | ||
| INSERT_NOT_POSSIBLE = 8 | ||
| PACKID_NOT_CORRECT = 9 | ||
| . " CNV_MBT_MSG_INSERT_PARAMS | ||
ABAP code using 7.40 inline data declarations to call FM CNV_MBT_MSG_INSERT_PARAMS
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