SAP CNV_TDMS_SCR_PRESEL_TEMPLATE Function Module for Template Function Module for Scrambling Pre-selection









CNV_TDMS_SCR_PRESEL_TEMPLATE is a standard cnv tdms scr presel template SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Template Function Module for Scrambling Pre-selection 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 tdms scr presel template FM, simply by entering the name CNV_TDMS_SCR_PRESEL_TEMPLATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CNV_TDMS_SCR_PRESEL_TEMPLATE 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_TDMS_SCR_PRESEL_TEMPLATE'"Template Function Module for Scrambling Pre-selection
EXPORTING
I_PROJECT = "Identification of MBT Project
I_PACKID = "Package Number of Transformation / Analysis Package
I_RULE = "Rule Details
IREF_PRESEL = "Preselection of Tables to Fill Mapping Table for Scrambling
IREF_MAPPING = "
IREF_TABLE_DATA = "

IMPORTING
EREF_ERRORS = "Exceptions occured in Scrambling

TABLES
XT_RANDOM_VALUES = "Scrambling Table for Random Generated Values
XT_MAPPING_TABLE = "Scrambling Mapping Table

EXCEPTIONS
NO_MAPPING_VALUES = 1
.



IMPORTING Parameters details for CNV_TDMS_SCR_PRESEL_TEMPLATE

I_PROJECT - Identification of MBT Project

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

I_PACKID - Package Number of Transformation / Analysis Package

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

I_RULE - Rule Details

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

IREF_PRESEL - Preselection of Tables to Fill Mapping Table for Scrambling

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

IREF_MAPPING -

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

IREF_TABLE_DATA -

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

EXPORTING Parameters details for CNV_TDMS_SCR_PRESEL_TEMPLATE

EREF_ERRORS - Exceptions occured in Scrambling

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

TABLES Parameters details for CNV_TDMS_SCR_PRESEL_TEMPLATE

XT_RANDOM_VALUES - Scrambling Table for Random Generated Values

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

XT_MAPPING_TABLE - Scrambling Mapping Table

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

EXCEPTIONS details

NO_MAPPING_VALUES - No Mapping Values

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

Copy and paste ABAP code example for CNV_TDMS_SCR_PRESEL_TEMPLATE 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_project  TYPE CNV_MBT_PROJ, "   
lv_eref_errors  TYPE CX_TDMS_SCR_ERRORS, "   
lt_xt_random_values  TYPE STANDARD TABLE OF CNVTDMSSCR_TT_RANDOM, "   
lv_no_mapping_values  TYPE CNVTDMSSCR_TT_RANDOM, "   
lv_i_packid  TYPE CNV_MBT_PACKID, "   
lt_xt_mapping_table  TYPE STANDARD TABLE OF CNVTDMSSCR_TT_MAPPING_TABLE, "   
lv_i_rule  TYPE CNVTDMSSCR_TS_RULE, "   
lv_iref_presel  TYPE CL_CNV_TDMS_SCR_PRESEL, "   
lv_iref_mapping  TYPE DATA, "   
lv_iref_table_data  TYPE DATA. "   

  CALL FUNCTION 'CNV_TDMS_SCR_PRESEL_TEMPLATE'  "Template Function Module for Scrambling Pre-selection
    EXPORTING
         I_PROJECT = lv_i_project
         I_PACKID = lv_i_packid
         I_RULE = lv_i_rule
         IREF_PRESEL = lv_iref_presel
         IREF_MAPPING = lv_iref_mapping
         IREF_TABLE_DATA = lv_iref_table_data
    IMPORTING
         EREF_ERRORS = lv_eref_errors
    TABLES
         XT_RANDOM_VALUES = lt_xt_random_values
         XT_MAPPING_TABLE = lt_xt_mapping_table
    EXCEPTIONS
        NO_MAPPING_VALUES = 1
. " CNV_TDMS_SCR_PRESEL_TEMPLATE




ABAP code using 7.40 inline data declarations to call FM CNV_TDMS_SCR_PRESEL_TEMPLATE

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.

 
 
 
 
 
 
 
 
 
 


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!