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

Function COPY_LIST_TABLES 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 'COPY_LIST_TABLES'".
EXPORTING
SRC_LIST = "
SRC_FMBS = "
SRC_FMBX = "
SRC_FSEL = "
LINE_LENG = "
* SRC_FPOS = "
IMPORTING
DST_LIST = "
DST_FMBS = "
DST_FMBX = "
DST_FSEL = "
DST_FPOS = "
EXCEPTIONS
INVALID_LINE_LENG = 1
IMPORTING Parameters details for COPY_LIST_TABLES
SRC_LIST -
Data type: SLIST_LIST_TABOptional: No
Call by Reference: Yes
SRC_FMBS -
Data type: SLIST_FMBS_TABOptional: No
Call by Reference: Yes
SRC_FMBX -
Data type: SLIST_FMBS_TABOptional: No
Call by Reference: Yes
SRC_FSEL -
Data type: SLIST_FSEL_TABOptional: No
Call by Reference: Yes
LINE_LENG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SRC_FPOS -
Data type: SLIST_FPOS_TABOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for COPY_LIST_TABLES
DST_LIST -
Data type: SLIST_LIST_TABOptional: No
Call by Reference: Yes
DST_FMBS -
Data type: SLIST_FMBS_TABOptional: No
Call by Reference: Yes
DST_FMBX -
Data type: SLIST_FMBS_TABOptional: No
Call by Reference: Yes
DST_FSEL -
Data type: SLIST_FSEL_TABOptional: No
Call by Reference: Yes
DST_FPOS -
Data type: SLIST_FPOS_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_LINE_LENG -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for COPY_LIST_TABLES 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_dst_list | TYPE SLIST_LIST_TAB, " | |||
| lv_src_list | TYPE SLIST_LIST_TAB, " | |||
| lv_invalid_line_leng | TYPE SLIST_LIST_TAB, " | |||
| lv_dst_fmbs | TYPE SLIST_FMBS_TAB, " | |||
| lv_src_fmbs | TYPE SLIST_FMBS_TAB, " | |||
| lv_dst_fmbx | TYPE SLIST_FMBS_TAB, " | |||
| lv_src_fmbx | TYPE SLIST_FMBS_TAB, " | |||
| lv_dst_fsel | TYPE SLIST_FSEL_TAB, " | |||
| lv_src_fsel | TYPE SLIST_FSEL_TAB, " | |||
| lv_dst_fpos | TYPE SLIST_FPOS_TAB, " | |||
| lv_line_leng | TYPE SLIST_FPOS_TAB, " | |||
| lv_src_fpos | TYPE SLIST_FPOS_TAB. " |
|   CALL FUNCTION 'COPY_LIST_TABLES' " |
| EXPORTING | ||
| SRC_LIST | = lv_src_list | |
| SRC_FMBS | = lv_src_fmbs | |
| SRC_FMBX | = lv_src_fmbx | |
| SRC_FSEL | = lv_src_fsel | |
| LINE_LENG | = lv_line_leng | |
| SRC_FPOS | = lv_src_fpos | |
| IMPORTING | ||
| DST_LIST | = lv_dst_list | |
| DST_FMBS | = lv_dst_fmbs | |
| DST_FMBX | = lv_dst_fmbx | |
| DST_FSEL | = lv_dst_fsel | |
| DST_FPOS | = lv_dst_fpos | |
| EXCEPTIONS | ||
| INVALID_LINE_LENG = 1 | ||
| . " COPY_LIST_TABLES | ||
ABAP code using 7.40 inline data declarations to call FM COPY_LIST_TABLES
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