SAP SCCR_COPY_SELTAB_FROM_SOURCE Function Module for
SCCR_COPY_SELTAB_FROM_SOURCE is a standard sccr copy seltab from source SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sccr copy seltab from source FM, simply by entering the name SCCR_COPY_SELTAB_FROM_SOURCE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCCR
Program Name: SAPLSCCR
Main Program: SAPLSCCR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCCR_COPY_SELTAB_FROM_SOURCE 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 'SCCR_COPY_SELTAB_FROM_SOURCE'".
EXPORTING
CCSUPCOPY = "Test Mode
PROF_PARM = "
CCMODUS = "Copying mode
CCCFLOW_VAL = "Client Copy Control Flow
PROTFILE = "Name of operating system file that contains log
* PROCESS_ID = "Process number
* BATCH_FLAG = "Program running in background
* IV_DEBUG_LEVEL = 0 "
IMPORTING
RCOD = "
CCCFLOW_MOD = "
TABLES
L_SELTAB = "Table list
E071K1_TAB = "
IMPORTING Parameters details for SCCR_COPY_SELTAB_FROM_SOURCE
CCSUPCOPY - Test Mode
Data type: STRMPAR-CCTESTRUNOptional: No
Call by Reference: Yes
PROF_PARM -
Data type: CCPROFSROptional: No
Call by Reference: Yes
CCMODUS - Copying mode
Data type: CCCPARM-MODUSOptional: No
Call by Reference: Yes
CCCFLOW_VAL - Client Copy Control Flow
Data type: CCCFLOWOptional: No
Call by Reference: Yes
PROTFILE - Name of operating system file that contains log
Data type: SPROT_I-PROTOptional: No
Call by Reference: Yes
PROCESS_ID - Process number
Data type: CCPROCTAB-PROCESSOptional: Yes
Call by Reference: Yes
BATCH_FLAG - Program running in background
Data type: SY-BATCHOptional: Yes
Call by Reference: Yes
IV_DEBUG_LEVEL -
Data type: IOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SCCR_COPY_SELTAB_FROM_SOURCE
RCOD -
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
CCCFLOW_MOD -
Data type: CCCFLOWOptional: No
Call by Reference: Yes
TABLES Parameters details for SCCR_COPY_SELTAB_FROM_SOURCE
L_SELTAB - Table list
Data type: JCTABOptional: No
Call by Reference: No ( called with pass by value option)
E071K1_TAB -
Data type: E071KOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCCR_COPY_SELTAB_FROM_SOURCE 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_rcod | TYPE SY-SUBRC, " | |||
| lt_l_seltab | TYPE STANDARD TABLE OF JCTAB, " | |||
| lv_ccsupcopy | TYPE STRMPAR-CCTESTRUN, " | |||
| lv_prof_parm | TYPE CCPROFSR, " | |||
| lt_e071k1_tab | TYPE STANDARD TABLE OF E071K, " | |||
| lv_cccflow_mod | TYPE CCCFLOW, " | |||
| lv_ccmodus | TYPE CCCPARM-MODUS, " | |||
| lv_cccflow_val | TYPE CCCFLOW, " | |||
| lv_protfile | TYPE SPROT_I-PROT, " | |||
| lv_process_id | TYPE CCPROCTAB-PROCESS, " | |||
| lv_batch_flag | TYPE SY-BATCH, " | |||
| lv_iv_debug_level | TYPE I. " 0 |
|   CALL FUNCTION 'SCCR_COPY_SELTAB_FROM_SOURCE' " |
| EXPORTING | ||
| CCSUPCOPY | = lv_ccsupcopy | |
| PROF_PARM | = lv_prof_parm | |
| CCMODUS | = lv_ccmodus | |
| CCCFLOW_VAL | = lv_cccflow_val | |
| PROTFILE | = lv_protfile | |
| PROCESS_ID | = lv_process_id | |
| BATCH_FLAG | = lv_batch_flag | |
| IV_DEBUG_LEVEL | = lv_iv_debug_level | |
| IMPORTING | ||
| RCOD | = lv_rcod | |
| CCCFLOW_MOD | = lv_cccflow_mod | |
| TABLES | ||
| L_SELTAB | = lt_l_seltab | |
| E071K1_TAB | = lt_e071k1_tab | |
| . " SCCR_COPY_SELTAB_FROM_SOURCE | ||
ABAP code using 7.40 inline data declarations to call FM SCCR_COPY_SELTAB_FROM_SOURCE
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 SUBRC FROM SY INTO @DATA(ld_rcod). | ||||
| "SELECT single CCTESTRUN FROM STRMPAR INTO @DATA(ld_ccsupcopy). | ||||
| "SELECT single MODUS FROM CCCPARM INTO @DATA(ld_ccmodus). | ||||
| "SELECT single PROT FROM SPROT_I INTO @DATA(ld_protfile). | ||||
| "SELECT single PROCESS FROM CCPROCTAB INTO @DATA(ld_process_id). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_batch_flag). | ||||
Search for further information about these or an SAP related objects