SAP CNV_10993_CODESCAN_TRIGGER Function Module for LT: Search Run ID Generation and Coding Scan Execution









CNV_10993_CODESCAN_TRIGGER is a standard cnv 10993 codescan trigger SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for LT: Search Run ID Generation and Coding Scan Execution 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 10993 codescan trigger FM, simply by entering the name CNV_10993_CODESCAN_TRIGGER into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNV_10993_SHC_CS
Program Name: SAPLCNV_10993_SHC_CS
Main Program: SAPLCNV_10993_SHC_CS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CNV_10993_CODESCAN_TRIGGER 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_10993_CODESCAN_TRIGGER'"LT: Search Run ID Generation and Coding Scan Execution
EXPORTING
IV_SEARCH_RUN_ID = "Search run id
* IV_PCLPACKID = "Package Number to Specify CMIS and TDMS Packages
* IV_SEARCH_DESC = "Search Run id Description
* IV_MODE = "3-Byte field
* IV_TASK = 'E' "'C' - Create Run Id; 'E' - Execute Run Id
* IV_PACKID = "Conversion: Conversion package number
* IV_PACKID_T = "Conversion: Description

IMPORTING
EV_CREATED_DATE = "Search Date
EV_CREATED_TIME = "Search time
EV_SYSTEM_ID = "Communication ID/Number
EV_CREATED_BY = "User Name
EV_CLIENT = "Master data client

EXCEPTIONS
NOT_AUTHORIZED = 1 RUNID_NOT_FOUND = 10 RUNID_EXISTS = 11 NO_AUTHORIZATION = 12 NO_STRINGS_FOUND = 13 NO_RESULTS_FOUND = 14 SCAN_IN_PROGRESS = 15 AUTHORITY_DATA_MISSING = 2 INVALID_USER_TYPE = 3 NO_COA_STRINGS = 4 PROJECT_ALREADY_EXISTS = 5 NO_CCD_STRINGS = 6 NO_ACTIVE_CCD = 7 NO_ACTIVE_COA = 8 PROJECT_NOT_FOUND = 9
.



IMPORTING Parameters details for CNV_10993_CODESCAN_TRIGGER

IV_SEARCH_RUN_ID - Search run id

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

IV_PCLPACKID - Package Number to Specify CMIS and TDMS Packages

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

IV_SEARCH_DESC - Search Run id Description

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

IV_MODE - 3-Byte field

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

IV_TASK - 'C' - Create Run Id; 'E' - Execute Run Id

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

IV_PACKID - Conversion: Conversion package number

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

IV_PACKID_T - Conversion: Description

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

EXPORTING Parameters details for CNV_10993_CODESCAN_TRIGGER

EV_CREATED_DATE - Search Date

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

EV_CREATED_TIME - Search time

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

EV_SYSTEM_ID - Communication ID/Number

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

EV_CREATED_BY - User Name

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

EV_CLIENT - Master data client

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

EXCEPTIONS details

NOT_AUTHORIZED - User not authorized

Data type:
Optional: No
Call by Reference: Yes

RUNID_NOT_FOUND - Specified Run Id does not exist

Data type:
Optional: No
Call by Reference: Yes

RUNID_EXISTS - Specified Run Id exists already

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORIZATION - No Authorization

Data type:
Optional: No
Call by Reference: Yes

NO_STRINGS_FOUND - No strings found for the selected cwb package

Data type:
Optional: No
Call by Reference: Yes

NO_RESULTS_FOUND - No Results Found

Data type:
Optional: No
Call by Reference: Yes

SCAN_IN_PROGRESS - Scanning for current project is in Progress.

Data type:
Optional: No
Call by Reference: Yes

AUTHORITY_DATA_MISSING - Authority Info not maintained

Data type:
Optional: No
Call by Reference: Yes

INVALID_USER_TYPE - Not a Dialog User

Data type:
Optional: No
Call by Reference: Yes

NO_COA_STRINGS - No COA Strings

Data type:
Optional: No
Call by Reference: Yes

PROJECT_ALREADY_EXISTS - Project already exists

Data type:
Optional: No
Call by Reference: Yes

NO_CCD_STRINGS - No CCD Strings

Data type:
Optional: No
Call by Reference: Yes

NO_ACTIVE_CCD - No Active Package for CCD

Data type:
Optional: No
Call by Reference: Yes

NO_ACTIVE_COA - No Active Package for COA

Data type:
Optional: No
Call by Reference: Yes

PROJECT_NOT_FOUND - Project Id '0000' does not exist

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CNV_10993_CODESCAN_TRIGGER 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_not_authorized  TYPE STRING, "   
lv_ev_created_date  TYPE CNV_10993_UDATE, "   
lv_iv_search_run_id  TYPE CNV_10993_SEARCH_RUN_ID, "   
lv_runid_not_found  TYPE CNV_10993_SEARCH_RUN_ID, "   
lv_runid_exists  TYPE CNV_10993_SEARCH_RUN_ID, "   
lv_no_authorization  TYPE CNV_10993_SEARCH_RUN_ID, "   
lv_no_strings_found  TYPE CNV_10993_SEARCH_RUN_ID, "   
lv_no_results_found  TYPE CNV_10993_SEARCH_RUN_ID, "   
lv_scan_in_progress  TYPE CNV_10993_SEARCH_RUN_ID, "   
lv_iv_pclpackid  TYPE CNV_MBT_PACKID, "   
lv_ev_created_time  TYPE CNV_10993_UTIME, "   
lv_authority_data_missing  TYPE CNV_10993_UTIME, "   
lv_ev_system_id  TYPE SYSID, "   
lv_iv_search_desc  TYPE CNV_10993_SEARCH_RUN_ID_DESCR, "   
lv_invalid_user_type  TYPE CNV_10993_SEARCH_RUN_ID_DESCR, "   
lv_iv_mode  TYPE CHAR3, "   
lv_ev_created_by  TYPE CNV_10993_UNAME, "   
lv_no_coa_strings  TYPE CNV_10993_UNAME, "   
lv_iv_task  TYPE CHAR1, "   'E'
lv_ev_client  TYPE MANDT, "   
lv_project_already_exists  TYPE MANDT, "   
lv_iv_packid  TYPE CNV_PACK, "   
lv_no_ccd_strings  TYPE CNV_PACK, "   
lv_iv_packid_t  TYPE CNV_DESCR, "   
lv_no_active_ccd  TYPE CNV_DESCR, "   
lv_no_active_coa  TYPE CNV_DESCR, "   
lv_project_not_found  TYPE CNV_DESCR. "   

  CALL FUNCTION 'CNV_10993_CODESCAN_TRIGGER'  "LT: Search Run ID Generation and Coding Scan Execution
    EXPORTING
         IV_SEARCH_RUN_ID = lv_iv_search_run_id
         IV_PCLPACKID = lv_iv_pclpackid
         IV_SEARCH_DESC = lv_iv_search_desc
         IV_MODE = lv_iv_mode
         IV_TASK = lv_iv_task
         IV_PACKID = lv_iv_packid
         IV_PACKID_T = lv_iv_packid_t
    IMPORTING
         EV_CREATED_DATE = lv_ev_created_date
         EV_CREATED_TIME = lv_ev_created_time
         EV_SYSTEM_ID = lv_ev_system_id
         EV_CREATED_BY = lv_ev_created_by
         EV_CLIENT = lv_ev_client
    EXCEPTIONS
        NOT_AUTHORIZED = 1
        RUNID_NOT_FOUND = 10
        RUNID_EXISTS = 11
        NO_AUTHORIZATION = 12
        NO_STRINGS_FOUND = 13
        NO_RESULTS_FOUND = 14
        SCAN_IN_PROGRESS = 15
        AUTHORITY_DATA_MISSING = 2
        INVALID_USER_TYPE = 3
        NO_COA_STRINGS = 4
        PROJECT_ALREADY_EXISTS = 5
        NO_CCD_STRINGS = 6
        NO_ACTIVE_CCD = 7
        NO_ACTIVE_COA = 8
        PROJECT_NOT_FOUND = 9
. " CNV_10993_CODESCAN_TRIGGER




ABAP code using 7.40 inline data declarations to call FM CNV_10993_CODESCAN_TRIGGER

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_task) = 'E'.
 
 
 
 
 
 
 
 
 


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!