SAP ETP_IF_GET_TASKS_FOR_USER Function Module for NOTRANSL: EasyTaskPlanning: Tasks für bestimmten Benutzer selektieren
ETP_IF_GET_TASKS_FOR_USER is a standard etp if get tasks for user SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EasyTaskPlanning: Tasks für bestimmten Benutzer selektieren 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 etp if get tasks for user FM, simply by entering the name ETP_IF_GET_TASKS_FOR_USER into the relevant SAP transaction such as SE37 or SE38.
Function Group: ETP_IF
Program Name: SAPLETP_IF
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ETP_IF_GET_TASKS_FOR_USER 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 'ETP_IF_GET_TASKS_FOR_USER'"NOTRANSL: EasyTaskPlanning: Tasks für bestimmten Benutzer selektieren.
EXPORTING
USER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FUNC = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* ONLY_OPEN_TASKS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FROMDATE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TODATE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* STORAGE_LAYER = 'S' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* DEBUG = "
TABLES
* TE_TASKS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TE_ALL_TASKS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TE_PARTNERS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TE_PARTNERS_ALL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TE_TEXTS = "
* TE_TEXTS_ALL = "
* TE_RETURN = "Notifications
IMPORTING Parameters details for ETP_IF_GET_TASKS_FOR_USER
USER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_PARTNER-PARNROptional: No
Call by Reference: No ( called with pass by value option)
FUNC - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_PARTNER-FUNC_PAROptional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_OPEN_TASKS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_CONSFIELDS-PUBLISHOptional: Yes
Call by Reference: No ( called with pass by value option)
FROMDATE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_TASKS-DATE_STARTOptional: Yes
Call by Reference: No ( called with pass by value option)
TODATE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_TASKS-DATE_ENDOptional: Yes
Call by Reference: No ( called with pass by value option)
STORAGE_LAYER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_CONSFIELDS-PUBLISHDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DEBUG -
Data type: ETP_TASKS-PUBLISHOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ETP_IF_GET_TASKS_FOR_USER
TE_TASKS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_TASK_IFOptional: Yes
Call by Reference: No ( called with pass by value option)
TE_ALL_TASKS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_TASK_IFOptional: Yes
Call by Reference: No ( called with pass by value option)
TE_PARTNERS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_PARTNEROptional: Yes
Call by Reference: No ( called with pass by value option)
TE_PARTNERS_ALL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ETP_PARTNEROptional: Yes
Call by Reference: No ( called with pass by value option)
TE_TEXTS -
Data type: ETP_TEXT_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
TE_TEXTS_ALL -
Data type: ETP_TEXT_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
TE_RETURN - Notifications
Data type: BAPIRETURN1Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ETP_IF_GET_TASKS_FOR_USER 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_user | TYPE ETP_PARTNER-PARNR, " | |||
| lt_te_tasks | TYPE STANDARD TABLE OF ETP_TASK_IF, " | |||
| lv_func | TYPE ETP_PARTNER-FUNC_PAR, " | |||
| lt_te_all_tasks | TYPE STANDARD TABLE OF ETP_TASK_IF, " | |||
| lt_te_partners | TYPE STANDARD TABLE OF ETP_PARTNER, " | |||
| lv_only_open_tasks | TYPE ETP_CONSFIELDS-PUBLISH, " | |||
| lv_fromdate | TYPE ETP_TASKS-DATE_START, " | |||
| lt_te_partners_all | TYPE STANDARD TABLE OF ETP_PARTNER, " | |||
| lv_todate | TYPE ETP_TASKS-DATE_END, " | |||
| lt_te_texts | TYPE STANDARD TABLE OF ETP_TEXT_EXT, " | |||
| lt_te_texts_all | TYPE STANDARD TABLE OF ETP_TEXT_EXT, " | |||
| lv_storage_layer | TYPE ETP_CONSFIELDS-PUBLISH, " 'S' | |||
| lv_debug | TYPE ETP_TASKS-PUBLISH, " | |||
| lt_te_return | TYPE STANDARD TABLE OF BAPIRETURN1. " |
|   CALL FUNCTION 'ETP_IF_GET_TASKS_FOR_USER' "NOTRANSL: EasyTaskPlanning: Tasks für bestimmten Benutzer selektieren |
| EXPORTING | ||
| USER | = lv_user | |
| FUNC | = lv_func | |
| ONLY_OPEN_TASKS | = lv_only_open_tasks | |
| FROMDATE | = lv_fromdate | |
| TODATE | = lv_todate | |
| STORAGE_LAYER | = lv_storage_layer | |
| DEBUG | = lv_debug | |
| TABLES | ||
| TE_TASKS | = lt_te_tasks | |
| TE_ALL_TASKS | = lt_te_all_tasks | |
| TE_PARTNERS | = lt_te_partners | |
| TE_PARTNERS_ALL | = lt_te_partners_all | |
| TE_TEXTS | = lt_te_texts | |
| TE_TEXTS_ALL | = lt_te_texts_all | |
| TE_RETURN | = lt_te_return | |
| . " ETP_IF_GET_TASKS_FOR_USER | ||
ABAP code using 7.40 inline data declarations to call FM ETP_IF_GET_TASKS_FOR_USER
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 PARNR FROM ETP_PARTNER INTO @DATA(ld_user). | ||||
| "SELECT single FUNC_PAR FROM ETP_PARTNER INTO @DATA(ld_func). | ||||
| "SELECT single PUBLISH FROM ETP_CONSFIELDS INTO @DATA(ld_only_open_tasks). | ||||
| "SELECT single DATE_START FROM ETP_TASKS INTO @DATA(ld_fromdate). | ||||
| "SELECT single DATE_END FROM ETP_TASKS INTO @DATA(ld_todate). | ||||
| "SELECT single PUBLISH FROM ETP_CONSFIELDS INTO @DATA(ld_storage_layer). | ||||
| DATA(ld_storage_layer) | = 'S'. | |||
| "SELECT single PUBLISH FROM ETP_TASKS INTO @DATA(ld_debug). | ||||
Search for further information about these or an SAP related objects