SAP FI_TEXTS_DOC_ITEM Function Module for
FI_TEXTS_DOC_ITEM is a standard fi texts doc item 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 fi texts doc item FM, simply by entering the name FI_TEXTS_DOC_ITEM into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTXT
Program Name: SAPLFTXT
Main Program: SAPLFTXT
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FI_TEXTS_DOC_ITEM 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 'FI_TEXTS_DOC_ITEM'".
EXPORTING
I_ACTION_TYPE = "Action Category
I_CCODE = "Company Code
I_FISCAL_YEAR = "Fiscal Year
* I_DOCNO = "
* I_DOC_ITEM = "Line Item
CHANGING
* IE_TXKEY = "
* X_NOTE_EXISTS = "Indicator: Notes exist
IMPORTING Parameters details for FI_TEXTS_DOC_ITEM
I_ACTION_TYPE - Action Category
Data type: T020-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_CCODE - Company Code
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_FISCAL_YEAR - Fiscal Year
Data type: BKPF-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_DOCNO -
Data type: BKPF-BELNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_DOC_ITEM - Line Item
Data type: BSEG-BUZEIOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for FI_TEXTS_DOC_ITEM
IE_TXKEY -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NOTE_EXISTS - Indicator: Notes exist
Data type: EENO_EXISTSOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FI_TEXTS_DOC_ITEM 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_ie_txkey | TYPE STRING, " | |||
| lv_i_action_type | TYPE T020-AKTYP, " | |||
| lv_i_ccode | TYPE T001-BUKRS, " | |||
| lv_x_note_exists | TYPE EENO_EXISTS, " | |||
| lv_i_fiscal_year | TYPE BKPF-GJAHR, " | |||
| lv_i_docno | TYPE BKPF-BELNR, " | |||
| lv_i_doc_item | TYPE BSEG-BUZEI. " |
|   CALL FUNCTION 'FI_TEXTS_DOC_ITEM' " |
| EXPORTING | ||
| I_ACTION_TYPE | = lv_i_action_type | |
| I_CCODE | = lv_i_ccode | |
| I_FISCAL_YEAR | = lv_i_fiscal_year | |
| I_DOCNO | = lv_i_docno | |
| I_DOC_ITEM | = lv_i_doc_item | |
| CHANGING | ||
| IE_TXKEY | = lv_ie_txkey | |
| X_NOTE_EXISTS | = lv_x_note_exists | |
| . " FI_TEXTS_DOC_ITEM | ||
ABAP code using 7.40 inline data declarations to call FM FI_TEXTS_DOC_ITEM
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 AKTYP FROM T020 INTO @DATA(ld_i_action_type). | ||||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_i_ccode). | ||||
| "SELECT single GJAHR FROM BKPF INTO @DATA(ld_i_fiscal_year). | ||||
| "SELECT single BELNR FROM BKPF INTO @DATA(ld_i_docno). | ||||
| "SELECT single BUZEI FROM BSEG INTO @DATA(ld_i_doc_item). | ||||
Search for further information about these or an SAP related objects