SAP HRIQ_FACWLREP_BASEOBJECTS_GET Function Module for Get Faculty Workload-Based Objects
HRIQ_FACWLREP_BASEOBJECTS_GET is a standard hriq facwlrep baseobjects get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Faculty Workload-Based Objects processing and below is the pattern details for this FM, 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 hriq facwlrep baseobjects get FM, simply by entering the name HRIQ_FACWLREP_BASEOBJECTS_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00FACULTY_WORKLOAD
Program Name: SAPLHRPIQ00FACULTY_WORKLOAD
Main Program: SAPLHRPIQ00FACULTY_WORKLOAD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRIQ_FACWLREP_BASEOBJECTS_GET 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 'HRIQ_FACWLREP_BASEOBJECTS_GET'"Get Faculty Workload-Based Objects.
EXPORTING
* IV_BEGDA = "Beginndatum
* IV_ENDDA = "Endedatum
IT_HROBJECT = "List of faculties (object type P/H only )
* IT_YEAR_PERIOD = "Tabel of Academic year and sessions
IMPORTING
ET_WLBASEOBJ = "Worload Objects
ET_WLWFIN = "Teaching Workload Data for Weighting Factor Determ. (Import)
ET_TWLDATA = "Table Type for Faculty Member Workload Assignment Data
EXCEPTIONS
OTYPE_NOT_SUPPORTED = 1 NO_DATA_FOUND = 2 E_WEGID_NOT_FOUND = 3 E_UNKNOWN_ERROR = 4 DATES_PERIODS_MISSING = 5
IMPORTING Parameters details for HRIQ_FACWLREP_BASEOBJECTS_GET
IV_BEGDA - Beginndatum
Data type: BEGDATUMOptional: Yes
Call by Reference: Yes
IV_ENDDA - Endedatum
Data type: ENDDATUMOptional: Yes
Call by Reference: Yes
IT_HROBJECT - List of faculties (object type P/H only )
Data type: HROBJECT_TOptional: No
Call by Reference: Yes
IT_YEAR_PERIOD - Tabel of Academic year and sessions
Data type: PIQ_ACADEMICYEAR_SESSION_TOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HRIQ_FACWLREP_BASEOBJECTS_GET
ET_WLBASEOBJ - Worload Objects
Data type: PIQTWLBASEOBJ_TOptional: No
Call by Reference: Yes
ET_WLWFIN - Teaching Workload Data for Weighting Factor Determ. (Import)
Data type: PIQWLWFIN_TOptional: No
Call by Reference: Yes
ET_TWLDATA - Table Type for Faculty Member Workload Assignment Data
Data type: PIQRFC_TWLASGNMTDATA_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
OTYPE_NOT_SUPPORTED - Object type not supported
Data type:Optional: No
Call by Reference: Yes
NO_DATA_FOUND - No data found
Data type:Optional: No
Call by Reference: Yes
E_WEGID_NOT_FOUND - Evaluation path not found
Data type:Optional: No
Call by Reference: Yes
E_UNKNOWN_ERROR - Technical error
Data type:Optional: No
Call by Reference: Yes
DATES_PERIODS_MISSING - Dates missing, (Provide begda and endda or year and sessions.
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRIQ_FACWLREP_BASEOBJECTS_GET 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_iv_begda | TYPE BEGDATUM, " | |||
| lv_et_wlbaseobj | TYPE PIQTWLBASEOBJ_T, " | |||
| lv_otype_not_supported | TYPE PIQTWLBASEOBJ_T, " | |||
| lv_iv_endda | TYPE ENDDATUM, " | |||
| lv_et_wlwfin | TYPE PIQWLWFIN_T, " | |||
| lv_no_data_found | TYPE PIQWLWFIN_T, " | |||
| lv_et_twldata | TYPE PIQRFC_TWLASGNMTDATA_T, " | |||
| lv_it_hrobject | TYPE HROBJECT_T, " | |||
| lv_e_wegid_not_found | TYPE HROBJECT_T, " | |||
| lv_it_year_period | TYPE PIQ_ACADEMICYEAR_SESSION_T, " | |||
| lv_e_unknown_error | TYPE PIQ_ACADEMICYEAR_SESSION_T, " | |||
| lv_dates_periods_missing | TYPE PIQ_ACADEMICYEAR_SESSION_T. " |
|   CALL FUNCTION 'HRIQ_FACWLREP_BASEOBJECTS_GET' "Get Faculty Workload-Based Objects |
| EXPORTING | ||
| IV_BEGDA | = lv_iv_begda | |
| IV_ENDDA | = lv_iv_endda | |
| IT_HROBJECT | = lv_it_hrobject | |
| IT_YEAR_PERIOD | = lv_it_year_period | |
| IMPORTING | ||
| ET_WLBASEOBJ | = lv_et_wlbaseobj | |
| ET_WLWFIN | = lv_et_wlwfin | |
| ET_TWLDATA | = lv_et_twldata | |
| EXCEPTIONS | ||
| OTYPE_NOT_SUPPORTED = 1 | ||
| NO_DATA_FOUND = 2 | ||
| E_WEGID_NOT_FOUND = 3 | ||
| E_UNKNOWN_ERROR = 4 | ||
| DATES_PERIODS_MISSING = 5 | ||
| . " HRIQ_FACWLREP_BASEOBJECTS_GET | ||
ABAP code using 7.40 inline data declarations to call FM HRIQ_FACWLREP_BASEOBJECTS_GET
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.Search for further information about these or an SAP related objects