SAP EWP_ACTORS_GET Function Module for INTERNAL: Agent Determination









EWP_ACTORS_GET is a standard ewp actors get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: Agent Determination 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 ewp actors get FM, simply by entering the name EWP_ACTORS_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: EWP1
Program Name: SAPLEWP1
Main Program: SAPLEWP1
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function EWP_ACTORS_GET 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 'EWP_ACTORS_GET'"INTERNAL: Agent Determination
EXPORTING
X_TASK = "Task
* X_USERS_ONLY = "
* X_LANGU = SY-LANGU "Language for Texts
* X_SEARCH_DATE = SY-DATUM "Date

TABLES
XT_CONT = "
YT_ACTORS = "
* YT_OBJECT_DATA = "
* YT_ADDRESS = "
* YT_ERROR_TAB = "
* YT_ADRESS_EXT = "

EXCEPTIONS
NO_ACTIVE_PLVAR = 1 INVALID_PARAMETERS = 2 NO_ACTOR_FOUND = 3 EXCEPTION_OF_ROLE_RAISED = 4 NO_VALID_AGENT_DETERMINED = 5 INTERNAL_ERROR = 6
.



IMPORTING Parameters details for EWP_ACTORS_GET

X_TASK - Task

Data type: RHOBJECTS-OBJECT
Optional: No
Call by Reference: No ( called with pass by value option)

X_USERS_ONLY -

Data type: EWXGEN-KENNZX
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_LANGU - Language for Texts

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_SEARCH_DATE - Date

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for EWP_ACTORS_GET

XT_CONT -

Data type: SWCONT
Optional: No
Call by Reference: No ( called with pass by value option)

YT_ACTORS -

Data type: SWHACTOR
Optional: No
Call by Reference: No ( called with pass by value option)

YT_OBJECT_DATA -

Data type: OBJEC
Optional: Yes
Call by Reference: No ( called with pass by value option)

YT_ADDRESS -

Data type: P1028
Optional: Yes
Call by Reference: No ( called with pass by value option)

YT_ERROR_TAB -

Data type: SWHACTOR
Optional: Yes
Call by Reference: No ( called with pass by value option)

YT_ADRESS_EXT -

Data type: ISU_P1028_EXT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_ACTIVE_PLVAR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_PARAMETERS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_ACTOR_FOUND - No agents found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTION_OF_ROLE_RAISED - Role resolution error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_VALID_AGENT_DETERMINED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR - Internal Error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EWP_ACTORS_GET 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_x_task  TYPE RHOBJECTS-OBJECT, "   
lt_xt_cont  TYPE STANDARD TABLE OF SWCONT, "   
lv_no_active_plvar  TYPE SWCONT, "   
lt_yt_actors  TYPE STANDARD TABLE OF SWHACTOR, "   
lv_x_users_only  TYPE EWXGEN-KENNZX, "   
lv_invalid_parameters  TYPE EWXGEN, "   
lv_x_langu  TYPE SY-LANGU, "   SY-LANGU
lv_no_actor_found  TYPE SY, "   
lt_yt_object_data  TYPE STANDARD TABLE OF OBJEC, "   
lt_yt_address  TYPE STANDARD TABLE OF P1028, "   
lv_x_search_date  TYPE SY-DATUM, "   SY-DATUM
lv_exception_of_role_raised  TYPE SY, "   
lt_yt_error_tab  TYPE STANDARD TABLE OF SWHACTOR, "   
lv_no_valid_agent_determined  TYPE SWHACTOR, "   
lt_yt_adress_ext  TYPE STANDARD TABLE OF ISU_P1028_EXT, "   
lv_internal_error  TYPE ISU_P1028_EXT. "   

  CALL FUNCTION 'EWP_ACTORS_GET'  "INTERNAL: Agent Determination
    EXPORTING
         X_TASK = lv_x_task
         X_USERS_ONLY = lv_x_users_only
         X_LANGU = lv_x_langu
         X_SEARCH_DATE = lv_x_search_date
    TABLES
         XT_CONT = lt_xt_cont
         YT_ACTORS = lt_yt_actors
         YT_OBJECT_DATA = lt_yt_object_data
         YT_ADDRESS = lt_yt_address
         YT_ERROR_TAB = lt_yt_error_tab
         YT_ADRESS_EXT = lt_yt_adress_ext
    EXCEPTIONS
        NO_ACTIVE_PLVAR = 1
        INVALID_PARAMETERS = 2
        NO_ACTOR_FOUND = 3
        EXCEPTION_OF_ROLE_RAISED = 4
        NO_VALID_AGENT_DETERMINED = 5
        INTERNAL_ERROR = 6
. " EWP_ACTORS_GET




ABAP code using 7.40 inline data declarations to call FM EWP_ACTORS_GET

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 OBJECT FROM RHOBJECTS INTO @DATA(ld_x_task).
 
 
 
 
"SELECT single KENNZX FROM EWXGEN INTO @DATA(ld_x_users_only).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_x_langu).
DATA(ld_x_langu) = SY-LANGU.
 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_x_search_date).
DATA(ld_x_search_date) = SY-DATUM.
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!