SAP S_TWB_EX_COPY_STRUCTURE Function Module for
S_TWB_EX_COPY_STRUCTURE is a standard s twb ex copy structure 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 s twb ex copy structure FM, simply by entering the name S_TWB_EX_COPY_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: S_TWB_EXTERNAL
Program Name: SAPLS_TWB_EXTERNAL
Main Program: SAPLS_TWB_EXTERNAL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function S_TWB_EX_COPY_STRUCTURE 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 'S_TWB_EX_COPY_STRUCTURE'".
EXPORTING
* IV_LANGUAGE = SY-LANGU "
* IV_DEVCLASS = '$TMP' "
* IV_TRANSPORT_ORDER = "
IV_TEMPLATE_ID = "
* IV_NEW_STRUC_TEXT = "
* IV_NEW_STRUC_TEXT_PREFIX = "
* IV_NEW_STRUC_TEXT_SUFFIX = "
* IV_COPY_FILTERS = ' ' "
* IV_NEW_FILTER_PREFIX = "
* IV_NEW_FILTER_SUFFIX = "
* IV_COPY_TESTERS = ' ' "
IMPORTING
EV_MESSAGE = "
EV_NEW_STRUCTURE_HEADER = "
IMPORTING Parameters details for S_TWB_EX_COPY_STRUCTURE
IV_LANGUAGE -
Data type: SYLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_DEVCLASS -
Data type: DEVCLASSDefault: '$TMP'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TRANSPORT_ORDER -
Data type: TRKORROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_TEMPLATE_ID -
Data type: HIER_TREEGOptional: No
Call by Reference: No ( called with pass by value option)
IV_NEW_STRUC_TEXT -
Data type: HIER_TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_STRUC_TEXT_PREFIX -
Data type: CHAR10Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_STRUC_TEXT_SUFFIX -
Data type: CHAR10Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_COPY_FILTERS -
Data type: HIER_YESNODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_FILTER_PREFIX -
Data type: CHAR10Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_FILTER_SUFFIX -
Data type: CHAR10Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_COPY_TESTERS -
Data type: HIER_YESNODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for S_TWB_EX_COPY_STRUCTURE
EV_MESSAGE -
Data type: HIER_MESSOptional: No
Call by Reference: No ( called with pass by value option)
EV_NEW_STRUCTURE_HEADER -
Data type: TTREEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for S_TWB_EX_COPY_STRUCTURE 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_ev_message | TYPE HIER_MESS, " | |||
| lv_iv_language | TYPE SYLANGU, " SY-LANGU | |||
| lv_iv_devclass | TYPE DEVCLASS, " '$TMP' | |||
| lv_iv_transport_order | TYPE TRKORR, " | |||
| lv_iv_template_id | TYPE HIER_TREEG, " | |||
| lv_ev_new_structure_header | TYPE TTREE, " | |||
| lv_iv_new_struc_text | TYPE HIER_TEXT, " | |||
| lv_iv_new_struc_text_prefix | TYPE CHAR10, " | |||
| lv_iv_new_struc_text_suffix | TYPE CHAR10, " | |||
| lv_iv_copy_filters | TYPE HIER_YESNO, " SPACE | |||
| lv_iv_new_filter_prefix | TYPE CHAR10, " | |||
| lv_iv_new_filter_suffix | TYPE CHAR10, " | |||
| lv_iv_copy_testers | TYPE HIER_YESNO. " SPACE |
|   CALL FUNCTION 'S_TWB_EX_COPY_STRUCTURE' " |
| EXPORTING | ||
| IV_LANGUAGE | = lv_iv_language | |
| IV_DEVCLASS | = lv_iv_devclass | |
| IV_TRANSPORT_ORDER | = lv_iv_transport_order | |
| IV_TEMPLATE_ID | = lv_iv_template_id | |
| IV_NEW_STRUC_TEXT | = lv_iv_new_struc_text | |
| IV_NEW_STRUC_TEXT_PREFIX | = lv_iv_new_struc_text_prefix | |
| IV_NEW_STRUC_TEXT_SUFFIX | = lv_iv_new_struc_text_suffix | |
| IV_COPY_FILTERS | = lv_iv_copy_filters | |
| IV_NEW_FILTER_PREFIX | = lv_iv_new_filter_prefix | |
| IV_NEW_FILTER_SUFFIX | = lv_iv_new_filter_suffix | |
| IV_COPY_TESTERS | = lv_iv_copy_testers | |
| IMPORTING | ||
| EV_MESSAGE | = lv_ev_message | |
| EV_NEW_STRUCTURE_HEADER | = lv_ev_new_structure_header | |
| . " S_TWB_EX_COPY_STRUCTURE | ||
ABAP code using 7.40 inline data declarations to call FM S_TWB_EX_COPY_STRUCTURE
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_language) | = SY-LANGU. | |||
| DATA(ld_iv_devclass) | = '$TMP'. | |||
| DATA(ld_iv_copy_filters) | = ' '. | |||
| DATA(ld_iv_copy_testers) | = ' '. | |||
Search for further information about these or an SAP related objects