SAP HR_EFI_READ_T50BS Function Module for Read the constants table T50Bs
HR_EFI_READ_T50BS is a standard hr efi read t50bs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read the constants table T50Bs 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 hr efi read t50bs FM, simply by entering the name HR_EFI_READ_T50BS into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR_GB_EF_OUTG
Program Name: SAPLHR_GB_EF_OUTG
Main Program: SAPLHR_GB_EF_OUTG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_EFI_READ_T50BS 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 'HR_EFI_READ_T50BS'"Read the constants table T50Bs.
EXPORTING
I_MOLGA = "Country Grouping
I_SAGRP = "Area
I_DOCTY = "HR-B2A: Document Class
I_BEGDA = "Start date of data selection period
I_ENDDA = "Start date of data selection period
I_KONST = "HR-B2A: Constant
IMPORTING
E_KWERT = "HR-B2A: Constant Value
EXCEPTIONS
NOT_FOUND_T50BS = 1
IMPORTING Parameters details for HR_EFI_READ_T50BS
I_MOLGA - Country Grouping
Data type: PB2AMGR-MOLGAOptional: No
Call by Reference: Yes
I_SAGRP - Area
Data type: PB2AMGR-SAGRPOptional: No
Call by Reference: Yes
I_DOCTY - HR-B2A: Document Class
Data type: PB2AMGR-DOCTYOptional: No
Call by Reference: Yes
I_BEGDA - Start date of data selection period
Data type: QPPNP-BEGDAOptional: No
Call by Reference: Yes
I_ENDDA - Start date of data selection period
Data type: QPPNP-BEGDAOptional: No
Call by Reference: Yes
I_KONST - HR-B2A: Constant
Data type: T50BS-KONSTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for HR_EFI_READ_T50BS
E_KWERT - HR-B2A: Constant Value
Data type: T50BS-KWERTOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND_T50BS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_EFI_READ_T50BS 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_e_kwert | TYPE T50BS-KWERT, " | |||
| lv_i_molga | TYPE PB2AMGR-MOLGA, " | |||
| lv_not_found_t50bs | TYPE PB2AMGR, " | |||
| lv_i_sagrp | TYPE PB2AMGR-SAGRP, " | |||
| lv_i_docty | TYPE PB2AMGR-DOCTY, " | |||
| lv_i_begda | TYPE QPPNP-BEGDA, " | |||
| lv_i_endda | TYPE QPPNP-BEGDA, " | |||
| lv_i_konst | TYPE T50BS-KONST. " |
|   CALL FUNCTION 'HR_EFI_READ_T50BS' "Read the constants table T50Bs |
| EXPORTING | ||
| I_MOLGA | = lv_i_molga | |
| I_SAGRP | = lv_i_sagrp | |
| I_DOCTY | = lv_i_docty | |
| I_BEGDA | = lv_i_begda | |
| I_ENDDA | = lv_i_endda | |
| I_KONST | = lv_i_konst | |
| IMPORTING | ||
| E_KWERT | = lv_e_kwert | |
| EXCEPTIONS | ||
| NOT_FOUND_T50BS = 1 | ||
| . " HR_EFI_READ_T50BS | ||
ABAP code using 7.40 inline data declarations to call FM HR_EFI_READ_T50BS
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 KWERT FROM T50BS INTO @DATA(ld_e_kwert). | ||||
| "SELECT single MOLGA FROM PB2AMGR INTO @DATA(ld_i_molga). | ||||
| "SELECT single SAGRP FROM PB2AMGR INTO @DATA(ld_i_sagrp). | ||||
| "SELECT single DOCTY FROM PB2AMGR INTO @DATA(ld_i_docty). | ||||
| "SELECT single BEGDA FROM QPPNP INTO @DATA(ld_i_begda). | ||||
| "SELECT single BEGDA FROM QPPNP INTO @DATA(ld_i_endda). | ||||
| "SELECT single KONST FROM T50BS INTO @DATA(ld_i_konst). | ||||
Search for further information about these or an SAP related objects