SAP RH_DELETE_INFTY_GENERIC Function Module for Delete the Infotype Records of Particular Objects









RH_DELETE_INFTY_GENERIC is a standard rh delete infty generic SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delete the Infotype Records of Particular 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 rh delete infty generic FM, simply by entering the name RH_DELETE_INFTY_GENERIC into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHAP
Program Name: SAPLRHAP
Main Program: SAPLRHAP
Appliation area: H
Release date: 02-Sep-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RH_DELETE_INFTY_GENERIC 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 'RH_DELETE_INFTY_GENERIC'"Delete the Infotype Records of Particular Objects
EXPORTING
* PLVAR = "
VTASK = "
* ORDER_FLG = 'X' "
* COMMIT_FLG = 'X' "
* AUTHY = 'X' "
* KEEP_LUPD = "
* WORKF_ACTV = 'X' "
* OTYPE = "
* OBJID = "
INFTY = "
* SUBTY = "
* ISTAT = "
* SCLAS = "
* BEGDA = '19000101' "
* ENDDA = '99991231' "

TABLES
* DEL_OBJECTS = "

EXCEPTIONS
ERROR_DURING_DELETE = 1 NO_AUTHORIZATION = 2 DELETE_FIRST_RECORD = 3 CORR_EXIT = 4 INVALID_PARAMETERS = 5 NO_SELECTION = 6 INTERNAL_ERROR = 7
.



IMPORTING Parameters details for RH_DELETE_INFTY_GENERIC

PLVAR -

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

VTASK -

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

ORDER_FLG -

Data type: HRRHAP-ORDER_FLG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMMIT_FLG -

Data type: HRRHAP-COMMIT_FLG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUTHY -

Data type: HRRHAP-AUTHY
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KEEP_LUPD -

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

WORKF_ACTV -

Data type: HRRHAP-WORKF_ACTV
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OTYPE -

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

OBJID -

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

INFTY -

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

SUBTY -

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

ISTAT -

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

SCLAS -

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

BEGDA -

Data type: PLOG-BEGDA
Default: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENDDA -

Data type: PLOG-ENDDA
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RH_DELETE_INFTY_GENERIC

DEL_OBJECTS -

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

EXCEPTIONS details

ERROR_DURING_DELETE -

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

NO_AUTHORIZATION -

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

DELETE_FIRST_RECORD -

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

CORR_EXIT -

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

INVALID_PARAMETERS -

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

NO_SELECTION -

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

INTERNAL_ERROR -

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

Copy and paste ABAP code example for RH_DELETE_INFTY_GENERIC 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_plvar  TYPE PLOG-PLVAR, "   
lt_del_objects  TYPE STANDARD TABLE OF HROBJECT, "   
lv_error_during_delete  TYPE HROBJECT, "   
lv_vtask  TYPE HRRHAP-VTASK, "   
lv_order_flg  TYPE HRRHAP-ORDER_FLG, "   'X'
lv_commit_flg  TYPE HRRHAP-COMMIT_FLG, "   'X'
lv_authy  TYPE HRRHAP-AUTHY, "   'X'
lv_keep_lupd  TYPE HRRHAP-KEEP_LUPD, "   
lv_workf_actv  TYPE HRRHAP-WORKF_ACTV, "   'X'
lv_otype  TYPE PLOG-OTYPE, "   
lv_no_authorization  TYPE PLOG, "   
lv_objid  TYPE PLOG-OBJID, "   
lv_delete_first_record  TYPE PLOG, "   
lv_infty  TYPE PLOG-INFTY, "   
lv_corr_exit  TYPE PLOG, "   
lv_subty  TYPE PLOG-SUBTY, "   
lv_invalid_parameters  TYPE PLOG, "   
lv_istat  TYPE PLOG-ISTAT, "   
lv_no_selection  TYPE PLOG, "   
lv_sclas  TYPE PLOG-OTYPE, "   
lv_internal_error  TYPE PLOG, "   
lv_begda  TYPE PLOG-BEGDA, "   '19000101'
lv_endda  TYPE PLOG-ENDDA. "   '99991231'

  CALL FUNCTION 'RH_DELETE_INFTY_GENERIC'  "Delete the Infotype Records of Particular Objects
    EXPORTING
         PLVAR = lv_plvar
         VTASK = lv_vtask
         ORDER_FLG = lv_order_flg
         COMMIT_FLG = lv_commit_flg
         AUTHY = lv_authy
         KEEP_LUPD = lv_keep_lupd
         WORKF_ACTV = lv_workf_actv
         OTYPE = lv_otype
         OBJID = lv_objid
         INFTY = lv_infty
         SUBTY = lv_subty
         ISTAT = lv_istat
         SCLAS = lv_sclas
         BEGDA = lv_begda
         ENDDA = lv_endda
    TABLES
         DEL_OBJECTS = lt_del_objects
    EXCEPTIONS
        ERROR_DURING_DELETE = 1
        NO_AUTHORIZATION = 2
        DELETE_FIRST_RECORD = 3
        CORR_EXIT = 4
        INVALID_PARAMETERS = 5
        NO_SELECTION = 6
        INTERNAL_ERROR = 7
. " RH_DELETE_INFTY_GENERIC




ABAP code using 7.40 inline data declarations to call FM RH_DELETE_INFTY_GENERIC

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 PLVAR FROM PLOG INTO @DATA(ld_plvar).
 
 
 
"SELECT single VTASK FROM HRRHAP INTO @DATA(ld_vtask).
 
"SELECT single ORDER_FLG FROM HRRHAP INTO @DATA(ld_order_flg).
DATA(ld_order_flg) = 'X'.
 
"SELECT single COMMIT_FLG FROM HRRHAP INTO @DATA(ld_commit_flg).
DATA(ld_commit_flg) = 'X'.
 
"SELECT single AUTHY FROM HRRHAP INTO @DATA(ld_authy).
DATA(ld_authy) = 'X'.
 
"SELECT single KEEP_LUPD FROM HRRHAP INTO @DATA(ld_keep_lupd).
 
"SELECT single WORKF_ACTV FROM HRRHAP INTO @DATA(ld_workf_actv).
DATA(ld_workf_actv) = 'X'.
 
"SELECT single OTYPE FROM PLOG INTO @DATA(ld_otype).
 
 
"SELECT single OBJID FROM PLOG INTO @DATA(ld_objid).
 
 
"SELECT single INFTY FROM PLOG INTO @DATA(ld_infty).
 
 
"SELECT single SUBTY FROM PLOG INTO @DATA(ld_subty).
 
 
"SELECT single ISTAT FROM PLOG INTO @DATA(ld_istat).
 
 
"SELECT single OTYPE FROM PLOG INTO @DATA(ld_sclas).
 
 
"SELECT single BEGDA FROM PLOG INTO @DATA(ld_begda).
DATA(ld_begda) = '19000101'.
 
"SELECT single ENDDA FROM PLOG INTO @DATA(ld_endda).
DATA(ld_endda) = '99991231'.
 


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!