SAP CNV_20800_READ_PARAMS Function Module for Function group for package 20800









CNV_20800_READ_PARAMS is a standard cnv 20800 read 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 Function group for package 20800 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 20800 read params FM, simply by entering the name CNV_20800_READ_PARAMS into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNV_20800_RENAME
Program Name: SAPLCNV_20800_RENAME
Main Program: SAPLCNV_20800_RENAME
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CNV_20800_READ_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_20800_READ_PARAMS'"Function group for package 20800
EXPORTING
I_PACKID = "Conversion: Conversion package number
I_NAME = "Name of a parameter (indicator)
* I_KEY1 = "Additional information for a parameter
* I_KEY2 = "Additional information for a parameter
* I_VAL1 = "Value for a parameter
* I_VAL2 = "Value for a parameter
* I_VAL3 = "Value for a parameter

TABLES
ET_PARAMS = "cnv_20800: Multi-purpose generic parameter table

EXCEPTIONS
NO_PARAMS_FOUND = 1
.



IMPORTING Parameters details for CNV_20800_READ_PARAMS

I_PACKID - Conversion: Conversion package number

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

I_NAME - Name of a parameter (indicator)

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

I_KEY1 - Additional information for a parameter

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

I_KEY2 - Additional information for a parameter

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

I_VAL1 - Value for a parameter

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

I_VAL2 - Value for a parameter

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

I_VAL3 - Value for a parameter

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

TABLES Parameters details for CNV_20800_READ_PARAMS

ET_PARAMS - cnv_20800: Multi-purpose generic parameter table

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

EXCEPTIONS details

NO_PARAMS_FOUND -

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

Copy and paste ABAP code example for CNV_20800_READ_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_i_packid  TYPE CNV_20800_PARAM-PACKID, "   
lt_et_params  TYPE STANDARD TABLE OF CNV_20800_PARAM, "   
lv_no_params_found  TYPE CNV_20800_PARAM, "   
lv_i_name  TYPE CNV_20800_PARAM-NAME, "   
lv_i_key1  TYPE CNV_20800_PARAM-KEY1, "   
lv_i_key2  TYPE CNV_20800_PARAM-KEY2, "   
lv_i_val1  TYPE CNV_20800_PARAM-VAL1, "   
lv_i_val2  TYPE CNV_20800_PARAM-VAL2, "   
lv_i_val3  TYPE CNV_20800_PARAM-VAL3. "   

  CALL FUNCTION 'CNV_20800_READ_PARAMS'  "Function group for package 20800
    EXPORTING
         I_PACKID = lv_i_packid
         I_NAME = lv_i_name
         I_KEY1 = lv_i_key1
         I_KEY2 = lv_i_key2
         I_VAL1 = lv_i_val1
         I_VAL2 = lv_i_val2
         I_VAL3 = lv_i_val3
    TABLES
         ET_PARAMS = lt_et_params
    EXCEPTIONS
        NO_PARAMS_FOUND = 1
. " CNV_20800_READ_PARAMS




ABAP code using 7.40 inline data declarations to call FM CNV_20800_READ_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.

"SELECT single PACKID FROM CNV_20800_PARAM INTO @DATA(ld_i_packid).
 
 
 
"SELECT single NAME FROM CNV_20800_PARAM INTO @DATA(ld_i_name).
 
"SELECT single KEY1 FROM CNV_20800_PARAM INTO @DATA(ld_i_key1).
 
"SELECT single KEY2 FROM CNV_20800_PARAM INTO @DATA(ld_i_key2).
 
"SELECT single VAL1 FROM CNV_20800_PARAM INTO @DATA(ld_i_val1).
 
"SELECT single VAL2 FROM CNV_20800_PARAM INTO @DATA(ld_i_val2).
 
"SELECT single VAL3 FROM CNV_20800_PARAM INTO @DATA(ld_i_val3).
 


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!