SAP HR_READ_CLUSTER_YJ Function Module for Function Module for CATT to access Payroll Cluster YJ
HR_READ_CLUSTER_YJ is a standard hr read cluster yj SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Function Module for CATT to access Payroll Cluster YJ 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 read cluster yj FM, simply by entering the name HR_READ_CLUSTER_YJ into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRJT
Program Name: SAPLHRJT
Main Program: SAPLHRJT
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_READ_CLUSTER_YJ 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_READ_CLUSTER_YJ'"Function Module for CATT to access Payroll Cluster YJ.
EXPORTING
PERSNR = "Personnel number
* TABLE_KEY_5 = "
* TABLE_KEY_6 = "
* TABLE_KEY_7 = "
* TABLE_KEY_8 = "
* TABLE_KEY_9 = "
* TABLE_KEY_10 = "
* TABLE_KEY_11 = "
* TABLE_KEY_12 = "
FIELD = "Field name to get value
PERIOD_YEAR = "Period year
PERIOD_MONTH = "Period month
* CLTYPE = '' "Cluster type
* TABLE_NAME = 'RT' "
* TABLE_KEY_1 = "
* TABLE_KEY_2 = "
* TABLE_KEY_3 = "
* TABLE_KEY_4 = "
IMPORTING
VALUE = "Value of component specified in FIELD
EXCEPTIONS
ENTRY_NOT_FOUND = 1 TABLE_NOT_FOUND = 2 INPUT_NOT_VALID = 3 INPUT_NOT_COMPLETE = 4
IMPORTING Parameters details for HR_READ_CLUSTER_YJ
PERSNR - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: No ( called with pass by value option)
TABLE_KEY_5 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_6 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_7 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_8 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_9 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_10 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_11 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_12 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
FIELD - Field name to get value
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PERIOD_YEAR - Period year
Data type: T549Q-PABRJOptional: No
Call by Reference: No ( called with pass by value option)
PERIOD_MONTH - Period month
Data type: T549Q-PABRPOptional: No
Call by Reference: No ( called with pass by value option)
CLTYPE - Cluster type
Data type: CDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_NAME -
Data type:Default: 'RT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_1 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_2 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_3 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_KEY_4 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_READ_CLUSTER_YJ
VALUE - Value of component specified in FIELD
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ENTRY_NOT_FOUND - No entry was found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_FOUND - Does not support for the selected table name
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_NOT_VALID - Inconsistent input combination
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_NOT_COMPLETE - Import item data is incomplete
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_READ_CLUSTER_YJ 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_value | TYPE STRING, " | |||
| lv_persnr | TYPE PERNR-PERNR, " | |||
| lv_entry_not_found | TYPE PERNR, " | |||
| lv_table_key_5 | TYPE PERNR, " | |||
| lv_table_key_6 | TYPE PERNR, " | |||
| lv_table_key_7 | TYPE PERNR, " | |||
| lv_table_key_8 | TYPE PERNR, " | |||
| lv_table_key_9 | TYPE PERNR, " | |||
| lv_table_key_10 | TYPE PERNR, " | |||
| lv_table_key_11 | TYPE PERNR, " | |||
| lv_table_key_12 | TYPE PERNR, " | |||
| lv_field | TYPE PERNR, " | |||
| lv_period_year | TYPE T549Q-PABRJ, " | |||
| lv_table_not_found | TYPE T549Q, " | |||
| lv_period_month | TYPE T549Q-PABRP, " | |||
| lv_input_not_valid | TYPE T549Q, " | |||
| lv_cltype | TYPE C, " '' | |||
| lv_input_not_complete | TYPE C, " | |||
| lv_table_name | TYPE C, " 'RT' | |||
| lv_table_key_1 | TYPE C, " | |||
| lv_table_key_2 | TYPE C, " | |||
| lv_table_key_3 | TYPE C, " | |||
| lv_table_key_4 | TYPE C. " |
|   CALL FUNCTION 'HR_READ_CLUSTER_YJ' "Function Module for CATT to access Payroll Cluster YJ |
| EXPORTING | ||
| PERSNR | = lv_persnr | |
| TABLE_KEY_5 | = lv_table_key_5 | |
| TABLE_KEY_6 | = lv_table_key_6 | |
| TABLE_KEY_7 | = lv_table_key_7 | |
| TABLE_KEY_8 | = lv_table_key_8 | |
| TABLE_KEY_9 | = lv_table_key_9 | |
| TABLE_KEY_10 | = lv_table_key_10 | |
| TABLE_KEY_11 | = lv_table_key_11 | |
| TABLE_KEY_12 | = lv_table_key_12 | |
| FIELD | = lv_field | |
| PERIOD_YEAR | = lv_period_year | |
| PERIOD_MONTH | = lv_period_month | |
| CLTYPE | = lv_cltype | |
| TABLE_NAME | = lv_table_name | |
| TABLE_KEY_1 | = lv_table_key_1 | |
| TABLE_KEY_2 | = lv_table_key_2 | |
| TABLE_KEY_3 | = lv_table_key_3 | |
| TABLE_KEY_4 | = lv_table_key_4 | |
| IMPORTING | ||
| VALUE | = lv_value | |
| EXCEPTIONS | ||
| ENTRY_NOT_FOUND = 1 | ||
| TABLE_NOT_FOUND = 2 | ||
| INPUT_NOT_VALID = 3 | ||
| INPUT_NOT_COMPLETE = 4 | ||
| . " HR_READ_CLUSTER_YJ | ||
ABAP code using 7.40 inline data declarations to call FM HR_READ_CLUSTER_YJ
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 PERNR FROM PERNR INTO @DATA(ld_persnr). | ||||
| "SELECT single PABRJ FROM T549Q INTO @DATA(ld_period_year). | ||||
| "SELECT single PABRP FROM T549Q INTO @DATA(ld_period_month). | ||||
| DATA(ld_cltype) | = ''. | |||
| DATA(ld_table_name) | = 'RT'. | |||
Search for further information about these or an SAP related objects