SAP RH_READ_ORG_DATA Function Module for









RH_READ_ORG_DATA is a standard rh read org data 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 read org data FM, simply by entering the name RH_READ_ORG_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function RH_READ_ORG_DATA 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_READ_ORG_DATA'"
EXPORTING
PDORG_IMP = "
* READ_FCALID = 'X' "

IMPORTING
PDORG_EXP = "
BEGDA_1039 = "
ENDDA_1039 = "

EXCEPTIONS
FCALID_INITIAL = 1 FCALID_INVALID = 2 GROUP_INITIAL = 3 GROUP_INVALID = 4 ORGEH_INVALID = 5 ORGEH_TYP_INVALID = 6 GROUP_NOT_CLEAR = 7 ORGEH_WRONG_INTERVAL = 8
.



IMPORTING Parameters details for RH_READ_ORG_DATA

PDORG_IMP -

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

READ_FCALID -

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

EXPORTING Parameters details for RH_READ_ORG_DATA

PDORG_EXP -

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

BEGDA_1039 -

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

ENDDA_1039 -

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

EXCEPTIONS details

FCALID_INITIAL -

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

FCALID_INVALID -

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

GROUP_INITIAL -

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

GROUP_INVALID -

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

ORGEH_INVALID -

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

ORGEH_TYP_INVALID -

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

GROUP_NOT_CLEAR -

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

ORGEH_WRONG_INTERVAL -

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

Copy and paste ABAP code example for RH_READ_ORG_DATA 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_pdorg_exp  TYPE PDORG, "   
lv_pdorg_imp  TYPE PDORG, "   
lv_fcalid_initial  TYPE PDORG, "   
lv_begda_1039  TYPE PDORG-BEGDA, "   
lv_read_fcalid  TYPE SCAL-INDICATOR, "   'X'
lv_fcalid_invalid  TYPE SCAL, "   
lv_endda_1039  TYPE PDORG-ENDDA, "   
lv_group_initial  TYPE PDORG, "   
lv_group_invalid  TYPE PDORG, "   
lv_orgeh_invalid  TYPE PDORG, "   
lv_orgeh_typ_invalid  TYPE PDORG, "   
lv_group_not_clear  TYPE PDORG, "   
lv_orgeh_wrong_interval  TYPE PDORG. "   

  CALL FUNCTION 'RH_READ_ORG_DATA'  "
    EXPORTING
         PDORG_IMP = lv_pdorg_imp
         READ_FCALID = lv_read_fcalid
    IMPORTING
         PDORG_EXP = lv_pdorg_exp
         BEGDA_1039 = lv_begda_1039
         ENDDA_1039 = lv_endda_1039
    EXCEPTIONS
        FCALID_INITIAL = 1
        FCALID_INVALID = 2
        GROUP_INITIAL = 3
        GROUP_INVALID = 4
        ORGEH_INVALID = 5
        ORGEH_TYP_INVALID = 6
        GROUP_NOT_CLEAR = 7
        ORGEH_WRONG_INTERVAL = 8
. " RH_READ_ORG_DATA




ABAP code using 7.40 inline data declarations to call FM RH_READ_ORG_DATA

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 BEGDA FROM PDORG INTO @DATA(ld_begda_1039).
 
"SELECT single INDICATOR FROM SCAL INTO @DATA(ld_read_fcalid).
DATA(ld_read_fcalid) = 'X'.
 
 
"SELECT single ENDDA FROM PDORG INTO @DATA(ld_endda_1039).
 
 
 
 
 
 
 


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!