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

Function GLE_AUTH_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 'GLE_AUTH_DOC_ITEM'".
EXPORTING
I_BUKRS = "
* I_BEGRU_B = "
I_KOART = "
* I_KONTO = "
* I_ACTVT = '01' "
* I_GSBER = "
* I_GJAHR = "
* I_MONAT = "
* I_LEDGER = "
* I_BEGRU = "
EXCEPTIONS
NO_AUTHORITY = 1 INVALID_INPUT = 2
IMPORTING Parameters details for GLE_AUTH_DOC_ITEM
I_BUKRS -
Data type: BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_BEGRU_B -
Data type: BRGRUOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KOART -
Data type: BSEG-KOARTOptional: No
Call by Reference: No ( called with pass by value option)
I_KONTO -
Data type: T001B-VKONTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ACTVT -
Data type: ACTIV_AUTHDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GSBER -
Data type: BSEG-GSBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_GJAHR -
Data type: GJAHROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MONAT -
Data type: MONATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LEDGER -
Data type: RLDNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_BEGRU -
Data type: BRGRUOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: Yes
INVALID_INPUT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GLE_AUTH_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_i_bukrs | TYPE BUKRS, " | |||
| lv_no_authority | TYPE BUKRS, " | |||
| lv_i_begru_b | TYPE BRGRU, " | |||
| lv_i_koart | TYPE BSEG-KOART, " | |||
| lv_invalid_input | TYPE BSEG, " | |||
| lv_i_konto | TYPE T001B-VKONT, " | |||
| lv_i_actvt | TYPE ACTIV_AUTH, " '01' | |||
| lv_i_gsber | TYPE BSEG-GSBER, " | |||
| lv_i_gjahr | TYPE GJAHR, " | |||
| lv_i_monat | TYPE MONAT, " | |||
| lv_i_ledger | TYPE RLDNR, " | |||
| lv_i_begru | TYPE BRGRU. " |
|   CALL FUNCTION 'GLE_AUTH_DOC_ITEM' " |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_BEGRU_B | = lv_i_begru_b | |
| I_KOART | = lv_i_koart | |
| I_KONTO | = lv_i_konto | |
| I_ACTVT | = lv_i_actvt | |
| I_GSBER | = lv_i_gsber | |
| I_GJAHR | = lv_i_gjahr | |
| I_MONAT | = lv_i_monat | |
| I_LEDGER | = lv_i_ledger | |
| I_BEGRU | = lv_i_begru | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| INVALID_INPUT = 2 | ||
| . " GLE_AUTH_DOC_ITEM | ||
ABAP code using 7.40 inline data declarations to call FM GLE_AUTH_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 KOART FROM BSEG INTO @DATA(ld_i_koart). | ||||
| "SELECT single VKONT FROM T001B INTO @DATA(ld_i_konto). | ||||
| DATA(ld_i_actvt) | = '01'. | |||
| "SELECT single GSBER FROM BSEG INTO @DATA(ld_i_gsber). | ||||
Search for further information about these or an SAP related objects