SAP CNVL_GET_LISTVARIANT Function Module for NOTRANSL: Variable Übersichten: Popup zur Eingabe einer Listvariante
CNVL_GET_LISTVARIANT is a standard cnvl get listvariant SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Variable Übersichten: Popup zur Eingabe einer Listvariante 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 cnvl get listvariant FM, simply by entering the name CNVL_GET_LISTVARIANT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNVL
Program Name: SAPLCNVL
Main Program: SAPLCNVL
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNVL_GET_LISTVARIANT 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 'CNVL_GET_LISTVARIANT'"NOTRANSL: Variable Übersichten: Popup zur Eingabe einer Listvariante.
EXPORTING
I_APPLIC = "Application
* I_KEYWORD = ' ' "
I_SUBAPP = "Subapplication
* I_LSTVAR = ' ' "List Variant
* I_DISPLAY = ' ' "
* I_OBLIGATORY = 'X' "
* I_SELECT_DEFAULT = 'X' "
* I_ONLY_IF_INITIAL = "
* I_CALL = "
* I_TITLE = ' ' "
IMPORTING
E_CALL = "
E_LSTVAR = "List Variant
EXCEPTIONS
CANCEL = 1
IMPORTING Parameters details for CNVL_GET_LISTVARIANT
I_APPLIC - Application
Data type: TCNVL-APPLICOptional: No
Call by Reference: No ( called with pass by value option)
I_KEYWORD -
Data type: DFIES-SCRTEXT_MDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SUBAPP - Subapplication
Data type: TCNVL-SUBAPPOptional: No
Call by Reference: No ( called with pass by value option)
I_LSTVAR - List Variant
Data type: TCNVL-LSTVARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DISPLAY -
Data type: RC27X-FLG_SELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBLIGATORY -
Data type: RC27X-FLG_SELDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SELECT_DEFAULT -
Data type: RC27X-FLG_SELDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ONLY_IF_INITIAL -
Data type: RC27X-FLG_SELOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CALL -
Data type: RC27X-FLG_SELOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TITLE -
Data type: CLIKEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CNVL_GET_LISTVARIANT
E_CALL -
Data type: RC27X-FLG_SELOptional: No
Call by Reference: No ( called with pass by value option)
E_LSTVAR - List Variant
Data type: TCNVL-LSTVAROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCEL - Cancel
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CNVL_GET_LISTVARIANT 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_cancel | TYPE STRING, " | |||
| lv_e_call | TYPE RC27X-FLG_SEL, " | |||
| lv_i_applic | TYPE TCNVL-APPLIC, " | |||
| lv_i_keyword | TYPE DFIES-SCRTEXT_M, " SPACE | |||
| lv_e_lstvar | TYPE TCNVL-LSTVAR, " | |||
| lv_i_subapp | TYPE TCNVL-SUBAPP, " | |||
| lv_i_lstvar | TYPE TCNVL-LSTVAR, " SPACE | |||
| lv_i_display | TYPE RC27X-FLG_SEL, " SPACE | |||
| lv_i_obligatory | TYPE RC27X-FLG_SEL, " 'X' | |||
| lv_i_select_default | TYPE RC27X-FLG_SEL, " 'X' | |||
| lv_i_only_if_initial | TYPE RC27X-FLG_SEL, " | |||
| lv_i_call | TYPE RC27X-FLG_SEL, " | |||
| lv_i_title | TYPE CLIKE. " SPACE |
|   CALL FUNCTION 'CNVL_GET_LISTVARIANT' "NOTRANSL: Variable Übersichten: Popup zur Eingabe einer Listvariante |
| EXPORTING | ||
| I_APPLIC | = lv_i_applic | |
| I_KEYWORD | = lv_i_keyword | |
| I_SUBAPP | = lv_i_subapp | |
| I_LSTVAR | = lv_i_lstvar | |
| I_DISPLAY | = lv_i_display | |
| I_OBLIGATORY | = lv_i_obligatory | |
| I_SELECT_DEFAULT | = lv_i_select_default | |
| I_ONLY_IF_INITIAL | = lv_i_only_if_initial | |
| I_CALL | = lv_i_call | |
| I_TITLE | = lv_i_title | |
| IMPORTING | ||
| E_CALL | = lv_e_call | |
| E_LSTVAR | = lv_e_lstvar | |
| EXCEPTIONS | ||
| CANCEL = 1 | ||
| . " CNVL_GET_LISTVARIANT | ||
ABAP code using 7.40 inline data declarations to call FM CNVL_GET_LISTVARIANT
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 FLG_SEL FROM RC27X INTO @DATA(ld_e_call). | ||||
| "SELECT single APPLIC FROM TCNVL INTO @DATA(ld_i_applic). | ||||
| "SELECT single SCRTEXT_M FROM DFIES INTO @DATA(ld_i_keyword). | ||||
| DATA(ld_i_keyword) | = ' '. | |||
| "SELECT single LSTVAR FROM TCNVL INTO @DATA(ld_e_lstvar). | ||||
| "SELECT single SUBAPP FROM TCNVL INTO @DATA(ld_i_subapp). | ||||
| "SELECT single LSTVAR FROM TCNVL INTO @DATA(ld_i_lstvar). | ||||
| DATA(ld_i_lstvar) | = ' '. | |||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_display). | ||||
| DATA(ld_i_display) | = ' '. | |||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_obligatory). | ||||
| DATA(ld_i_obligatory) | = 'X'. | |||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_select_default). | ||||
| DATA(ld_i_select_default) | = 'X'. | |||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_only_if_initial). | ||||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_call). | ||||
| DATA(ld_i_title) | = ' '. | |||
Search for further information about these or an SAP related objects