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

Function FI_ACCOUNT_CHECK 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_ACCOUNT_CHECK'".
EXPORTING
* I_AWTYP = ' ' "Reference Transaction
I_ACCOUNT = "Account number dependent on account type
* I_RECACCOUNT = ' ' "Reconciliation Account
I_BUKRS = "Company code
I_KOART = "Account type
* I_TCODE = ' ' "Transaction code
* I_WAERS = ' ' "Transaction currency
* X_DIALOG = ' ' "Indicator: output warning messages online
* I_XNORECCHECK = ' ' "
EXCEPTIONS
ACCOUNT_LOCKED = 1 CURRENCY = 2 NO_RECONCILIATION_ACCOUNT = 3 RECONCILIATION_ACCOUNT = 4 RECONCILIATION_ACCOUNT_LOCKED = 5
IMPORTING Parameters details for FI_ACCOUNT_CHECK
I_AWTYP - Reference Transaction
Data type: BKPF-AWTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ACCOUNT - Account number dependent on account type
Data type: SKB1-SAKNROptional: No
Call by Reference: No ( called with pass by value option)
I_RECACCOUNT - Reconciliation Account
Data type: BSEG-HKONTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS - Company code
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_KOART - Account type
Data type: TBSL-KOARTOptional: No
Call by Reference: No ( called with pass by value option)
I_TCODE - Transaction code
Data type: T020-TCODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WAERS - Transaction currency
Data type: BKPF-WAERSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DIALOG - Indicator: output warning messages online
Data type: BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XNORECCHECK -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ACCOUNT_LOCKED - Account is locked for posting
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CURRENCY - Posting has incorrect currency
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RECONCILIATION_ACCOUNT - Account is not a reconciliation account
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RECONCILIATION_ACCOUNT - Account is reconciliation account
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RECONCILIATION_ACCOUNT_LOCKED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FI_ACCOUNT_CHECK 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_awtyp | TYPE BKPF-AWTYP, " SPACE | |||
| lv_account_locked | TYPE BKPF, " | |||
| lv_currency | TYPE BKPF, " | |||
| lv_i_account | TYPE SKB1-SAKNR, " | |||
| lv_i_recaccount | TYPE BSEG-HKONT, " SPACE | |||
| lv_no_reconciliation_account | TYPE BSEG, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lv_reconciliation_account | TYPE T001, " | |||
| lv_i_koart | TYPE TBSL-KOART, " | |||
| lv_reconciliation_account_locked | TYPE TBSL, " | |||
| lv_i_tcode | TYPE T020-TCODE, " SPACE | |||
| lv_i_waers | TYPE BKPF-WAERS, " SPACE | |||
| lv_x_dialog | TYPE BOOLE, " SPACE | |||
| lv_i_xnoreccheck | TYPE BOOLE-BOOLE. " SPACE |
|   CALL FUNCTION 'FI_ACCOUNT_CHECK' " |
| EXPORTING | ||
| I_AWTYP | = lv_i_awtyp | |
| I_ACCOUNT | = lv_i_account | |
| I_RECACCOUNT | = lv_i_recaccount | |
| I_BUKRS | = lv_i_bukrs | |
| I_KOART | = lv_i_koart | |
| I_TCODE | = lv_i_tcode | |
| I_WAERS | = lv_i_waers | |
| X_DIALOG | = lv_x_dialog | |
| I_XNORECCHECK | = lv_i_xnoreccheck | |
| EXCEPTIONS | ||
| ACCOUNT_LOCKED = 1 | ||
| CURRENCY = 2 | ||
| NO_RECONCILIATION_ACCOUNT = 3 | ||
| RECONCILIATION_ACCOUNT = 4 | ||
| RECONCILIATION_ACCOUNT_LOCKED = 5 | ||
| . " FI_ACCOUNT_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM FI_ACCOUNT_CHECK
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 AWTYP FROM BKPF INTO @DATA(ld_i_awtyp). | ||||
| DATA(ld_i_awtyp) | = ' '. | |||
| "SELECT single SAKNR FROM SKB1 INTO @DATA(ld_i_account). | ||||
| "SELECT single HKONT FROM BSEG INTO @DATA(ld_i_recaccount). | ||||
| DATA(ld_i_recaccount) | = ' '. | |||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single KOART FROM TBSL INTO @DATA(ld_i_koart). | ||||
| "SELECT single TCODE FROM T020 INTO @DATA(ld_i_tcode). | ||||
| DATA(ld_i_tcode) | = ' '. | |||
| "SELECT single WAERS FROM BKPF INTO @DATA(ld_i_waers). | ||||
| DATA(ld_i_waers) | = ' '. | |||
| DATA(ld_x_dialog) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xnoreccheck). | ||||
| DATA(ld_i_xnoreccheck) | = ' '. | |||
Search for further information about these or an SAP related objects