SAP HRIQ_AUDMASS_REFRESH_EXECUTE Function Module for Audits: Refresh Audit Functionality
HRIQ_AUDMASS_REFRESH_EXECUTE is a standard hriq audmass refresh execute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Audits: Refresh Audit Functionality 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 audmass refresh execute FM, simply by entering the name HRIQ_AUDMASS_REFRESH_EXECUTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00AUDIT_MASSPROC
Program Name: SAPLHRPIQ00AUDIT_MASSPROC
Main Program: SAPLHRPIQ00AUDIT_MASSPROC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRIQ_AUDMASS_REFRESH_EXECUTE 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_AUDMASS_REFRESH_EXECUTE'"Audits: Refresh Audit Functionality.
EXPORTING
IV_AUDTYPE = "Audit Type
* IV_STOBJID = "Student Object ID
IV_CSOBJID = "Object ID of Study Object (CS)
IV_AUDRTYPE = "Execution Mode for Audit Runs
IV_AUDFTYPE = "Requirement Profile Type
* IV_TESTRUN = 'X' "Switch to Simulation Mode for Write BAPIs
IMPORTING
EV_ROLLBACK_NEEDED = "Rollback is Required
EV_PROC_STATUS = "Mass Processing: Object Processing Result
EV_ALLOVERRESULT = "Success Indicator for a Requirement
TABLES
* ET_RETURN = "Return Parameters
IMPORTING Parameters details for HRIQ_AUDMASS_REFRESH_EXECUTE
IV_AUDTYPE - Audit Type
Data type: PIQAUDTYPEOptional: No
Call by Reference: No ( called with pass by value option)
IV_STOBJID - Student Object ID
Data type: PIQSTUDENTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CSOBJID - Object ID of Study Object (CS)
Data type: PIQCSOBJIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_AUDRTYPE - Execution Mode for Audit Runs
Data type: PIQAUDR_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
IV_AUDFTYPE - Requirement Profile Type
Data type: PIQAUDF_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
IV_TESTRUN - Switch to Simulation Mode for Write BAPIs
Data type: TESTRUNDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRIQ_AUDMASS_REFRESH_EXECUTE
EV_ROLLBACK_NEEDED - Rollback is Required
Data type: PIQFLAGOptional: No
Call by Reference: No ( called with pass by value option)
EV_PROC_STATUS - Mass Processing: Object Processing Result
Data type: PIQMP_STAT_OBJ_PROC_RESULTOptional: No
Call by Reference: No ( called with pass by value option)
EV_ALLOVERRESULT - Success Indicator for a Requirement
Data type: PIQREQRESOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HRIQ_AUDMASS_REFRESH_EXECUTE
ET_RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRIQ_AUDMASS_REFRESH_EXECUTE 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: | ||||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_iv_audtype | TYPE PIQAUDTYPE, " | |||
| lv_ev_rollback_needed | TYPE PIQFLAG, " | |||
| lv_iv_stobjid | TYPE PIQSTUDENT, " | |||
| lv_ev_proc_status | TYPE PIQMP_STAT_OBJ_PROC_RESULT, " | |||
| lv_iv_csobjid | TYPE PIQCSOBJID, " | |||
| lv_ev_alloverresult | TYPE PIQREQRES, " | |||
| lv_iv_audrtype | TYPE PIQAUDR_TYPE, " | |||
| lv_iv_audftype | TYPE PIQAUDF_TYPE, " | |||
| lv_iv_testrun | TYPE TESTRUN. " 'X' |
|   CALL FUNCTION 'HRIQ_AUDMASS_REFRESH_EXECUTE' "Audits: Refresh Audit Functionality |
| EXPORTING | ||
| IV_AUDTYPE | = lv_iv_audtype | |
| IV_STOBJID | = lv_iv_stobjid | |
| IV_CSOBJID | = lv_iv_csobjid | |
| IV_AUDRTYPE | = lv_iv_audrtype | |
| IV_AUDFTYPE | = lv_iv_audftype | |
| IV_TESTRUN | = lv_iv_testrun | |
| IMPORTING | ||
| EV_ROLLBACK_NEEDED | = lv_ev_rollback_needed | |
| EV_PROC_STATUS | = lv_ev_proc_status | |
| EV_ALLOVERRESULT | = lv_ev_alloverresult | |
| TABLES | ||
| ET_RETURN | = lt_et_return | |
| . " HRIQ_AUDMASS_REFRESH_EXECUTE | ||
ABAP code using 7.40 inline data declarations to call FM HRIQ_AUDMASS_REFRESH_EXECUTE
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.| DATA(ld_iv_testrun) | = 'X'. | |||
Search for further information about these or an SAP related objects