SAP CNV_MBT_SEL_STRING_RETURN Function Module for MBT PCL: Syntax check on select string









CNV_MBT_SEL_STRING_RETURN is a standard cnv mbt sel string return 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: Syntax check on select string 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 return FM, simply by entering the name CNV_MBT_SEL_STRING_RETURN 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_RETURN 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_RETURN'"MBT PCL: Syntax check on select string
EXPORTING
TABNAME = "

IMPORTING
EX_MSGV1 = "
EX_MSGV2 = "
EX_MSGV3 = "
EX_MSGV4 = "
EX_ERROR_SUBRC = "

TABLES
IMT_SELSTRING = "
XT_SEL_STRING = "Selection String
* IT_VARIABLES = "Variables List

EXCEPTIONS
SYNTAX_ERROR = 1
.



IMPORTING Parameters details for CNV_MBT_SEL_STRING_RETURN

TABNAME -

Data type: DD02L-TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CNV_MBT_SEL_STRING_RETURN

EX_MSGV1 -

Data type: BALMI-MSGV1
Optional: No
Call by Reference: No ( called with pass by value option)

EX_MSGV2 -

Data type: BALMI-MSGV1
Optional: No
Call by Reference: No ( called with pass by value option)

EX_MSGV3 -

Data type: BALMI-MSGV1
Optional: No
Call by Reference: No ( called with pass by value option)

EX_MSGV4 -

Data type: BALMI-MSGV1
Optional: No
Call by Reference: No ( called with pass by value option)

EX_ERROR_SUBRC -

Data type: SY-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CNV_MBT_SEL_STRING_RETURN

IMT_SELSTRING -

Data type: ABAPSOURCE
Optional: No
Call by Reference: No ( called with pass by value option)

XT_SEL_STRING - Selection String

Data type: ABAPSOURCE
Optional: No
Call by Reference: Yes

IT_VARIABLES - Variables List

Data type: CNVMBT_05_VARIABLE
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

SYNTAX_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CNV_MBT_SEL_STRING_RETURN 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_tabname  TYPE DD02L-TABNAME, "   
lv_ex_msgv1  TYPE BALMI-MSGV1, "   
lv_syntax_error  TYPE BALMI, "   
lt_imt_selstring  TYPE STANDARD TABLE OF ABAPSOURCE, "   
lv_ex_msgv2  TYPE BALMI-MSGV1, "   
lt_xt_sel_string  TYPE STANDARD TABLE OF ABAPSOURCE, "   
lv_ex_msgv3  TYPE BALMI-MSGV1, "   
lt_it_variables  TYPE STANDARD TABLE OF CNVMBT_05_VARIABLE, "   
lv_ex_msgv4  TYPE BALMI-MSGV1, "   
lv_ex_error_subrc  TYPE SY-SUBRC. "   

  CALL FUNCTION 'CNV_MBT_SEL_STRING_RETURN'  "MBT PCL: Syntax check on select string
    EXPORTING
         TABNAME = lv_tabname
    IMPORTING
         EX_MSGV1 = lv_ex_msgv1
         EX_MSGV2 = lv_ex_msgv2
         EX_MSGV3 = lv_ex_msgv3
         EX_MSGV4 = lv_ex_msgv4
         EX_ERROR_SUBRC = lv_ex_error_subrc
    TABLES
         IMT_SELSTRING = lt_imt_selstring
         XT_SEL_STRING = lt_xt_sel_string
         IT_VARIABLES = lt_it_variables
    EXCEPTIONS
        SYNTAX_ERROR = 1
. " CNV_MBT_SEL_STRING_RETURN




ABAP code using 7.40 inline data declarations to call FM CNV_MBT_SEL_STRING_RETURN

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 TABNAME FROM DD02L INTO @DATA(ld_tabname).
 
"SELECT single MSGV1 FROM BALMI INTO @DATA(ld_ex_msgv1).
 
 
 
"SELECT single MSGV1 FROM BALMI INTO @DATA(ld_ex_msgv2).
 
 
"SELECT single MSGV1 FROM BALMI INTO @DATA(ld_ex_msgv3).
 
 
"SELECT single MSGV1 FROM BALMI INTO @DATA(ld_ex_msgv4).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_ex_error_subrc).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!