SAP BKK_GL_GL_TEXT_GET Function Module for Read Short and Long Texts for GL Accounts from BCA
BKK_GL_GL_TEXT_GET is a standard bkk gl gl text get 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 Short and Long Texts for GL Accounts from BCA 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 bkk gl gl text get FM, simply by entering the name BKK_GL_GL_TEXT_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: FBC2
Program Name: SAPLFBC2
Main Program: SAPLFBC2
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BKK_GL_GL_TEXT_GET 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 'BKK_GL_GL_TEXT_GET'"Read Short and Long Texts for GL Accounts from BCA.
EXPORTING
* I_SPRAS = SY-LANGU "SAP System, Current Language
* I_KTOPL = "Chart of Accounts
I_HKONT = "G/L Account of General Ledger Accounting
* I_FLG_MESSAGE = 'X' "X Field
IMPORTING
E_TBKKC_GLACC_TXT20 = "G/L Account Short Text
E_TBKKC_GLACC_TXT50 = "G/L Account Long Text
E_RCD_RETURN = "Return Value, Return Value After ABAP Statements
IMPORTING Parameters details for BKK_GL_GL_TEXT_GET
I_SPRAS - SAP System, Current Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
I_KTOPL - Chart of Accounts
Data type: KTOPLOptional: Yes
Call by Reference: Yes
I_HKONT - G/L Account of General Ledger Accounting
Data type: HKONTOptional: No
Call by Reference: Yes
I_FLG_MESSAGE - X Field
Data type: BKK_XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BKK_GL_GL_TEXT_GET
E_TBKKC_GLACC_TXT20 - G/L Account Short Text
Data type: TXT20_SKATOptional: No
Call by Reference: Yes
E_TBKKC_GLACC_TXT50 - G/L Account Long Text
Data type: TXT50_SKATOptional: No
Call by Reference: Yes
E_RCD_RETURN - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BKK_GL_GL_TEXT_GET 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_i_spras | TYPE SY-LANGU, " SY-LANGU | |||
| lv_e_tbkkc_glacc_txt20 | TYPE TXT20_SKAT, " | |||
| lv_i_ktopl | TYPE KTOPL, " | |||
| lv_e_tbkkc_glacc_txt50 | TYPE TXT50_SKAT, " | |||
| lv_i_hkont | TYPE HKONT, " | |||
| lv_e_rcd_return | TYPE SY-SUBRC, " | |||
| lv_i_flg_message | TYPE BKK_XFELD. " 'X' |
|   CALL FUNCTION 'BKK_GL_GL_TEXT_GET' "Read Short and Long Texts for GL Accounts from BCA |
| EXPORTING | ||
| I_SPRAS | = lv_i_spras | |
| I_KTOPL | = lv_i_ktopl | |
| I_HKONT | = lv_i_hkont | |
| I_FLG_MESSAGE | = lv_i_flg_message | |
| IMPORTING | ||
| E_TBKKC_GLACC_TXT20 | = lv_e_tbkkc_glacc_txt20 | |
| E_TBKKC_GLACC_TXT50 | = lv_e_tbkkc_glacc_txt50 | |
| E_RCD_RETURN | = lv_e_rcd_return | |
| . " BKK_GL_GL_TEXT_GET | ||
ABAP code using 7.40 inline data declarations to call FM BKK_GL_GL_TEXT_GET
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 LANGU FROM SY INTO @DATA(ld_i_spras). | ||||
| DATA(ld_i_spras) | = SY-LANGU. | |||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_rcd_return). | ||||
| DATA(ld_i_flg_message) | = 'X'. | |||
Search for further information about these or an SAP related objects