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

Function FI_GET_SGTXT 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_GET_SGTXT'".
EXPORTING
TEXT_KEY = "
* DOC_DATE = "
* PSTNG_DATE = "
* BLINE_DATE = "
* FIS_PERIOD = "
* FISC_YEAR = "
* REF_DOC_NO = "
* COMP_CODE = "
* LANGU = "
IMPORTING
ITEM_TEXT = "
RETURN = "
IMPORTING Parameters details for FI_GET_SGTXT
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 FI_GET_SGTXT
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)
Copy and paste ABAP code example for FI_GET_SGTXT 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, " | |||
| 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 'FI_GET_SGTXT' " |
| 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 | |
| . " FI_GET_SGTXT | ||
ABAP code using 7.40 inline data declarations to call FM FI_GET_SGTXT
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