SAP CNV_10020_GET_VALUE Function Module for Get the component value of a non-transparent field









CNV_10020_GET_VALUE is a standard cnv 10020 get value SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get the component value of a non-transparent field 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 10020 get value FM, simply by entering the name CNV_10020_GET_VALUE into the relevant SAP transaction such as SE37 or SE38.

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



Function CNV_10020_GET_VALUE 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_10020_GET_VALUE'"Get the component value of a non-transparent field
EXPORTING
I_PACKID = "Package number
* I_INPUT_FORM = "Routine to fill required input parameters
* I_INPUT_PROG = "Main program for I_INPUT_FORM
I_REFRESH_LUTS = "Refresh itabs e.g. for the first call in a new table record
* I_TEST_DT_RUN = ' ' "Override determination type for path determination
I_TABNAME = "Table
I_FIELDNAME = "Non-transparent field
I_COMPNAME = "Component of the non-transparent field
I_FIELDVALUE = "Value of the non-transparent field
* I_CS = ' ' "Field contains a dash (only required when I_PREPARED is set)
* I_PREPARED = ' ' "Field and component are prepared for access
* I_HANDLE_INITIAL = ' ' "Indicator for handling initial values
* I_CONFLICT_DETECTION = ' ' "Indicator for conflict detection

IMPORTING
E_ITR = "Target structure for non-transparent fields

TABLES
* IT_INPUT_DATA = "Input data for evaluation - field/object and its value
.



IMPORTING Parameters details for CNV_10020_GET_VALUE

I_PACKID - Package number

Data type: CNV_10020_RCOMP-PACKID
Optional: No
Call by Reference: Yes

I_INPUT_FORM - Routine to fill required input parameters

Data type: CNV_10020_DTDEFS-FUNCNAME
Optional: Yes
Call by Reference: Yes

I_INPUT_PROG - Main program for I_INPUT_FORM

Data type: CNV_10020_DTDEFS-PROGNAME
Optional: Yes
Call by Reference: Yes

I_REFRESH_LUTS - Refresh itabs e.g. for the first call in a new table record

Data type: CNV_10020_REFOBJ-XFELD
Optional: No
Call by Reference: Yes

I_TEST_DT_RUN - Override determination type for path determination

Data type: CNV_10020_REFOBJ-DT_RUN
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_TABNAME - Table

Data type: CNV_10020_RCOMP-TABNAME
Optional: No
Call by Reference: Yes

I_FIELDNAME - Non-transparent field

Data type: CNV_10020_RCOMP-FIELDNAME
Optional: No
Call by Reference: Yes

I_COMPNAME - Component of the non-transparent field

Data type: CNV_10020_RCOMP-COMPNAME
Optional: No
Call by Reference: Yes

I_FIELDVALUE - Value of the non-transparent field

Data type:
Optional: No
Call by Reference: Yes

I_CS - Field contains a dash (only required when I_PREPARED is set)

Data type: CNV_10020_REFOBJ-XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_PREPARED - Field and component are prepared for access

Data type: CNV_10020_REFOBJ-XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_HANDLE_INITIAL - Indicator for handling initial values

Data type: CNV_10020_RCOMP-HANDLE_INITIAL
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_CONFLICT_DETECTION - Indicator for conflict detection

Data type: CNV_10020_REFOBJ-XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CNV_10020_GET_VALUE

E_ITR - Target structure for non-transparent fields

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

TABLES Parameters details for CNV_10020_GET_VALUE

IT_INPUT_DATA - Input data for evaluation - field/object and its value

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

Copy and paste ABAP code example for CNV_10020_GET_VALUE 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_itr  TYPE CNV_10020_ITR_RESULT, "   
lv_i_packid  TYPE CNV_10020_RCOMP-PACKID, "   
lt_it_input_data  TYPE STANDARD TABLE OF CNV_10020_ITR_INPUT_DATA, "   
lv_i_input_form  TYPE CNV_10020_DTDEFS-FUNCNAME, "   
lv_i_input_prog  TYPE CNV_10020_DTDEFS-PROGNAME, "   
lv_i_refresh_luts  TYPE CNV_10020_REFOBJ-XFELD, "   
lv_i_test_dt_run  TYPE CNV_10020_REFOBJ-DT_RUN, "   SPACE
lv_i_tabname  TYPE CNV_10020_RCOMP-TABNAME, "   
lv_i_fieldname  TYPE CNV_10020_RCOMP-FIELDNAME, "   
lv_i_compname  TYPE CNV_10020_RCOMP-COMPNAME, "   
lv_i_fieldvalue  TYPE CNV_10020_RCOMP, "   
lv_i_cs  TYPE CNV_10020_REFOBJ-XFELD, "   SPACE
lv_i_prepared  TYPE CNV_10020_REFOBJ-XFELD, "   SPACE
lv_i_handle_initial  TYPE CNV_10020_RCOMP-HANDLE_INITIAL, "   SPACE
lv_i_conflict_detection  TYPE CNV_10020_REFOBJ-XFELD. "   SPACE

  CALL FUNCTION 'CNV_10020_GET_VALUE'  "Get the component value of a non-transparent field
    EXPORTING
         I_PACKID = lv_i_packid
         I_INPUT_FORM = lv_i_input_form
         I_INPUT_PROG = lv_i_input_prog
         I_REFRESH_LUTS = lv_i_refresh_luts
         I_TEST_DT_RUN = lv_i_test_dt_run
         I_TABNAME = lv_i_tabname
         I_FIELDNAME = lv_i_fieldname
         I_COMPNAME = lv_i_compname
         I_FIELDVALUE = lv_i_fieldvalue
         I_CS = lv_i_cs
         I_PREPARED = lv_i_prepared
         I_HANDLE_INITIAL = lv_i_handle_initial
         I_CONFLICT_DETECTION = lv_i_conflict_detection
    IMPORTING
         E_ITR = lv_e_itr
    TABLES
         IT_INPUT_DATA = lt_it_input_data
. " CNV_10020_GET_VALUE




ABAP code using 7.40 inline data declarations to call FM CNV_10020_GET_VALUE

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_10020_RCOMP INTO @DATA(ld_i_packid).
 
 
"SELECT single FUNCNAME FROM CNV_10020_DTDEFS INTO @DATA(ld_i_input_form).
 
"SELECT single PROGNAME FROM CNV_10020_DTDEFS INTO @DATA(ld_i_input_prog).
 
"SELECT single XFELD FROM CNV_10020_REFOBJ INTO @DATA(ld_i_refresh_luts).
 
"SELECT single DT_RUN FROM CNV_10020_REFOBJ INTO @DATA(ld_i_test_dt_run).
DATA(ld_i_test_dt_run) = ' '.
 
"SELECT single TABNAME FROM CNV_10020_RCOMP INTO @DATA(ld_i_tabname).
 
"SELECT single FIELDNAME FROM CNV_10020_RCOMP INTO @DATA(ld_i_fieldname).
 
"SELECT single COMPNAME FROM CNV_10020_RCOMP INTO @DATA(ld_i_compname).
 
 
"SELECT single XFELD FROM CNV_10020_REFOBJ INTO @DATA(ld_i_cs).
DATA(ld_i_cs) = ' '.
 
"SELECT single XFELD FROM CNV_10020_REFOBJ INTO @DATA(ld_i_prepared).
DATA(ld_i_prepared) = ' '.
 
"SELECT single HANDLE_INITIAL FROM CNV_10020_RCOMP INTO @DATA(ld_i_handle_initial).
DATA(ld_i_handle_initial) = ' '.
 
"SELECT single XFELD FROM CNV_10020_REFOBJ INTO @DATA(ld_i_conflict_detection).
DATA(ld_i_conflict_detection) = ' '.
 


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!