SAP HRWPC_RFC_OADP_EXEC_OBJSEARCH Function Module for









HRWPC_RFC_OADP_EXEC_OBJSEARCH is a standard hrwpc rfc oadp exec objsearch 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 exec objsearch FM, simply by entering the name HRWPC_RFC_OADP_EXEC_OBJSEARCH 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_EXEC_OBJSEARCH 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_EXEC_OBJSEARCH'"
EXPORTING
OBJSEL = "
* XADVANCEDSEARCH = ' ' "
BEGDA = "
ENDDA = "
* USER = SY-UNAME "
* LANGU = SY-LANGU "
* CACHEMAXAGE = -1 "
* HITPACKAGESIZE = 0 "
* HITPACKAGESTARTINDEX = 1 "

IMPORTING
TOTALHITS = "
READDATE = "
READTIME = "

TABLES
* T_PARAMVALUES = "
T_SEARCHVALUES = "
T_SEARCHOBJECTS = "

EXCEPTIONS
OBJSEL_NOT_FOUND = 1 OBJECTSELECTION_INVALID = 2
.



IMPORTING Parameters details for HRWPC_RFC_OADP_EXEC_OBJSEARCH

OBJSEL -

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

XADVANCEDSEARCH -

Data type: BOOLE_D
Default: SPACE
Optional: Yes
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)

LANGU -

Data type: SY-LANGU
Default: SY-LANGU
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)

HITPACKAGESIZE -

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

HITPACKAGESTARTINDEX -

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

EXPORTING Parameters details for HRWPC_RFC_OADP_EXEC_OBJSEARCH

TOTALHITS -

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

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_EXEC_OBJSEARCH

T_PARAMVALUES -

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

T_SEARCHVALUES -

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

T_SEARCHOBJECTS -

Data type: HRWPC_S_KEYOBJEC
Optional: No
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_EXEC_OBJSEARCH 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_totalhits  TYPE SY-INDEX, "   
lt_t_paramvalues  TYPE STANDARD TABLE OF HRWPC_S_OADP_PARAMVALUE, "   
lv_objsel_not_found  TYPE HRWPC_S_OADP_PARAMVALUE, "   
lv_readdate  TYPE SY-DATUM, "   
lt_t_searchvalues  TYPE STANDARD TABLE OF HRWPC_S_OADP_SEARCHVALUE, "   
lv_xadvancedsearch  TYPE BOOLE_D, "   SPACE
lv_objectselection_invalid  TYPE BOOLE_D, "   
lv_begda  TYPE BEGDA, "   
lv_readtime  TYPE SY-UZEIT, "   
lt_t_searchobjects  TYPE STANDARD TABLE OF HRWPC_S_KEYOBJEC, "   
lv_endda  TYPE ENDDA, "   
lv_user  TYPE SY-UNAME, "   SY-UNAME
lv_langu  TYPE SY-LANGU, "   SY-LANGU
lv_cachemaxage  TYPE HRWPC_TO_STRUC-CACHEVALID, "   -1
lv_hitpackagesize  TYPE SY-INDEX, "   0
lv_hitpackagestartindex  TYPE SY-INDEX. "   1

  CALL FUNCTION 'HRWPC_RFC_OADP_EXEC_OBJSEARCH'  "
    EXPORTING
         OBJSEL = lv_objsel
         XADVANCEDSEARCH = lv_xadvancedsearch
         BEGDA = lv_begda
         ENDDA = lv_endda
         USER = lv_user
         LANGU = lv_langu
         CACHEMAXAGE = lv_cachemaxage
         HITPACKAGESIZE = lv_hitpackagesize
         HITPACKAGESTARTINDEX = lv_hitpackagestartindex
    IMPORTING
         TOTALHITS = lv_totalhits
         READDATE = lv_readdate
         READTIME = lv_readtime
    TABLES
         T_PARAMVALUES = lt_t_paramvalues
         T_SEARCHVALUES = lt_t_searchvalues
         T_SEARCHOBJECTS = lt_t_searchobjects
    EXCEPTIONS
        OBJSEL_NOT_FOUND = 1
        OBJECTSELECTION_INVALID = 2
. " HRWPC_RFC_OADP_EXEC_OBJSEARCH




ABAP code using 7.40 inline data declarations to call FM HRWPC_RFC_OADP_EXEC_OBJSEARCH

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 INDEX FROM SY INTO @DATA(ld_totalhits).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_readdate).
 
 
DATA(ld_xadvancedsearch) = ' '.
 
 
 
"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 LANGU FROM SY INTO @DATA(ld_langu).
DATA(ld_langu) = SY-LANGU.
 
"SELECT single CACHEVALID FROM HRWPC_TO_STRUC INTO @DATA(ld_cachemaxage).
DATA(ld_cachemaxage) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_hitpackagesize).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_hitpackagestartindex).
DATA(ld_hitpackagestartindex) = 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!