SAP HRWPC_RFC_GET_OBJECTS Function Module for
HRWPC_RFC_GET_OBJECTS is a standard hrwpc rfc get objects 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 get objects FM, simply by entering the name HRWPC_RFC_GET_OBJECTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRWPC_TO_REMOTE
Program Name: SAPLHRWPC_TO_REMOTE
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function HRWPC_RFC_GET_OBJECTS 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_GET_OBJECTS'".
EXPORTING
* USER = SY-UNAME "
VIEWID = "
* LANGU = SY-LANGU "
* PLVAR = "
* BEGDA = SY-DATUM "
* ENDDA = SY-DATUM "
* CACHEVALID = -1 "
IMPORTING
CACHEDATE = "
CACHETIME = "
SHOWASTREE = "
TABLES
RESULT_OBJECT = "
* RESULT_STRUC = "
EXCEPTIONS
NO_OBJECTS_FOUND = 1 NO_ROOTS_FOUND = 2 NO_ACTIVE_PLVAR_FOUND = 3 VIEW_NOT_FOUND = 4
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_SAPLHRWPC_TO_REMOTE_001
EXIT_SAPLHRWPC_TO_REMOTE_002
IMPORTING Parameters details for HRWPC_RFC_GET_OBJECTS
USER -
Data type: SY-UNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
VIEWID -
Data type: TWPC_V-VIEWIDOptional: No
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
PLVAR -
Data type: OBJEC-PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
BEGDA -
Data type: OBJEC-BEGDADefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENDDA -
Data type: OBJEC-ENDDADefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
CACHEVALID -
Data type: HRWPC_TO_STRUC-CACHEVALIDDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRWPC_RFC_GET_OBJECTS
CACHEDATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
CACHETIME -
Data type: SY-UZEITOptional: No
Call by Reference: No ( called with pass by value option)
SHOWASTREE -
Data type: TWPC_V-SHOWASTREEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HRWPC_RFC_GET_OBJECTS
RESULT_OBJECT -
Data type: HRWPC_S_KEYOBJECOptional: No
Call by Reference: No ( called with pass by value option)
RESULT_STRUC -
Data type: HRWPC_S_KEYSTRUCOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_OBJECTS_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ROOTS_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ACTIVE_PLVAR_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VIEW_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRWPC_RFC_GET_OBJECTS 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 SY-UNAME, " SY-UNAME | |||
| lv_cachedate | TYPE SY-DATUM, " | |||
| lt_result_object | TYPE STANDARD TABLE OF HRWPC_S_KEYOBJEC, " | |||
| lv_no_objects_found | TYPE HRWPC_S_KEYOBJEC, " | |||
| lv_viewid | TYPE TWPC_V-VIEWID, " | |||
| lv_cachetime | TYPE SY-UZEIT, " | |||
| lt_result_struc | TYPE STANDARD TABLE OF HRWPC_S_KEYSTRUC, " | |||
| lv_no_roots_found | TYPE HRWPC_S_KEYSTRUC, " | |||
| lv_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_showastree | TYPE TWPC_V-SHOWASTREE, " | |||
| lv_no_active_plvar_found | TYPE TWPC_V, " | |||
| lv_plvar | TYPE OBJEC-PLVAR, " | |||
| lv_view_not_found | TYPE OBJEC, " | |||
| lv_begda | TYPE OBJEC-BEGDA, " SY-DATUM | |||
| lv_endda | TYPE OBJEC-ENDDA, " SY-DATUM | |||
| lv_cachevalid | TYPE HRWPC_TO_STRUC-CACHEVALID. " -1 |
|   CALL FUNCTION 'HRWPC_RFC_GET_OBJECTS' " |
| EXPORTING | ||
| USER | = lv_user | |
| VIEWID | = lv_viewid | |
| LANGU | = lv_langu | |
| PLVAR | = lv_plvar | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| CACHEVALID | = lv_cachevalid | |
| IMPORTING | ||
| CACHEDATE | = lv_cachedate | |
| CACHETIME | = lv_cachetime | |
| SHOWASTREE | = lv_showastree | |
| TABLES | ||
| RESULT_OBJECT | = lt_result_object | |
| RESULT_STRUC | = lt_result_struc | |
| EXCEPTIONS | ||
| NO_OBJECTS_FOUND = 1 | ||
| NO_ROOTS_FOUND = 2 | ||
| NO_ACTIVE_PLVAR_FOUND = 3 | ||
| VIEW_NOT_FOUND = 4 | ||
| . " HRWPC_RFC_GET_OBJECTS | ||
ABAP code using 7.40 inline data declarations to call FM HRWPC_RFC_GET_OBJECTS
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 UNAME FROM SY INTO @DATA(ld_user). | ||||
| DATA(ld_user) | = SY-UNAME. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_cachedate). | ||||
| "SELECT single VIEWID FROM TWPC_V INTO @DATA(ld_viewid). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_cachetime). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
| DATA(ld_langu) | = SY-LANGU. | |||
| "SELECT single SHOWASTREE FROM TWPC_V INTO @DATA(ld_showastree). | ||||
| "SELECT single PLVAR FROM OBJEC INTO @DATA(ld_plvar). | ||||
| "SELECT single BEGDA FROM OBJEC INTO @DATA(ld_begda). | ||||
| DATA(ld_begda) | = SY-DATUM. | |||
| "SELECT single ENDDA FROM OBJEC INTO @DATA(ld_endda). | ||||
| DATA(ld_endda) | = SY-DATUM. | |||
| "SELECT single CACHEVALID FROM HRWPC_TO_STRUC INTO @DATA(ld_cachevalid). | ||||
| DATA(ld_cachevalid) | = -1. | |||
Search for further information about these or an SAP related objects