SAP HRWPC_RFC_EP_READ_AWARDS2 Function Module for









HRWPC_RFC_EP_READ_AWARDS2 is a standard hrwpc rfc ep read awards2 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 hrwpc rfc ep read awards2 FM, simply by entering the name HRWPC_RFC_EP_READ_AWARDS2 into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRWPC_EMPLOYEEPROFILE_45FF
Program Name: SAPLHRWPC_EMPLOYEEPROFILE_45FF
Main Program: SAPLHRWPC_EMPLOYEEPROFILE_45FF
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HRWPC_RFC_EP_READ_AWARDS2 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 'HRWPC_RFC_EP_READ_AWARDS2'"
EXPORTING
PERNR = "
* DATUM = SY-DATUM "
YEARS_PAST = "
YEARS_FUTURE = "

IMPORTING
EVALUATION_PERIOD = "
SHOW_DECIMALS = "

TABLES
AWARDS = "

EXCEPTIONS
NOT_SUPPORTED = 1 NOTHING_FOUND = 2 NO_AUTHORIZATION = 3 INTERNAL_ERROR = 4
.



IMPORTING Parameters details for HRWPC_RFC_EP_READ_AWARDS2

PERNR -

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

DATUM -

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

YEARS_PAST -

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

YEARS_FUTURE -

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

EXPORTING Parameters details for HRWPC_RFC_EP_READ_AWARDS2

EVALUATION_PERIOD -

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

SHOW_DECIMALS -

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

TABLES Parameters details for HRWPC_RFC_EP_READ_AWARDS2

AWARDS -

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

EXCEPTIONS details

NOT_SUPPORTED -

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

NOTHING_FOUND -

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

NO_AUTHORIZATION -

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

INTERNAL_ERROR -

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

Copy and paste ABAP code example for HRWPC_RFC_EP_READ_AWARDS2 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_pernr  TYPE PSKEY-PERNR, "   
lt_awards  TYPE STANDARD TABLE OF HRWPC_S_EP_AWARDS2, "   
lv_not_supported  TYPE HRWPC_S_EP_AWARDS2, "   
lv_evaluation_period  TYPE HRWPC_S_EP_PERIOD, "   
lv_datum  TYPE PSKEY-BEGDA, "   SY-DATUM
lv_nothing_found  TYPE PSKEY, "   
lv_show_decimals  TYPE XFELD, "   
lv_years_past  TYPE HRWPC_S_EP_DDIC-DELTA_YEAR, "   
lv_no_authorization  TYPE HRWPC_S_EP_DDIC, "   
lv_years_future  TYPE HRWPC_S_EP_DDIC-DELTA_YEAR, "   
lv_internal_error  TYPE HRWPC_S_EP_DDIC. "   

  CALL FUNCTION 'HRWPC_RFC_EP_READ_AWARDS2'  "
    EXPORTING
         PERNR = lv_pernr
         DATUM = lv_datum
         YEARS_PAST = lv_years_past
         YEARS_FUTURE = lv_years_future
    IMPORTING
         EVALUATION_PERIOD = lv_evaluation_period
         SHOW_DECIMALS = lv_show_decimals
    TABLES
         AWARDS = lt_awards
    EXCEPTIONS
        NOT_SUPPORTED = 1
        NOTHING_FOUND = 2
        NO_AUTHORIZATION = 3
        INTERNAL_ERROR = 4
. " HRWPC_RFC_EP_READ_AWARDS2




ABAP code using 7.40 inline data declarations to call FM HRWPC_RFC_EP_READ_AWARDS2

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 PERNR FROM PSKEY INTO @DATA(ld_pernr).
 
 
 
 
"SELECT single BEGDA FROM PSKEY INTO @DATA(ld_datum).
DATA(ld_datum) = SY-DATUM.
 
 
 
"SELECT single DELTA_YEAR FROM HRWPC_S_EP_DDIC INTO @DATA(ld_years_past).
 
 
"SELECT single DELTA_YEAR FROM HRWPC_S_EP_DDIC INTO @DATA(ld_years_future).
 
 


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!