SAP DD_TABL_UNI_COPY Function Module for Copy routine for class 'table' (TABL)
DD_TABL_UNI_COPY is a standard dd tabl uni copy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Copy routine for class 'table' (TABL) 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 dd tabl uni copy FM, simply by entering the name DD_TABL_UNI_COPY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDB6
Program Name: SAPLSDB6
Main Program: SAPLSDB6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DD_TABL_UNI_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 'DD_TABL_UNI_COPY'"Copy routine for class 'table' (TABL).
EXPORTING
SRC_NAME = "
* PRID = 0 "Row Index of Internal Tables
* WITHTEXT = 'X' "
* SHORT_TEXT = ' ' "
* LANGU = SY-LANGU "
* FLATTEN = ' ' "
* NO_INCL = ' ' "
* DST_NAME = "
* FORCE = ' ' "
* GET_STATE = "
* PUT_STATE = "
* WITH_DTEL = 'X' "
* ONLY_INTERN = ' ' "
* KEY_ONLY = ' ' "
* SPEC_FIELD = ' ' "
IMPORTING
DD02V_WA = "
DD09L_WA = "
DD06V_WA = "
TABLES
* DD03P_TAB = "
* DD05M_TAB = "
* DD08V_TAB = "
* DD12V_TAB = "
* DD16V_TAB = "
* DD17V_TAB = "
EXCEPTIONS
ILLEGAL_VALUE = 1 OP_FAILURE = 2 COPYING_REFUSED = 3
IMPORTING Parameters details for DD_TABL_UNI_COPY
SRC_NAME -
Data type: TICNV-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
PRID - Row Index of Internal Tables
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
WITHTEXT -
Data type: DDREFSTRUC-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHORT_TEXT -
Data type: DD02V-DDTEXTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGU -
Data type:Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLATTEN -
Data type: DDREFSTRUC-BOOLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_INCL -
Data type: DDREFSTRUC-BOOLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DST_NAME -
Data type: TICNV-TABNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
FORCE -
Data type: DDREFSTRUC-STATEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_STATE -
Data type: DCUNITGETOptional: Yes
Call by Reference: No ( called with pass by value option)
PUT_STATE -
Data type: DCUNITGETOptional: Yes
Call by Reference: No ( called with pass by value option)
WITH_DTEL -
Data type: DDREFSTRUC-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_INTERN -
Data type: DDREFSTRUC-BOOLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_ONLY -
Data type: DDREFSTRUC-BOOLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPEC_FIELD -
Data type: TICNV-CNVFIELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DD_TABL_UNI_COPY
DD02V_WA -
Data type: DD02VOptional: No
Call by Reference: No ( called with pass by value option)
DD09L_WA -
Data type: DD09LOptional: No
Call by Reference: No ( called with pass by value option)
DD06V_WA -
Data type: DD06VOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DD_TABL_UNI_COPY
DD03P_TAB -
Data type: DD03POptional: Yes
Call by Reference: No ( called with pass by value option)
DD05M_TAB -
Data type: DD05MOptional: Yes
Call by Reference: No ( called with pass by value option)
DD08V_TAB -
Data type: DD08VOptional: Yes
Call by Reference: No ( called with pass by value option)
DD12V_TAB -
Data type: DD12VOptional: Yes
Call by Reference: No ( called with pass by value option)
DD16V_TAB -
Data type: DD16VOptional: Yes
Call by Reference: No ( called with pass by value option)
DD17V_TAB -
Data type: DD17VOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ILLEGAL_VALUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OP_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COPYING_REFUSED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DD_TABL_UNI_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_dd02v_wa | TYPE DD02V, " | |||
| lv_src_name | TYPE TICNV-TABNAME, " | |||
| lt_dd03p_tab | TYPE STANDARD TABLE OF DD03P, " | |||
| lv_illegal_value | TYPE DD03P, " | |||
| lv_prid | TYPE SY-TABIX, " 0 | |||
| lv_withtext | TYPE DDREFSTRUC-BOOL, " 'X' | |||
| lv_short_text | TYPE DD02V-DDTEXT, " ' ' | |||
| lv_langu | TYPE DD02V, " SY-LANGU | |||
| lv_flatten | TYPE DDREFSTRUC-BOOL, " ' ' | |||
| lv_no_incl | TYPE DDREFSTRUC-BOOL, " ' ' | |||
| lv_dd09l_wa | TYPE DD09L, " | |||
| lv_dst_name | TYPE TICNV-TABNAME, " | |||
| lt_dd05m_tab | TYPE STANDARD TABLE OF DD05M, " | |||
| lv_op_failure | TYPE DD05M, " | |||
| lv_force | TYPE DDREFSTRUC-STATE, " ' ' | |||
| lv_dd06v_wa | TYPE DD06V, " | |||
| lt_dd08v_tab | TYPE STANDARD TABLE OF DD08V, " | |||
| lv_copying_refused | TYPE DD08V, " | |||
| lt_dd12v_tab | TYPE STANDARD TABLE OF DD12V, " | |||
| lv_get_state | TYPE DCUNITGET, " | |||
| lt_dd16v_tab | TYPE STANDARD TABLE OF DD16V, " | |||
| lv_put_state | TYPE DCUNITGET, " | |||
| lt_dd17v_tab | TYPE STANDARD TABLE OF DD17V, " | |||
| lv_with_dtel | TYPE DDREFSTRUC-BOOL, " 'X' | |||
| lv_only_intern | TYPE DDREFSTRUC-BOOL, " ' ' | |||
| lv_key_only | TYPE DDREFSTRUC-BOOL, " ' ' | |||
| lv_spec_field | TYPE TICNV-CNVFIELD. " ' ' |
|   CALL FUNCTION 'DD_TABL_UNI_COPY' "Copy routine for class 'table' (TABL) |
| EXPORTING | ||
| SRC_NAME | = lv_src_name | |
| PRID | = lv_prid | |
| WITHTEXT | = lv_withtext | |
| SHORT_TEXT | = lv_short_text | |
| LANGU | = lv_langu | |
| FLATTEN | = lv_flatten | |
| NO_INCL | = lv_no_incl | |
| DST_NAME | = lv_dst_name | |
| FORCE | = lv_force | |
| GET_STATE | = lv_get_state | |
| PUT_STATE | = lv_put_state | |
| WITH_DTEL | = lv_with_dtel | |
| ONLY_INTERN | = lv_only_intern | |
| KEY_ONLY | = lv_key_only | |
| SPEC_FIELD | = lv_spec_field | |
| IMPORTING | ||
| DD02V_WA | = lv_dd02v_wa | |
| DD09L_WA | = lv_dd09l_wa | |
| DD06V_WA | = lv_dd06v_wa | |
| TABLES | ||
| DD03P_TAB | = lt_dd03p_tab | |
| DD05M_TAB | = lt_dd05m_tab | |
| DD08V_TAB | = lt_dd08v_tab | |
| DD12V_TAB | = lt_dd12v_tab | |
| DD16V_TAB | = lt_dd16v_tab | |
| DD17V_TAB | = lt_dd17v_tab | |
| EXCEPTIONS | ||
| ILLEGAL_VALUE = 1 | ||
| OP_FAILURE = 2 | ||
| COPYING_REFUSED = 3 | ||
| . " DD_TABL_UNI_COPY | ||
ABAP code using 7.40 inline data declarations to call FM DD_TABL_UNI_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 TABNAME FROM TICNV INTO @DATA(ld_src_name). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_prid). | ||||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_withtext). | ||||
| DATA(ld_withtext) | = 'X'. | |||
| "SELECT single DDTEXT FROM DD02V INTO @DATA(ld_short_text). | ||||
| DATA(ld_short_text) | = ' '. | |||
| DATA(ld_langu) | = SY-LANGU. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_flatten). | ||||
| DATA(ld_flatten) | = ' '. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_no_incl). | ||||
| DATA(ld_no_incl) | = ' '. | |||
| "SELECT single TABNAME FROM TICNV INTO @DATA(ld_dst_name). | ||||
| "SELECT single STATE FROM DDREFSTRUC INTO @DATA(ld_force). | ||||
| DATA(ld_force) | = ' '. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_with_dtel). | ||||
| DATA(ld_with_dtel) | = 'X'. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_only_intern). | ||||
| DATA(ld_only_intern) | = ' '. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_key_only). | ||||
| DATA(ld_key_only) | = ' '. | |||
| "SELECT single CNVFIELD FROM TICNV INTO @DATA(ld_spec_field). | ||||
| DATA(ld_spec_field) | = ' '. | |||
Search for further information about these or an SAP related objects