SAP IDCN_GLACC_TEXT_GET Function Module for Read G/L Account text (CN)
IDCN_GLACC_TEXT_GET is a standard idcn glacc 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 G/L Account text (CN) 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 idcn glacc text get FM, simply by entering the name IDCN_GLACC_TEXT_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: IDCN_GLACCATTR
Program Name: SAPLIDCN_GLACCATTR
Main Program: SAPLIDCN_GLACCATTR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function IDCN_GLACC_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 'IDCN_GLACC_TEXT_GET'"Read G/L Account text (CN).
EXPORTING
KONTENPLAN = "Chart of Accounts
SACHKONTO = "G/L Account Number
* SPRACHE = "Language Key
* DFROM = "From Date
* NO_BUFFER = "Bypass SQL Buffer Read
IMPORTING
TEXT_WA = "G/L Account Master Record (Chart of Accounts: Description)
TXT20 = "Text for Criterion
TXT50 = "Text
EXCEPTIONS
NOT_MAINTAINED = 1
IMPORTING Parameters details for IDCN_GLACC_TEXT_GET
KONTENPLAN - Chart of Accounts
Data type: KTOPLOptional: No
Call by Reference: Yes
SACHKONTO - G/L Account Number
Data type: SAKNROptional: No
Call by Reference: Yes
SPRACHE - Language Key
Data type: SPRASOptional: Yes
Call by Reference: Yes
DFROM - From Date
Data type: DFROMOptional: Yes
Call by Reference: Yes
NO_BUFFER - Bypass SQL Buffer Read
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IDCN_GLACC_TEXT_GET
TEXT_WA - G/L Account Master Record (Chart of Accounts: Description)
Data type: SKATOptional: No
Call by Reference: Yes
TXT20 - Text for Criterion
Data type: TXT20Optional: No
Call by Reference: Yes
TXT50 - Text
Data type: TXT50Optional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_MAINTAINED - Time dependent text not maintained
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IDCN_GLACC_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_text_wa | TYPE SKAT, " | |||
lv_kontenplan | TYPE KTOPL, " | |||
lv_not_maintained | TYPE KTOPL, " | |||
lv_txt20 | TYPE TXT20, " | |||
lv_sachkonto | TYPE SAKNR, " | |||
lv_txt50 | TYPE TXT50, " | |||
lv_sprache | TYPE SPRAS, " | |||
lv_dfrom | TYPE DFROM, " | |||
lv_no_buffer | TYPE DFROM. " |
  CALL FUNCTION 'IDCN_GLACC_TEXT_GET' "Read G/L Account text (CN) |
EXPORTING | ||
KONTENPLAN | = lv_kontenplan | |
SACHKONTO | = lv_sachkonto | |
SPRACHE | = lv_sprache | |
DFROM | = lv_dfrom | |
NO_BUFFER | = lv_no_buffer | |
IMPORTING | ||
TEXT_WA | = lv_text_wa | |
TXT20 | = lv_txt20 | |
TXT50 | = lv_txt50 | |
EXCEPTIONS | ||
NOT_MAINTAINED = 1 | ||
. " IDCN_GLACC_TEXT_GET |
ABAP code using 7.40 inline data declarations to call FM IDCN_GLACC_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.Search for further information about these or an SAP related objects