SAP CNV_MBT_SEL_STRING_GET Function Module for MBT PCL: Get selection string for a given conversion object
CNV_MBT_SEL_STRING_GET is a standard cnv mbt sel string get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for MBT PCL: Get selection string for a given conversion object 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 sel string get FM, simply by entering the name CNV_MBT_SEL_STRING_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV_MBT_SEL
Program Name: SAPLCNV_MBT_SEL
Main Program: SAPLCNV_MBT_SEL
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function CNV_MBT_SEL_STRING_GET 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_SEL_STRING_GET'"MBT PCL: Get selection string for a given conversion object.
EXPORTING
* SUBPROJECT = "
* PACKID = "
CONVOBJ = "
* GROUP_ID = "Selection Group ID
* USE_TEST_VALUES = ' ' "Testvalues in use - no real evaluation
* INIT_CONVOBJ = ' ' "clear information from last all for convobj
* OPTIMIZE_MEM = 'X ' "optimize string w.r.t. memory consuption
TABLES
T_SELSTRING = "
EXCEPTIONS
INVALID_CALL = 1 CONVOBJ_DOES_NOT_EXIST = 2 NO_SELECT_STRING_FOR_COBJ = 3 SELECT_STRING_GENERATION_ERROR = 4 SEL_GRP_AS_MEMBER = 5 COMPLEX_GROUP_DEFINITION_ERROR = 6
IMPORTING Parameters details for CNV_MBT_SEL_STRING_GET
SUBPROJECT -
Data type: CNVMBTPACK-SUBPROJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
PACKID -
Data type: CNVMBTACTIVE-PACKIDOptional: Yes
Call by Reference: No ( called with pass by value option)
CONVOBJ -
Data type: CNVMBTCOBJ-CONVOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
GROUP_ID - Selection Group ID
Data type: CNVMBTSELGRP-GROUP_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
USE_TEST_VALUES - Testvalues in use - no real evaluation
Data type: CNVMBTRETSTR-AND_RETURNDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
INIT_CONVOBJ - clear information from last all for convobj
Data type: CNVMBTRETSTR-AND_RETURNDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTIMIZE_MEM - optimize string w.r.t. memory consuption
Data type: CNVMBTRETSTR-AND_RETURNDefault: 'X '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CNV_MBT_SEL_STRING_GET
T_SELSTRING -
Data type: ABAPSOURCEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_CALL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONVOBJ_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SELECT_STRING_FOR_COBJ -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SELECT_STRING_GENERATION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SEL_GRP_AS_MEMBER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COMPLEX_GROUP_DEFINITION_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CNV_MBT_SEL_STRING_GET 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_subproject | TYPE CNVMBTPACK-SUBPROJECT, " | |||
lt_t_selstring | TYPE STANDARD TABLE OF ABAPSOURCE, " | |||
lv_invalid_call | TYPE ABAPSOURCE, " | |||
lv_packid | TYPE CNVMBTACTIVE-PACKID, " | |||
lv_convobj_does_not_exist | TYPE CNVMBTACTIVE, " | |||
lv_convobj | TYPE CNVMBTCOBJ-CONVOBJECT, " | |||
lv_no_select_string_for_cobj | TYPE CNVMBTCOBJ, " | |||
lv_group_id | TYPE CNVMBTSELGRP-GROUP_ID, " | |||
lv_select_string_generation_error | TYPE CNVMBTSELGRP, " | |||
lv_use_test_values | TYPE CNVMBTRETSTR-AND_RETURN, " ' ' | |||
lv_sel_grp_as_member | TYPE CNVMBTRETSTR, " | |||
lv_init_convobj | TYPE CNVMBTRETSTR-AND_RETURN, " ' ' | |||
lv_complex_group_definition_error | TYPE CNVMBTRETSTR, " | |||
lv_optimize_mem | TYPE CNVMBTRETSTR-AND_RETURN. " 'X ' |
  CALL FUNCTION 'CNV_MBT_SEL_STRING_GET' "MBT PCL: Get selection string for a given conversion object |
EXPORTING | ||
SUBPROJECT | = lv_subproject | |
PACKID | = lv_packid | |
CONVOBJ | = lv_convobj | |
GROUP_ID | = lv_group_id | |
USE_TEST_VALUES | = lv_use_test_values | |
INIT_CONVOBJ | = lv_init_convobj | |
OPTIMIZE_MEM | = lv_optimize_mem | |
TABLES | ||
T_SELSTRING | = lt_t_selstring | |
EXCEPTIONS | ||
INVALID_CALL = 1 | ||
CONVOBJ_DOES_NOT_EXIST = 2 | ||
NO_SELECT_STRING_FOR_COBJ = 3 | ||
SELECT_STRING_GENERATION_ERROR = 4 | ||
SEL_GRP_AS_MEMBER = 5 | ||
COMPLEX_GROUP_DEFINITION_ERROR = 6 | ||
. " CNV_MBT_SEL_STRING_GET |
ABAP code using 7.40 inline data declarations to call FM CNV_MBT_SEL_STRING_GET
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."SELECT single SUBPROJECT FROM CNVMBTPACK INTO @DATA(ld_subproject). | ||||
"SELECT single PACKID FROM CNVMBTACTIVE INTO @DATA(ld_packid). | ||||
"SELECT single CONVOBJECT FROM CNVMBTCOBJ INTO @DATA(ld_convobj). | ||||
"SELECT single GROUP_ID FROM CNVMBTSELGRP INTO @DATA(ld_group_id). | ||||
"SELECT single AND_RETURN FROM CNVMBTRETSTR INTO @DATA(ld_use_test_values). | ||||
DATA(ld_use_test_values) | = ' '. | |||
"SELECT single AND_RETURN FROM CNVMBTRETSTR INTO @DATA(ld_init_convobj). | ||||
DATA(ld_init_convobj) | = ' '. | |||
"SELECT single AND_RETURN FROM CNVMBTRETSTR INTO @DATA(ld_optimize_mem). | ||||
DATA(ld_optimize_mem) | = 'X '. | |||
Search for further information about these or an SAP related objects