SAP G_SET_APPEND_TO_TASK Function Module for
G_SET_APPEND_TO_TASK is a standard g set append to task 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 g set append to task FM, simply by entering the name G_SET_APPEND_TO_TASK into the relevant SAP transaction such as SE37 or SE38.
Function Group: GSUT
Program Name: SAPLGSUT
Main Program: SAPLGSUT
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function G_SET_APPEND_TO_TASK 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 'G_SET_APPEND_TO_TASK'".
EXPORTING
* INCLUDE_SUBSETS = 'X' "
* DELETE_SETS = ' ' "
* STANDARD_HIER = ' ' "
* KORRNUM = ' ' "
* SHOW_PROT = 'X' "
IMPORTING
EX_PROT = "
TABLES
T_SETS = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLGSUT_001 Customer exit to replace set IDs
IMPORTING Parameters details for G_SET_APPEND_TO_TASK
INCLUDE_SUBSETS -
Data type: SY-DATARDefault: 'X'
Optional: Yes
Call by Reference: Yes
DELETE_SETS -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: Yes
STANDARD_HIER -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: Yes
KORRNUM -
Data type: E070-TRKORRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_PROT -
Data type: FLAGDefault: 'X'
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for G_SET_APPEND_TO_TASK
EX_PROT -
Data type: SPROT_U_TABOptional: No
Call by Reference: Yes
TABLES Parameters details for G_SET_APPEND_TO_TASK
T_SETS -
Data type: SETLISTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for G_SET_APPEND_TO_TASK 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: | ||||
| lt_t_sets | TYPE STANDARD TABLE OF SETLIST, " | |||
| lv_ex_prot | TYPE SPROT_U_TAB, " | |||
| lv_include_subsets | TYPE SY-DATAR, " 'X' | |||
| lv_delete_sets | TYPE SY-DATAR, " SPACE | |||
| lv_standard_hier | TYPE SY-DATAR, " SPACE | |||
| lv_korrnum | TYPE E070-TRKORR, " SPACE | |||
| lv_show_prot | TYPE FLAG. " 'X' |
|   CALL FUNCTION 'G_SET_APPEND_TO_TASK' " |
| EXPORTING | ||
| INCLUDE_SUBSETS | = lv_include_subsets | |
| DELETE_SETS | = lv_delete_sets | |
| STANDARD_HIER | = lv_standard_hier | |
| KORRNUM | = lv_korrnum | |
| SHOW_PROT | = lv_show_prot | |
| IMPORTING | ||
| EX_PROT | = lv_ex_prot | |
| TABLES | ||
| T_SETS | = lt_t_sets | |
| . " G_SET_APPEND_TO_TASK | ||
ABAP code using 7.40 inline data declarations to call FM G_SET_APPEND_TO_TASK
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 DATAR FROM SY INTO @DATA(ld_include_subsets). | ||||
| DATA(ld_include_subsets) | = 'X'. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_delete_sets). | ||||
| DATA(ld_delete_sets) | = ' '. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_standard_hier). | ||||
| DATA(ld_standard_hier) | = ' '. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_korrnum). | ||||
| DATA(ld_korrnum) | = ' '. | |||
| DATA(ld_show_prot) | = 'X'. | |||
Search for further information about these or an SAP related objects