SAP RH_CHECK_OBJECT_FOR_INBOUND Function Module for









RH_CHECK_OBJECT_FOR_INBOUND is a standard rh check object for inbound 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 rh check object for inbound FM, simply by entering the name RH_CHECK_OBJECT_FOR_INBOUND into the relevant SAP transaction such as SE37 or SE38.

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



Function RH_CHECK_OBJECT_FOR_INBOUND 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_CHECK_OBJECT_FOR_INBOUND'"
EXPORTING
* CLIENT = SY-MANDT "
PLVAR = "Plan Version
OTYPE = "Object Type
OBJID = "Object ID
* CHECK_ORIGINAL = 'X' "
* CHECK_TRANSPORT_LOCK = 'X' "
* CHECK_ENQUEUE = 'X' "
* CHECK_PCR = 'X' "

EXCEPTIONS
OBJECT_IS_ENQUEUED = 1 OBJECT_LOCKED_FOR_TRANSPORT = 2 OBJECT_IS_ORIGINAL = 3 OBJECT_IS_NOT_EXISTING = 4 OBJECT_IS_NOT_REGISTERED = 5 PAYROLL_AREA_LOCKED = 6
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLRHA0_001 HR-CA: ALE Outbound Processing With Receiver Determination Enhancement
EXIT_SAPLRHA0_002 HR-CA: Export Parameters of ALE Inbound Processing IDOC_INPUT_HRMD
EXIT_SAPLRHA0_003 HR-CA: Import Parameters of ALE Inbound Processing IDOC_INPUT_HRMD
EXIT_SAPLRHA0_004 HR-CA: ALE Outbound Processing: Control Record
EXIT_SAPLRHA0_005 HR-CA: ALE Inbound Processing: Check Object
EXIT_SAPLRHA0_006 HR-CA: ALE Outbound Processing: Check Object

IMPORTING Parameters details for RH_CHECK_OBJECT_FOR_INBOUND

CLIENT -

Data type: SYMANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLVAR - Plan Version

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

OTYPE - Object Type

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

OBJID - Object ID

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

CHECK_ORIGINAL -

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

CHECK_TRANSPORT_LOCK -

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

CHECK_ENQUEUE -

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

CHECK_PCR -

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

EXCEPTIONS details

OBJECT_IS_ENQUEUED - Object is locked

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

OBJECT_LOCKED_FOR_TRANSPORT -

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

OBJECT_IS_ORIGINAL -

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

OBJECT_IS_NOT_EXISTING - Object Does Not Exist

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

OBJECT_IS_NOT_REGISTERED -

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

PAYROLL_AREA_LOCKED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RH_CHECK_OBJECT_FOR_INBOUND 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_client  TYPE SYMANDT, "   SY-MANDT
lv_object_is_enqueued  TYPE SYMANDT, "   
lv_plvar  TYPE PLVAR, "   
lv_object_locked_for_transport  TYPE PLVAR, "   
lv_otype  TYPE OTYPE, "   
lv_object_is_original  TYPE OTYPE, "   
lv_objid  TYPE HROBJID, "   
lv_object_is_not_existing  TYPE HROBJID, "   
lv_check_original  TYPE FLAG, "   'X'
lv_object_is_not_registered  TYPE FLAG, "   
lv_payroll_area_locked  TYPE FLAG, "   
lv_check_transport_lock  TYPE FLAG, "   'X'
lv_check_enqueue  TYPE FLAG, "   'X'
lv_check_pcr  TYPE FLAG. "   'X'

  CALL FUNCTION 'RH_CHECK_OBJECT_FOR_INBOUND'  "
    EXPORTING
         CLIENT = lv_client
         PLVAR = lv_plvar
         OTYPE = lv_otype
         OBJID = lv_objid
         CHECK_ORIGINAL = lv_check_original
         CHECK_TRANSPORT_LOCK = lv_check_transport_lock
         CHECK_ENQUEUE = lv_check_enqueue
         CHECK_PCR = lv_check_pcr
    EXCEPTIONS
        OBJECT_IS_ENQUEUED = 1
        OBJECT_LOCKED_FOR_TRANSPORT = 2
        OBJECT_IS_ORIGINAL = 3
        OBJECT_IS_NOT_EXISTING = 4
        OBJECT_IS_NOT_REGISTERED = 5
        PAYROLL_AREA_LOCKED = 6
. " RH_CHECK_OBJECT_FOR_INBOUND




ABAP code using 7.40 inline data declarations to call FM RH_CHECK_OBJECT_FOR_INBOUND

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_client) = SY-MANDT.
 
 
 
 
 
 
 
 
DATA(ld_check_original) = 'X'.
 
 
 
DATA(ld_check_transport_lock) = 'X'.
 
DATA(ld_check_enqueue) = 'X'.
 
DATA(ld_check_pcr) = 'X'.
 


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!