SAP HRWPC_RFC_OADP_GET_OBJECTS Function Module for









HRWPC_RFC_OADP_GET_OBJECTS is a standard hrwpc rfc oadp 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 oadp get objects FM, simply by entering the name HRWPC_RFC_OADP_GET_OBJECTS into the relevant SAP transaction such as SE37 or SE38.

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



Function HRWPC_RFC_OADP_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_OADP_GET_OBJECTS'"
EXPORTING
OBJSEL = "
BEGDA = "
ENDDA = "
* USER = SY-UNAME "
* CACHEMAXAGE = -1 "

IMPORTING
READDATE = "
READTIME = "

TABLES
* T_PARAMVALUES = "
T_OBJECTS = "
* T_OBJECTSTRUCTURE = "

EXCEPTIONS
OBJSEL_NOT_FOUND = 1 OBJECTSELECTION_INVALID = 2
.



IMPORTING Parameters details for HRWPC_RFC_OADP_GET_OBJECTS

OBJSEL -

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

BEGDA -

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

ENDDA -

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

USER -

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

CACHEMAXAGE -

Data type: HRWPC_TO_STRUC-CACHEVALID
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HRWPC_RFC_OADP_GET_OBJECTS

READDATE -

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

READTIME -

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

TABLES Parameters details for HRWPC_RFC_OADP_GET_OBJECTS

T_PARAMVALUES -

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

T_OBJECTS -

Data type: HRWPC_S_KEYOBJEC
Optional: No
Call by Reference: Yes

T_OBJECTSTRUCTURE -

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

EXCEPTIONS details

OBJSEL_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

OBJECTSELECTION_INVALID -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRWPC_RFC_OADP_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_objsel  TYPE HRWPC_OBJSEL, "   
lv_readdate  TYPE SY-DATUM, "   
lt_t_paramvalues  TYPE STANDARD TABLE OF HRWPC_S_OADP_PARAMVALUE, "   
lv_objsel_not_found  TYPE HRWPC_S_OADP_PARAMVALUE, "   
lv_begda  TYPE BEGDA, "   
lv_readtime  TYPE SY-UZEIT, "   
lt_t_objects  TYPE STANDARD TABLE OF HRWPC_S_KEYOBJEC, "   
lv_objectselection_invalid  TYPE HRWPC_S_KEYOBJEC, "   
lv_endda  TYPE ENDDA, "   
lt_t_objectstructure  TYPE STANDARD TABLE OF HRWPC_S_KEYSTRUC, "   
lv_user  TYPE SY-UNAME, "   SY-UNAME
lv_cachemaxage  TYPE HRWPC_TO_STRUC-CACHEVALID. "   -1

  CALL FUNCTION 'HRWPC_RFC_OADP_GET_OBJECTS'  "
    EXPORTING
         OBJSEL = lv_objsel
         BEGDA = lv_begda
         ENDDA = lv_endda
         USER = lv_user
         CACHEMAXAGE = lv_cachemaxage
    IMPORTING
         READDATE = lv_readdate
         READTIME = lv_readtime
    TABLES
         T_PARAMVALUES = lt_t_paramvalues
         T_OBJECTS = lt_t_objects
         T_OBJECTSTRUCTURE = lt_t_objectstructure
    EXCEPTIONS
        OBJSEL_NOT_FOUND = 1
        OBJECTSELECTION_INVALID = 2
. " HRWPC_RFC_OADP_GET_OBJECTS




ABAP code using 7.40 inline data declarations to call FM HRWPC_RFC_OADP_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 DATUM FROM SY INTO @DATA(ld_readdate).
 
 
 
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_readtime).
 
 
 
 
 
"SELECT single UNAME FROM SY INTO @DATA(ld_user).
DATA(ld_user) = SY-UNAME.
 
"SELECT single CACHEVALID FROM HRWPC_TO_STRUC INTO @DATA(ld_cachemaxage).
DATA(ld_cachemaxage) = -1.
 


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!