SAP CNVL_INIT_LISTVARIANT Function Module for NOTRANSL: Variable Übersichten: Listvariante initialisieren (Tabellen und









CNVL_INIT_LISTVARIANT is a standard cnvl init 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: Listvariante initialisieren (Tabellen und 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 init listvariant FM, simply by entering the name CNVL_INIT_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_INIT_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_INIT_LISTVARIANT'"NOTRANSL: Variable Übersichten: Listvariante initialisieren (Tabellen und
EXPORTING
I_APPLIC = "Application
* I_APPLIC_WRITE_LINE = ' ' "
* I_APPLIC_SET_ATTRIBUTES = ' ' "
* I_APPLIC_TOP_OF_PAGE = ' ' "
* I_APPLIC_TOP_OF_PAGE_LINSEL = ' ' "
* I_APPLIC_AT_USER_COMMAND = ' ' "
* I_APPLIC_AT_LINE_SELECTION = ' ' "
I_SUBAPP = "Subapplication
I_LSTVAR = "List Variant
I_PROGRAM = "
* I_FLG_NO_INPUT = ' ' "
* I_FLG_DB = ' ' "
* I_FLG_LOOP = '*' "
* I_BLANK_SYMBOL = ' ' "
* I_OFFSET = 0 "

IMPORTING
E_KEYLEN = "
E_MAXLEN = "
.



IMPORTING Parameters details for CNVL_INIT_LISTVARIANT

I_APPLIC - Application

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

I_APPLIC_WRITE_LINE -

Data type: CLIKE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPLIC_SET_ATTRIBUTES -

Data type: CLIKE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPLIC_TOP_OF_PAGE -

Data type: CLIKE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPLIC_TOP_OF_PAGE_LINSEL -

Data type: CLIKE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPLIC_AT_USER_COMMAND -

Data type: CLIKE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPLIC_AT_LINE_SELECTION -

Data type: CLIKE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SUBAPP - Subapplication

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

I_LSTVAR - List Variant

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

I_PROGRAM -

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

I_FLG_NO_INPUT -

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DB -

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_LOOP -

Data type: RC27X-FLG_SEL
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BLANK_SYMBOL -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OFFSET -

Data type: TCNVF-POSIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CNVL_INIT_LISTVARIANT

E_KEYLEN -

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

E_MAXLEN -

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

Copy and paste ABAP code example for CNVL_INIT_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_e_keylen  TYPE TCNVL-KEYLEN, "   
lv_i_applic  TYPE TCNVF-APPLIC, "   
lv_i_applic_write_line  TYPE CLIKE, "   SPACE
lv_i_applic_set_attributes  TYPE CLIKE, "   SPACE
lv_i_applic_top_of_page  TYPE CLIKE, "   SPACE
lv_i_applic_top_of_page_linsel  TYPE CLIKE, "   SPACE
lv_i_applic_at_user_command  TYPE CLIKE, "   SPACE
lv_i_applic_at_line_selection  TYPE CLIKE, "   SPACE
lv_e_maxlen  TYPE TCNVL-MAXLEN, "   
lv_i_subapp  TYPE TCNVF-SUBAPP, "   
lv_i_lstvar  TYPE TCNVF-LSTVAR, "   
lv_i_program  TYPE SY-REPID, "   
lv_i_flg_no_input  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_db  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_loop  TYPE RC27X-FLG_SEL, "   '*'
lv_i_blank_symbol  TYPE CHAR1, "   SPACE
lv_i_offset  TYPE TCNVF-POSIT. "   0

  CALL FUNCTION 'CNVL_INIT_LISTVARIANT'  "NOTRANSL: Variable Übersichten: Listvariante initialisieren (Tabellen und
    EXPORTING
         I_APPLIC = lv_i_applic
         I_APPLIC_WRITE_LINE = lv_i_applic_write_line
         I_APPLIC_SET_ATTRIBUTES = lv_i_applic_set_attributes
         I_APPLIC_TOP_OF_PAGE = lv_i_applic_top_of_page
         I_APPLIC_TOP_OF_PAGE_LINSEL = lv_i_applic_top_of_page_linsel
         I_APPLIC_AT_USER_COMMAND = lv_i_applic_at_user_command
         I_APPLIC_AT_LINE_SELECTION = lv_i_applic_at_line_selection
         I_SUBAPP = lv_i_subapp
         I_LSTVAR = lv_i_lstvar
         I_PROGRAM = lv_i_program
         I_FLG_NO_INPUT = lv_i_flg_no_input
         I_FLG_DB = lv_i_flg_db
         I_FLG_LOOP = lv_i_flg_loop
         I_BLANK_SYMBOL = lv_i_blank_symbol
         I_OFFSET = lv_i_offset
    IMPORTING
         E_KEYLEN = lv_e_keylen
         E_MAXLEN = lv_e_maxlen
. " CNVL_INIT_LISTVARIANT




ABAP code using 7.40 inline data declarations to call FM CNVL_INIT_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 KEYLEN FROM TCNVL INTO @DATA(ld_e_keylen).
 
"SELECT single APPLIC FROM TCNVF INTO @DATA(ld_i_applic).
 
DATA(ld_i_applic_write_line) = ' '.
 
DATA(ld_i_applic_set_attributes) = ' '.
 
DATA(ld_i_applic_top_of_page) = ' '.
 
DATA(ld_i_applic_top_of_page_linsel) = ' '.
 
DATA(ld_i_applic_at_user_command) = ' '.
 
DATA(ld_i_applic_at_line_selection) = ' '.
 
"SELECT single MAXLEN FROM TCNVL INTO @DATA(ld_e_maxlen).
 
"SELECT single SUBAPP FROM TCNVF INTO @DATA(ld_i_subapp).
 
"SELECT single LSTVAR FROM TCNVF INTO @DATA(ld_i_lstvar).
 
"SELECT single REPID FROM SY INTO @DATA(ld_i_program).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_no_input).
DATA(ld_i_flg_no_input) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_db).
DATA(ld_i_flg_db) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_loop).
DATA(ld_i_flg_loop) = '*'.
 
DATA(ld_i_blank_symbol) = ' '.
 
"SELECT single POSIT FROM TCNVF INTO @DATA(ld_i_offset).
 


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!