SAP HRCA_READ_LINE_ITEM_TEXT Function Module for
HRCA_READ_LINE_ITEM_TEXT is a standard hrca read line item text 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 hrca read line item text FM, simply by entering the name HRCA_READ_LINE_ITEM_TEXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHCS
Program Name: SAPLRHCS
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function HRCA_READ_LINE_ITEM_TEXT 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 'HRCA_READ_LINE_ITEM_TEXT'".
EXPORTING
TEXT_KEY = "
* DOC_DATE = "
* PSTNG_DATE = "
* BLINE_DATE = "
* FIS_PERIOD = "
* FISC_YEAR = "
* REF_DOC_NO = "
* COMP_CODE = "
* LANGU = "
IMPORTING
ITEM_TEXT = "
RETURN = "
TABLES
RETURN_TABLE = "
IMPORTING Parameters details for HRCA_READ_LINE_ITEM_TEXT
TEXT_KEY -
Data type: ITEM_TEXT_BF-TEXT_KEYOptional: No
Call by Reference: No ( called with pass by value option)
DOC_DATE -
Data type: ITEM_TEXT_BF-DOC_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
PSTNG_DATE -
Data type: ITEM_TEXT_BF-PSTNG_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
BLINE_DATE -
Data type: ITEM_TEXT_BF-BLINE_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
FIS_PERIOD -
Data type: ITEM_TEXT_BF-FIS_PERIODOptional: Yes
Call by Reference: No ( called with pass by value option)
FISC_YEAR -
Data type: ITEM_TEXT_BF-FISC_YEAROptional: Yes
Call by Reference: No ( called with pass by value option)
REF_DOC_NO -
Data type: ITEM_TEXT_BF-REF_DOC_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
COMP_CODE -
Data type: ITEM_TEXT_BF-COMP_CODEOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: ITEM_TEXT_BF-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRCA_READ_LINE_ITEM_TEXT
ITEM_TEXT -
Data type: ITEM_TEXT_BF-ITEM_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
RETURN -
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HRCA_READ_LINE_ITEM_TEXT
RETURN_TABLE -
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRCA_READ_LINE_ITEM_TEXT 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_text_key | TYPE ITEM_TEXT_BF-TEXT_KEY, " | |||
| lv_item_text | TYPE ITEM_TEXT_BF-ITEM_TEXT, " | |||
| lt_return_table | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_return | TYPE BAPIRETURN1, " | |||
| lv_doc_date | TYPE ITEM_TEXT_BF-DOC_DATE, " | |||
| lv_pstng_date | TYPE ITEM_TEXT_BF-PSTNG_DATE, " | |||
| lv_bline_date | TYPE ITEM_TEXT_BF-BLINE_DATE, " | |||
| lv_fis_period | TYPE ITEM_TEXT_BF-FIS_PERIOD, " | |||
| lv_fisc_year | TYPE ITEM_TEXT_BF-FISC_YEAR, " | |||
| lv_ref_doc_no | TYPE ITEM_TEXT_BF-REF_DOC_NO, " | |||
| lv_comp_code | TYPE ITEM_TEXT_BF-COMP_CODE, " | |||
| lv_langu | TYPE ITEM_TEXT_BF-LANGU. " |
|   CALL FUNCTION 'HRCA_READ_LINE_ITEM_TEXT' " |
| EXPORTING | ||
| TEXT_KEY | = lv_text_key | |
| DOC_DATE | = lv_doc_date | |
| PSTNG_DATE | = lv_pstng_date | |
| BLINE_DATE | = lv_bline_date | |
| FIS_PERIOD | = lv_fis_period | |
| FISC_YEAR | = lv_fisc_year | |
| REF_DOC_NO | = lv_ref_doc_no | |
| COMP_CODE | = lv_comp_code | |
| LANGU | = lv_langu | |
| IMPORTING | ||
| ITEM_TEXT | = lv_item_text | |
| RETURN | = lv_return | |
| TABLES | ||
| RETURN_TABLE | = lt_return_table | |
| . " HRCA_READ_LINE_ITEM_TEXT | ||
ABAP code using 7.40 inline data declarations to call FM HRCA_READ_LINE_ITEM_TEXT
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 TEXT_KEY FROM ITEM_TEXT_BF INTO @DATA(ld_text_key). | ||||
| "SELECT single ITEM_TEXT FROM ITEM_TEXT_BF INTO @DATA(ld_item_text). | ||||
| "SELECT single DOC_DATE FROM ITEM_TEXT_BF INTO @DATA(ld_doc_date). | ||||
| "SELECT single PSTNG_DATE FROM ITEM_TEXT_BF INTO @DATA(ld_pstng_date). | ||||
| "SELECT single BLINE_DATE FROM ITEM_TEXT_BF INTO @DATA(ld_bline_date). | ||||
| "SELECT single FIS_PERIOD FROM ITEM_TEXT_BF INTO @DATA(ld_fis_period). | ||||
| "SELECT single FISC_YEAR FROM ITEM_TEXT_BF INTO @DATA(ld_fisc_year). | ||||
| "SELECT single REF_DOC_NO FROM ITEM_TEXT_BF INTO @DATA(ld_ref_doc_no). | ||||
| "SELECT single COMP_CODE FROM ITEM_TEXT_BF INTO @DATA(ld_comp_code). | ||||
| "SELECT single LANGU FROM ITEM_TEXT_BF INTO @DATA(ld_langu). | ||||
Search for further information about these or an SAP related objects