SAP RH_OBJECT_IDOCDATA_CREATE Function Module for









RH_OBJECT_IDOCDATA_CREATE is a standard rh object idocdata create 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 object idocdata create FM, simply by entering the name RH_OBJECT_IDOCDATA_CREATE 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_OBJECT_IDOCDATA_CREATE 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_OBJECT_IDOCDATA_CREATE'"
EXPORTING
* MODE = 'U' "Operator: I(nsert), U(pdate), D(elete)
* PROOF = 'X' "Check data (for transferring old data)
* BEGDA = LOW_DATE "Start date
* ENDDA = HIGH_DATE "End date
* MESSAGE_TYPE = 'HRMD_A' "Message Type
* SKIP_NON_ORIG_RELAT = ' ' "

TABLES
T_HROBJINFTY = "Specified objects
* T_INFTY_SUBTY = "Infotypes/subtypes for operator I
* OUT_HRPLOGI = "Structure HRPLOGI
* OUT_HROBJORIG = "
* OUT_HROBJINFTY = "Structure HROBJINFTY
OUT_HROBJSDATA = "Structure HROBJSDATA
* OUT_PNNNNSDATA = "
* ERROR_MESSAGE = "Table with error messages
.




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_OBJECT_IDOCDATA_CREATE

MODE - Operator: I(nsert), U(pdate), D(elete)

Data type: HRDBTAB-OPERA
Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROOF - Check data (for transferring old data)

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

BEGDA - Start date

Data type: OBJEC-BEGDA
Default: LOW_DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENDDA - End date

Data type: OBJEC-ENDDA
Default: HIGH_DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE_TYPE - Message Type

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

SKIP_NON_ORIG_RELAT -

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

TABLES Parameters details for RH_OBJECT_IDOCDATA_CREATE

T_HROBJINFTY - Specified objects

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

T_INFTY_SUBTY - Infotypes/subtypes for operator I

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

OUT_HRPLOGI - Structure HRPLOGI

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

OUT_HROBJORIG -

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

OUT_HROBJINFTY - Structure HROBJINFTY

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

OUT_HROBJSDATA - Structure HROBJSDATA

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

OUT_PNNNNSDATA -

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

ERROR_MESSAGE - Table with error messages

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

Copy and paste ABAP code example for RH_OBJECT_IDOCDATA_CREATE 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_mode  TYPE HRDBTAB-OPERA, "   'U'
lt_t_hrobjinfty  TYPE STANDARD TABLE OF HROBJINFTY, "   
lv_proof  TYPE HRPP0C-TEST, "   'X'
lt_t_infty_subty  TYPE STANDARD TABLE OF T788U, "   
lv_begda  TYPE OBJEC-BEGDA, "   LOW_DATE
lt_out_hrplogi  TYPE STANDARD TABLE OF HRPLOGI, "   
lv_endda  TYPE OBJEC-ENDDA, "   HIGH_DATE
lt_out_hrobjorig  TYPE STANDARD TABLE OF HROBJORIG, "   
lv_message_type  TYPE EDI_MESTYP, "   'HRMD_A'
lt_out_hrobjinfty  TYPE STANDARD TABLE OF HROBJINFTY, "   
lt_out_hrobjsdata  TYPE STANDARD TABLE OF HROBJSDATA, "   
lv_skip_non_orig_relat  TYPE FLAG, "   ' '
lt_out_pnnnnsdata  TYPE STANDARD TABLE OF HROBJSDATA, "   
lt_error_message  TYPE STANDARD TABLE OF HRALE_ERR. "   

  CALL FUNCTION 'RH_OBJECT_IDOCDATA_CREATE'  "
    EXPORTING
         MODE = lv_mode
         PROOF = lv_proof
         BEGDA = lv_begda
         ENDDA = lv_endda
         MESSAGE_TYPE = lv_message_type
         SKIP_NON_ORIG_RELAT = lv_skip_non_orig_relat
    TABLES
         T_HROBJINFTY = lt_t_hrobjinfty
         T_INFTY_SUBTY = lt_t_infty_subty
         OUT_HRPLOGI = lt_out_hrplogi
         OUT_HROBJORIG = lt_out_hrobjorig
         OUT_HROBJINFTY = lt_out_hrobjinfty
         OUT_HROBJSDATA = lt_out_hrobjsdata
         OUT_PNNNNSDATA = lt_out_pnnnnsdata
         ERROR_MESSAGE = lt_error_message
. " RH_OBJECT_IDOCDATA_CREATE




ABAP code using 7.40 inline data declarations to call FM RH_OBJECT_IDOCDATA_CREATE

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 OPERA FROM HRDBTAB INTO @DATA(ld_mode).
DATA(ld_mode) = 'U'.
 
 
"SELECT single TEST FROM HRPP0C INTO @DATA(ld_proof).
DATA(ld_proof) = 'X'.
 
 
"SELECT single BEGDA FROM OBJEC INTO @DATA(ld_begda).
DATA(ld_begda) = LOW_DATE.
 
 
"SELECT single ENDDA FROM OBJEC INTO @DATA(ld_endda).
DATA(ld_endda) = HIGH_DATE.
 
 
DATA(ld_message_type) = 'HRMD_A'.
 
 
 
DATA(ld_skip_non_orig_relat) = ' '.
 
 
 


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!