SAP SDOK_M_CONTTAB_COPY Function Module for
SDOK_M_CONTTAB_COPY is a standard sdok m conttab copy 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 sdok m conttab copy FM, simply by entering the name SDOK_M_CONTTAB_COPY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDC_MODEL
Program Name: SAPLSDC_MODEL
Main Program: SAPLSDC_MODEL
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SDOK_M_CONTTAB_COPY 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 'SDOK_M_CONTTAB_COPY'".
EXPORTING
MODEL_HEADERTAB = "
MODEL_CONTENTTAB = "
HEADERTAB = "Header Table
CONTENTTAB = "
* DEVCLASS = ' ' "Package
* X_ACTIVATE = ' ' "
* TITLE_PREFIX = ' ' "
CHANGING
* KORRNUM = ' ' "Request/Task
EXCEPTIONS
BAD_MODEL = 1 TABLE_EXISTING = 2 CANCELLED_BY_USER = 3 CTS_FAILED = 4 DDIC_FAILED = 5
IMPORTING Parameters details for SDOK_M_CONTTAB_COPY
MODEL_HEADERTAB -
Data type: SDOKMITAB-HEADERTABOptional: No
Call by Reference: No ( called with pass by value option)
MODEL_CONTENTTAB -
Data type: SCMS_SCREP-R3DB_TABOptional: No
Call by Reference: No ( called with pass by value option)
HEADERTAB - Header Table
Data type: SDOKMITAB-HEADERTABOptional: No
Call by Reference: No ( called with pass by value option)
CONTENTTAB -
Data type: SCMS_SCREP-R3DB_TABOptional: No
Call by Reference: No ( called with pass by value option)
DEVCLASS - Package
Data type: KO200-DEVCLASSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ACTIVATE -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLE_PREFIX -
Data type: DD02V-DDTEXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SDOK_M_CONTTAB_COPY
KORRNUM - Request/Task
Data type: E070-TRKORRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
BAD_MODEL -
Data type:Optional: No
Call by Reference: Yes
TABLE_EXISTING -
Data type:Optional: No
Call by Reference: Yes
CANCELLED_BY_USER - Canceled by User
Data type:Optional: No
Call by Reference: Yes
CTS_FAILED -
Data type:Optional: No
Call by Reference: Yes
DDIC_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SDOK_M_CONTTAB_COPY 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_korrnum | TYPE E070-TRKORR, " SPACE | |||
| lv_bad_model | TYPE E070, " | |||
| lv_model_headertab | TYPE SDOKMITAB-HEADERTAB, " | |||
| lv_table_existing | TYPE SDOKMITAB, " | |||
| lv_model_contenttab | TYPE SCMS_SCREP-R3DB_TAB, " | |||
| lv_headertab | TYPE SDOKMITAB-HEADERTAB, " | |||
| lv_cancelled_by_user | TYPE SDOKMITAB, " | |||
| lv_contenttab | TYPE SCMS_SCREP-R3DB_TAB, " | |||
| lv_cts_failed | TYPE SCMS_SCREP, " | |||
| lv_devclass | TYPE KO200-DEVCLASS, " SPACE | |||
| lv_ddic_failed | TYPE KO200, " | |||
| lv_x_activate | TYPE SY-DATAR, " SPACE | |||
| lv_title_prefix | TYPE DD02V-DDTEXT. " SPACE |
|   CALL FUNCTION 'SDOK_M_CONTTAB_COPY' " |
| EXPORTING | ||
| MODEL_HEADERTAB | = lv_model_headertab | |
| MODEL_CONTENTTAB | = lv_model_contenttab | |
| HEADERTAB | = lv_headertab | |
| CONTENTTAB | = lv_contenttab | |
| DEVCLASS | = lv_devclass | |
| X_ACTIVATE | = lv_x_activate | |
| TITLE_PREFIX | = lv_title_prefix | |
| CHANGING | ||
| KORRNUM | = lv_korrnum | |
| EXCEPTIONS | ||
| BAD_MODEL = 1 | ||
| TABLE_EXISTING = 2 | ||
| CANCELLED_BY_USER = 3 | ||
| CTS_FAILED = 4 | ||
| DDIC_FAILED = 5 | ||
| . " SDOK_M_CONTTAB_COPY | ||
ABAP code using 7.40 inline data declarations to call FM SDOK_M_CONTTAB_COPY
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 TRKORR FROM E070 INTO @DATA(ld_korrnum). | ||||
| DATA(ld_korrnum) | = ' '. | |||
| "SELECT single HEADERTAB FROM SDOKMITAB INTO @DATA(ld_model_headertab). | ||||
| "SELECT single R3DB_TAB FROM SCMS_SCREP INTO @DATA(ld_model_contenttab). | ||||
| "SELECT single HEADERTAB FROM SDOKMITAB INTO @DATA(ld_headertab). | ||||
| "SELECT single R3DB_TAB FROM SCMS_SCREP INTO @DATA(ld_contenttab). | ||||
| "SELECT single DEVCLASS FROM KO200 INTO @DATA(ld_devclass). | ||||
| DATA(ld_devclass) | = ' '. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_x_activate). | ||||
| DATA(ld_x_activate) | = ' '. | |||
| "SELECT single DDTEXT FROM DD02V INTO @DATA(ld_title_prefix). | ||||
| DATA(ld_title_prefix) | = ' '. | |||
Search for further information about these or an SAP related objects