SAP HRWPC_OADP_CHECK_SRCHOBJCACHE Function Module for
HRWPC_OADP_CHECK_SRCHOBJCACHE is a standard hrwpc oadp check srchobjcache 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 oadp check srchobjcache FM, simply by entering the name HRWPC_OADP_CHECK_SRCHOBJCACHE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRWPC_OADP_CACHE
Program Name: SAPLHRWPC_OADP_CACHE
Main Program: SAPLHRWPC_OADP_CACHE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRWPC_OADP_CHECK_SRCHOBJCACHE 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_OADP_CHECK_SRCHOBJCACHE'".
EXPORTING
* USER = SY-UNAME "
* KEYDATE = SY-DATUM "
* CACHEMAXAGE = 0 "
OBJSEL = "
* PLVAR = "
BEGDA = "
ENDDA = "
* LANGU = SY-LANGU "
* XADVANCEDSEARCH = ' ' "
IMPORTING
XCACHEVALID = "
CACHEDATE = "
CACHETIME = "
TABLES
T_PARAMVALUES = "
T_SEARCHVALUES = "
IMPORTING Parameters details for HRWPC_OADP_CHECK_SRCHOBJCACHE
USER -
Data type: SY-UNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: Yes
KEYDATE -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
CACHEMAXAGE -
Data type: HRWPC_TO_STRUC-CACHEVALIDOptional: Yes
Call by Reference: Yes
OBJSEL -
Data type: HRWPC_OBJSELOptional: No
Call by Reference: Yes
PLVAR -
Data type: PLVAROptional: Yes
Call by Reference: Yes
BEGDA -
Data type: BEGDAOptional: No
Call by Reference: Yes
ENDDA -
Data type: ENDDAOptional: No
Call by Reference: Yes
LANGU -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
XADVANCEDSEARCH -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HRWPC_OADP_CHECK_SRCHOBJCACHE
XCACHEVALID -
Data type: BOOLE_DOptional: No
Call by Reference: Yes
CACHEDATE -
Data type: SY-DATUMOptional: No
Call by Reference: Yes
CACHETIME -
Data type: SY-UZEITOptional: No
Call by Reference: Yes
TABLES Parameters details for HRWPC_OADP_CHECK_SRCHOBJCACHE
T_PARAMVALUES -
Data type: HRWPC_S_OADP_PARAMVALUEOptional: No
Call by Reference: Yes
T_SEARCHVALUES -
Data type: HRWPC_S_OADP_SEARCHVALUEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRWPC_OADP_CHECK_SRCHOBJCACHE 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_xcachevalid | TYPE BOOLE_D, " | |||
| lt_t_paramvalues | TYPE STANDARD TABLE OF HRWPC_S_OADP_PARAMVALUE, " | |||
| lv_keydate | TYPE SY-DATUM, " SY-DATUM | |||
| lv_cachedate | TYPE SY-DATUM, " | |||
| lt_t_searchvalues | TYPE STANDARD TABLE OF HRWPC_S_OADP_SEARCHVALUE, " | |||
| lv_cachetime | TYPE SY-UZEIT, " | |||
| lv_cachemaxage | TYPE HRWPC_TO_STRUC-CACHEVALID, " 0 | |||
| lv_objsel | TYPE HRWPC_OBJSEL, " | |||
| lv_plvar | TYPE PLVAR, " | |||
| lv_begda | TYPE BEGDA, " | |||
| lv_endda | TYPE ENDDA, " | |||
| lv_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_xadvancedsearch | TYPE BOOLE_D. " SPACE |
|   CALL FUNCTION 'HRWPC_OADP_CHECK_SRCHOBJCACHE' " |
| EXPORTING | ||
| USER | = lv_user | |
| KEYDATE | = lv_keydate | |
| CACHEMAXAGE | = lv_cachemaxage | |
| OBJSEL | = lv_objsel | |
| PLVAR | = lv_plvar | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| LANGU | = lv_langu | |
| XADVANCEDSEARCH | = lv_xadvancedsearch | |
| IMPORTING | ||
| XCACHEVALID | = lv_xcachevalid | |
| CACHEDATE | = lv_cachedate | |
| CACHETIME | = lv_cachetime | |
| TABLES | ||
| T_PARAMVALUES | = lt_t_paramvalues | |
| T_SEARCHVALUES | = lt_t_searchvalues | |
| . " HRWPC_OADP_CHECK_SRCHOBJCACHE | ||
ABAP code using 7.40 inline data declarations to call FM HRWPC_OADP_CHECK_SRCHOBJCACHE
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_keydate). | ||||
| DATA(ld_keydate) | = SY-DATUM. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_cachedate). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_cachetime). | ||||
| "SELECT single CACHEVALID FROM HRWPC_TO_STRUC INTO @DATA(ld_cachemaxage). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
| DATA(ld_langu) | = SY-LANGU. | |||
| DATA(ld_xadvancedsearch) | = ' '. | |||
Search for further information about these or an SAP related objects