SAP GLE_ECS_UI_GET_POSTED Function Module for
GLE_ECS_UI_GET_POSTED is a standard gle ecs ui get posted 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 ecs ui get posted FM, simply by entering the name GLE_ECS_UI_GET_POSTED into the relevant SAP transaction such as SE37 or SE38.
Function Group: GLE_ECS_UI_DETAIL
Program Name: SAPLGLE_ECS_UI_DETAIL
Main Program: SAPLGLE_ECS_UI_DETAIL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GLE_ECS_UI_GET_POSTED 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_ECS_UI_GET_POSTED'".
EXPORTING
I_COMPANY_CODE = "Company Code of Posted Document
I_DOC_NO = "Document Number of Posted (Suspense) Document
I_FISCAL_YEAR = "Fiscal Year of Posted Document
* I_POS_NO = "Number of Line Item within Accounting Document
IMPORTING
E_STR_POSTED = "ECS: FI Line Item (ECS ID and Header/Line Item/Crcy Data)
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for GLE_ECS_UI_GET_POSTED
I_COMPANY_CODE - Company Code of Posted Document
Data type: GLE_DTE_ECS_COMPANY_CODEOptional: No
Call by Reference: Yes
I_DOC_NO - Document Number of Posted (Suspense) Document
Data type: GLE_DTE_ECS_DOC_NOOptional: No
Call by Reference: Yes
I_FISCAL_YEAR - Fiscal Year of Posted Document
Data type: GLE_DTE_ECS_FISCAL_YEAROptional: No
Call by Reference: Yes
I_POS_NO - Number of Line Item within Accounting Document
Data type: BUZEIOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for GLE_ECS_UI_GET_POSTED
E_STR_POSTED - ECS: FI Line Item (ECS ID and Header/Line Item/Crcy Data)
Data type: GLE_STR_FI_ITEMOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Document not found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GLE_ECS_UI_GET_POSTED 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_not_found | TYPE STRING, " | |||
| lv_e_str_posted | TYPE GLE_STR_FI_ITEM, " | |||
| lv_i_company_code | TYPE GLE_DTE_ECS_COMPANY_CODE, " | |||
| lv_i_doc_no | TYPE GLE_DTE_ECS_DOC_NO, " | |||
| lv_i_fiscal_year | TYPE GLE_DTE_ECS_FISCAL_YEAR, " | |||
| lv_i_pos_no | TYPE BUZEI. " |
|   CALL FUNCTION 'GLE_ECS_UI_GET_POSTED' " |
| EXPORTING | ||
| I_COMPANY_CODE | = lv_i_company_code | |
| I_DOC_NO | = lv_i_doc_no | |
| I_FISCAL_YEAR | = lv_i_fiscal_year | |
| I_POS_NO | = lv_i_pos_no | |
| IMPORTING | ||
| E_STR_POSTED | = lv_e_str_posted | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " GLE_ECS_UI_GET_POSTED | ||
ABAP code using 7.40 inline data declarations to call FM GLE_ECS_UI_GET_POSTED
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