SAP THMHR_READ_HR_GIVEN_DATE_RFHA Function Module for Select Non-Dissolved HRs for Given RFHA and Date









THMHR_READ_HR_GIVEN_DATE_RFHA is a standard thmhr read hr given date rfha SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select Non-Dissolved HRs for Given RFHA and Date 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 thmhr read hr given date rfha FM, simply by entering the name THMHR_READ_HR_GIVEN_DATE_RFHA into the relevant SAP transaction such as SE37 or SE38.

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



Function THMHR_READ_HR_GIVEN_DATE_RFHA 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 'THMHR_READ_HR_GIVEN_DATE_RFHA'"Select Non-Dissolved HRs for Given RFHA and Date
EXPORTING
I_RFHA = "Financial transaction
I_BUKRS = "Company code
* EXCL_DISS_AND_SETTLE = 'X' "Checkbox
* IM_TAB_HR = "FTR: Table for Transferring HRs to Transact. Mgmt
* IM_FLG_NO_DB_READ = "Checkbox
* IM_VAL_AREA = "Valuation Area
* IM_EXCLUDE_ROLLOVER_AFTER = "
* IM_KEY_DATE = "Key Date

IMPORTING
HR_TAB = "FTR: Table for Transferring HRs to Transact. Mgmt
EX_TAB_HR_OBS = "FTR: Table for Transferring HRs to Transact. Mgmt

EXCEPTIONS
BUKRS_MISSING = 1 RFHA_MISSING = 2
.



IMPORTING Parameters details for THMHR_READ_HR_GIVEN_DATE_RFHA

I_RFHA - Financial transaction

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

I_BUKRS - Company code

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

EXCL_DISS_AND_SETTLE - Checkbox

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

IM_TAB_HR - FTR: Table for Transferring HRs to Transact. Mgmt

Data type: VTS_TAB_HRT
Optional: Yes
Call by Reference: Yes

IM_FLG_NO_DB_READ - Checkbox

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

IM_VAL_AREA - Valuation Area

Data type: TPM_VAL_AREA
Optional: Yes
Call by Reference: Yes

IM_EXCLUDE_ROLLOVER_AFTER -

Data type: TPM_TRIL_DATE
Optional: Yes
Call by Reference: Yes

IM_KEY_DATE - Key Date

Data type: THM_HR_DATE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for THMHR_READ_HR_GIVEN_DATE_RFHA

HR_TAB - FTR: Table for Transferring HRs to Transact. Mgmt

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

EX_TAB_HR_OBS - FTR: Table for Transferring HRs to Transact. Mgmt

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

EXCEPTIONS details

BUKRS_MISSING -

Data type:
Optional: No
Call by Reference: Yes

RFHA_MISSING -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for THMHR_READ_HR_GIVEN_DATE_RFHA 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_hr_tab  TYPE VTS_TAB_HRT, "   
lv_i_rfha  TYPE TB_RFHA, "   
lv_bukrs_missing  TYPE TB_RFHA, "   
lv_i_bukrs  TYPE BUKRS, "   
lv_rfha_missing  TYPE BUKRS, "   
lv_ex_tab_hr_obs  TYPE VTS_TAB_HRT, "   
lv_excl_diss_and_settle  TYPE XFELD, "   'X'
lv_im_tab_hr  TYPE VTS_TAB_HRT, "   
lv_im_flg_no_db_read  TYPE XFELD, "   
lv_im_val_area  TYPE TPM_VAL_AREA, "   
lv_im_exclude_rollover_after  TYPE TPM_TRIL_DATE, "   
lv_im_key_date  TYPE THM_HR_DATE. "   

  CALL FUNCTION 'THMHR_READ_HR_GIVEN_DATE_RFHA'  "Select Non-Dissolved HRs for Given RFHA and Date
    EXPORTING
         I_RFHA = lv_i_rfha
         I_BUKRS = lv_i_bukrs
         EXCL_DISS_AND_SETTLE = lv_excl_diss_and_settle
         IM_TAB_HR = lv_im_tab_hr
         IM_FLG_NO_DB_READ = lv_im_flg_no_db_read
         IM_VAL_AREA = lv_im_val_area
         IM_EXCLUDE_ROLLOVER_AFTER = lv_im_exclude_rollover_after
         IM_KEY_DATE = lv_im_key_date
    IMPORTING
         HR_TAB = lv_hr_tab
         EX_TAB_HR_OBS = lv_ex_tab_hr_obs
    EXCEPTIONS
        BUKRS_MISSING = 1
        RFHA_MISSING = 2
. " THMHR_READ_HR_GIVEN_DATE_RFHA




ABAP code using 7.40 inline data declarations to call FM THMHR_READ_HR_GIVEN_DATE_RFHA

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_excl_diss_and_settle) = '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!