SAP EWP_ACTOR_DATA_GET Function Module for INTERNAL: Provides Data of Agent









EWP_ACTOR_DATA_GET is a standard ewp actor data 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: Provides Data of Agent 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 actor data get FM, simply by entering the name EWP_ACTOR_DATA_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function EWP_ACTOR_DATA_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_ACTOR_DATA_GET'"INTERNAL: Provides Data of Agent
EXPORTING
X_ACTOR = "
* X_LANGU = SY-LANGU "
* X_SEARCH_DATE = SY-DATUM "
* X_PLVAR = "
* X_ACTUAL = "

IMPORTING
Y_SHORT = "
Y_STEXT = "
Y_OBJECT_DATA = "
Y_ADDRESS = "

EXCEPTIONS
NOT_FOUND = 1 NO_ACTIVE_PLVAR = 2
.



IMPORTING Parameters details for EWP_ACTOR_DATA_GET

X_ACTOR -

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

X_LANGU -

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

X_SEARCH_DATE -

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

X_PLVAR -

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

X_ACTUAL -

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

EXPORTING Parameters details for EWP_ACTOR_DATA_GET

Y_SHORT -

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

Y_STEXT -

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

Y_OBJECT_DATA -

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

Y_ADDRESS -

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

EXCEPTIONS details

NOT_FOUND -

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

NO_ACTIVE_PLVAR -

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

Copy and paste ABAP code example for EWP_ACTOR_DATA_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_actor  TYPE SWHACTOR, "   
lv_y_short  TYPE OBJEC-SHORT, "   
lv_not_found  TYPE OBJEC, "   
lv_x_langu  TYPE SY-LANGU, "   SY-LANGU
lv_y_stext  TYPE OBJEC-STEXT, "   
lv_no_active_plvar  TYPE OBJEC, "   
lv_x_search_date  TYPE SY-DATUM, "   SY-DATUM
lv_y_object_data  TYPE OBJEC, "   
lv_x_plvar  TYPE P1000-PLVAR, "   
lv_y_address  TYPE P1028, "   
lv_x_actual  TYPE EWXGEN-KENNZX. "   

  CALL FUNCTION 'EWP_ACTOR_DATA_GET'  "INTERNAL: Provides Data of Agent
    EXPORTING
         X_ACTOR = lv_x_actor
         X_LANGU = lv_x_langu
         X_SEARCH_DATE = lv_x_search_date
         X_PLVAR = lv_x_plvar
         X_ACTUAL = lv_x_actual
    IMPORTING
         Y_SHORT = lv_y_short
         Y_STEXT = lv_y_stext
         Y_OBJECT_DATA = lv_y_object_data
         Y_ADDRESS = lv_y_address
    EXCEPTIONS
        NOT_FOUND = 1
        NO_ACTIVE_PLVAR = 2
. " EWP_ACTOR_DATA_GET




ABAP code using 7.40 inline data declarations to call FM EWP_ACTOR_DATA_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 SHORT FROM OBJEC INTO @DATA(ld_y_short).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_x_langu).
DATA(ld_x_langu) = SY-LANGU.
 
"SELECT single STEXT FROM OBJEC INTO @DATA(ld_y_stext).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_x_search_date).
DATA(ld_x_search_date) = SY-DATUM.
 
 
"SELECT single PLVAR FROM P1000 INTO @DATA(ld_x_plvar).
 
 
"SELECT single KENNZX FROM EWXGEN INTO @DATA(ld_x_actual).
 


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!