SAP HRIQ_OBJECTS_CHECK_BEFORE_DEL Function Module for Check Links Before Deletion









HRIQ_OBJECTS_CHECK_BEFORE_DEL is a standard hriq objects check before del SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Links Before Deletion 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 objects check before del FM, simply by entering the name HRIQ_OBJECTS_CHECK_BEFORE_DEL into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPIQ00TOOL1
Program Name: SAPLHRPIQ00TOOL1
Main Program: SAPLHRPIQ00TOOL1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRIQ_OBJECTS_CHECK_BEFORE_DEL 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_OBJECTS_CHECK_BEFORE_DEL'"Check Links Before Deletion
EXPORTING
IS_OBJECT = "Object
* CHECK_DATE = '19000101' "

IMPORTING
EV_DELETE_NOT_ALLOWED = "

EXCEPTIONS
PLVAR_NOT_FOUND = 1 NO_OBJID = 2 WRONG_OBJECTTYPE = 3 INTERNAL_ERROR = 4
.



IMPORTING Parameters details for HRIQ_OBJECTS_CHECK_BEFORE_DEL

IS_OBJECT - Object

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

CHECK_DATE -

Data type: SY-DATUM
Default: '19000101'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for HRIQ_OBJECTS_CHECK_BEFORE_DEL

EV_DELETE_NOT_ALLOWED -

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

EXCEPTIONS details

PLVAR_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_OBJID -

Data type:
Optional: No
Call by Reference: Yes

WRONG_OBJECTTYPE - Wrong object category

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR - Internal Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRIQ_OBJECTS_CHECK_BEFORE_DEL 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_is_object  TYPE HROBJECT, "   
lv_plvar_not_found  TYPE HROBJECT, "   
lv_ev_delete_not_allowed  TYPE XFELD, "   
lv_no_objid  TYPE XFELD, "   
lv_check_date  TYPE SY-DATUM, "   '19000101'
lv_wrong_objecttype  TYPE SY, "   
lv_internal_error  TYPE SY. "   

  CALL FUNCTION 'HRIQ_OBJECTS_CHECK_BEFORE_DEL'  "Check Links Before Deletion
    EXPORTING
         IS_OBJECT = lv_is_object
         CHECK_DATE = lv_check_date
    IMPORTING
         EV_DELETE_NOT_ALLOWED = lv_ev_delete_not_allowed
    EXCEPTIONS
        PLVAR_NOT_FOUND = 1
        NO_OBJID = 2
        WRONG_OBJECTTYPE = 3
        INTERNAL_ERROR = 4
. " HRIQ_OBJECTS_CHECK_BEFORE_DEL




ABAP code using 7.40 inline data declarations to call FM HRIQ_OBJECTS_CHECK_BEFORE_DEL

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_check_date).
DATA(ld_check_date) = '19000101'.
 
 
 


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!