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

Function FI_EWU_CHECK_LEDGERS 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_EWU_CHECK_LEDGERS'".
EXPORTING
LEDGER = "
* FIELDNM1 = 'BUKRS' "
* MSGTYP = 'E' "
* LIMIT2 = 0 "
* LIMIT3 = 0 "
* RRCTY = '0' "
* RVERS = '001' "
RYEAR = "
* PER_FR = '000' "
* PER_TO = '016' "
* WR_ONLY = 'X' "
* PST_ALSO = "
* ACCOUNT = "
IMPORTING
ERROR = "
DIFFERENCE = "
TABLES
FIELDVL1 = "
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for FI_EWU_CHECK_LEDGERS
LEDGER -
Data type: GLU1-RLDNROptional: No
Call by Reference: No ( called with pass by value option)
FIELDNM1 -
Data type: DFIES-FIELDNAMEDefault: 'BUKRS'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGTYP -
Data type:Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LIMIT2 -
Data type: GLT0-TSLVTOptional: Yes
Call by Reference: No ( called with pass by value option)
LIMIT3 -
Data type: GLT0-TSLVTOptional: Yes
Call by Reference: No ( called with pass by value option)
RRCTY -
Data type: GLU1-RRCTYDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RVERS -
Data type: GLU1-RVERSDefault: '001'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RYEAR -
Data type: GLU1-RYEAROptional: No
Call by Reference: No ( called with pass by value option)
PER_FR -
Data type: GLU1-POPERDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PER_TO -
Data type: GLU1-POPERDefault: '016'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WR_ONLY -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PST_ALSO -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
ACCOUNT -
Data type: GLU1-RACCTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FI_EWU_CHECK_LEDGERS
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DIFFERENCE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FI_EWU_CHECK_LEDGERS
FIELDVL1 -
Data type: EWU_SEL_BUOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FI_EWU_CHECK_LEDGERS 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_error | TYPE STRING, " | |||
| lv_error | TYPE STRING, " | |||
| lv_ledger | TYPE GLU1-RLDNR, " | |||
| lt_fieldvl1 | TYPE STANDARD TABLE OF EWU_SEL_BU, " | |||
| lv_fieldnm1 | TYPE DFIES-FIELDNAME, " 'BUKRS' | |||
| lv_msgtyp | TYPE DFIES, " 'E' | |||
| lv_limit2 | TYPE GLT0-TSLVT, " 0 | |||
| lv_limit3 | TYPE GLT0-TSLVT, " 0 | |||
| lv_rrcty | TYPE GLU1-RRCTY, " '0' | |||
| lv_difference | TYPE GLU1, " | |||
| lv_rvers | TYPE GLU1-RVERS, " '001' | |||
| lv_ryear | TYPE GLU1-RYEAR, " | |||
| lv_per_fr | TYPE GLU1-POPER, " '000' | |||
| lv_per_to | TYPE GLU1-POPER, " '016' | |||
| lv_wr_only | TYPE GLU1, " 'X' | |||
| lv_pst_also | TYPE GLU1, " | |||
| lv_account | TYPE GLU1-RACCT. " |
|   CALL FUNCTION 'FI_EWU_CHECK_LEDGERS' " |
| EXPORTING | ||
| LEDGER | = lv_ledger | |
| FIELDNM1 | = lv_fieldnm1 | |
| MSGTYP | = lv_msgtyp | |
| LIMIT2 | = lv_limit2 | |
| LIMIT3 | = lv_limit3 | |
| RRCTY | = lv_rrcty | |
| RVERS | = lv_rvers | |
| RYEAR | = lv_ryear | |
| PER_FR | = lv_per_fr | |
| PER_TO | = lv_per_to | |
| WR_ONLY | = lv_wr_only | |
| PST_ALSO | = lv_pst_also | |
| ACCOUNT | = lv_account | |
| IMPORTING | ||
| ERROR | = lv_error | |
| DIFFERENCE | = lv_difference | |
| TABLES | ||
| FIELDVL1 | = lt_fieldvl1 | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " FI_EWU_CHECK_LEDGERS | ||
ABAP code using 7.40 inline data declarations to call FM FI_EWU_CHECK_LEDGERS
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 RLDNR FROM GLU1 INTO @DATA(ld_ledger). | ||||
| "SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_fieldnm1). | ||||
| DATA(ld_fieldnm1) | = 'BUKRS'. | |||
| DATA(ld_msgtyp) | = 'E'. | |||
| "SELECT single TSLVT FROM GLT0 INTO @DATA(ld_limit2). | ||||
| "SELECT single TSLVT FROM GLT0 INTO @DATA(ld_limit3). | ||||
| "SELECT single RRCTY FROM GLU1 INTO @DATA(ld_rrcty). | ||||
| DATA(ld_rrcty) | = '0'. | |||
| "SELECT single RVERS FROM GLU1 INTO @DATA(ld_rvers). | ||||
| DATA(ld_rvers) | = '001'. | |||
| "SELECT single RYEAR FROM GLU1 INTO @DATA(ld_ryear). | ||||
| "SELECT single POPER FROM GLU1 INTO @DATA(ld_per_fr). | ||||
| DATA(ld_per_fr) | = '000'. | |||
| "SELECT single POPER FROM GLU1 INTO @DATA(ld_per_to). | ||||
| DATA(ld_per_to) | = '016'. | |||
| DATA(ld_wr_only) | = 'X'. | |||
| "SELECT single RACCT FROM GLU1 INTO @DATA(ld_account). | ||||
Search for further information about these or an SAP related objects