SAP FI_STANDARD_ACCOUNT_DETERMINE Function Module for









FI_STANDARD_ACCOUNT_DETERMINE is a standard fi standard account determine 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 standard account determine FM, simply by entering the name FI_STANDARD_ACCOUNT_DETERMINE 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_STANDARD_ACCOUNT_DETERMINE 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_STANDARD_ACCOUNT_DETERMINE'"
EXPORTING
* I_BKLAS = ' ' "Valuation class
* X_NO_POKEY = ' ' "
* X_NO_RULE = ' ' "
* I_BUKRS = ' ' "Company code (alternative for chart of accounts)
* I_BWMOD = ' ' "Valuatn Grouping Code
* I_KOMOK = ' ' "Account modification
* I_KTOPL = ' ' "Chart of accounts
I_KTOSL = "Account key (process)
* I_MWSKZ = ' ' "Tax code
* X_TAXIT = ' ' "Derive tax account
* X_NO_ACCT = ' ' "

IMPORTING
E_BSCHH = "Credit posting key
E_BSCHS = "Debit posting key
E_KONTH = "Account credit
E_KONTS = "Account debit

EXCEPTIONS
INVALID_INPUT = 1 MISSING_ACCOUNT = 2 MISSING_POSTING_KEYS = 3 MISSING_RULE = 4 MISSING_TAX_ACCOUNT = 5
.



IMPORTING Parameters details for FI_STANDARD_ACCOUNT_DETERMINE

I_BKLAS - Valuation class

Data type: T030-BKLAS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_NO_POKEY -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_NO_RULE -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUKRS - Company code (alternative for chart of accounts)

Data type: T001-BUKRS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BWMOD - Valuatn Grouping Code

Data type: T030-BWMOD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KOMOK - Account modification

Data type: T030-KOMOK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KTOPL - Chart of accounts

Data type: T004-KTOPL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KTOSL - Account key (process)

Data type: T030-KTOSL
Optional: No
Call by Reference: No ( called with pass by value option)

I_MWSKZ - Tax code

Data type: T030K-MWSKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_TAXIT - Derive tax account

Data type: ACCIT-TAXIT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_NO_ACCT -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FI_STANDARD_ACCOUNT_DETERMINE

E_BSCHH - Credit posting key

Data type: T030B-BSCHH
Optional: No
Call by Reference: No ( called with pass by value option)

E_BSCHS - Debit posting key

Data type: T030B-BSCHS
Optional: No
Call by Reference: No ( called with pass by value option)

E_KONTH - Account credit

Data type: T030-KONTH
Optional: No
Call by Reference: No ( called with pass by value option)

E_KONTS - Account debit

Data type: T030-KONTS
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID_INPUT - Incomplete parameters (chart of accts,process)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MISSING_ACCOUNT - Account not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MISSING_POSTING_KEYS - Posting key not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MISSING_RULE - Rules not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MISSING_TAX_ACCOUNT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FI_STANDARD_ACCOUNT_DETERMINE 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_e_bschh  TYPE T030B-BSCHH, "   
lv_i_bklas  TYPE T030-BKLAS, "   SPACE
lv_invalid_input  TYPE T030, "   
lv_x_no_pokey  TYPE T030, "   SPACE
lv_x_no_rule  TYPE T030, "   SPACE
lv_e_bschs  TYPE T030B-BSCHS, "   
lv_i_bukrs  TYPE T001-BUKRS, "   SPACE
lv_missing_account  TYPE T001, "   
lv_e_konth  TYPE T030-KONTH, "   
lv_i_bwmod  TYPE T030-BWMOD, "   SPACE
lv_missing_posting_keys  TYPE T030, "   
lv_e_konts  TYPE T030-KONTS, "   
lv_i_komok  TYPE T030-KOMOK, "   SPACE
lv_missing_rule  TYPE T030, "   
lv_i_ktopl  TYPE T004-KTOPL, "   SPACE
lv_missing_tax_account  TYPE T004, "   
lv_i_ktosl  TYPE T030-KTOSL, "   
lv_i_mwskz  TYPE T030K-MWSKZ, "   SPACE
lv_x_taxit  TYPE ACCIT-TAXIT, "   SPACE
lv_x_no_acct  TYPE ACCIT. "   SPACE

  CALL FUNCTION 'FI_STANDARD_ACCOUNT_DETERMINE'  "
    EXPORTING
         I_BKLAS = lv_i_bklas
         X_NO_POKEY = lv_x_no_pokey
         X_NO_RULE = lv_x_no_rule
         I_BUKRS = lv_i_bukrs
         I_BWMOD = lv_i_bwmod
         I_KOMOK = lv_i_komok
         I_KTOPL = lv_i_ktopl
         I_KTOSL = lv_i_ktosl
         I_MWSKZ = lv_i_mwskz
         X_TAXIT = lv_x_taxit
         X_NO_ACCT = lv_x_no_acct
    IMPORTING
         E_BSCHH = lv_e_bschh
         E_BSCHS = lv_e_bschs
         E_KONTH = lv_e_konth
         E_KONTS = lv_e_konts
    EXCEPTIONS
        INVALID_INPUT = 1
        MISSING_ACCOUNT = 2
        MISSING_POSTING_KEYS = 3
        MISSING_RULE = 4
        MISSING_TAX_ACCOUNT = 5
. " FI_STANDARD_ACCOUNT_DETERMINE




ABAP code using 7.40 inline data declarations to call FM FI_STANDARD_ACCOUNT_DETERMINE

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 BSCHH FROM T030B INTO @DATA(ld_e_bschh).
 
"SELECT single BKLAS FROM T030 INTO @DATA(ld_i_bklas).
DATA(ld_i_bklas) = ' '.
 
 
DATA(ld_x_no_pokey) = ' '.
 
DATA(ld_x_no_rule) = ' '.
 
"SELECT single BSCHS FROM T030B INTO @DATA(ld_e_bschs).
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs).
DATA(ld_i_bukrs) = ' '.
 
 
"SELECT single KONTH FROM T030 INTO @DATA(ld_e_konth).
 
"SELECT single BWMOD FROM T030 INTO @DATA(ld_i_bwmod).
DATA(ld_i_bwmod) = ' '.
 
 
"SELECT single KONTS FROM T030 INTO @DATA(ld_e_konts).
 
"SELECT single KOMOK FROM T030 INTO @DATA(ld_i_komok).
DATA(ld_i_komok) = ' '.
 
 
"SELECT single KTOPL FROM T004 INTO @DATA(ld_i_ktopl).
DATA(ld_i_ktopl) = ' '.
 
 
"SELECT single KTOSL FROM T030 INTO @DATA(ld_i_ktosl).
 
"SELECT single MWSKZ FROM T030K INTO @DATA(ld_i_mwskz).
DATA(ld_i_mwskz) = ' '.
 
"SELECT single TAXIT FROM ACCIT INTO @DATA(ld_x_taxit).
DATA(ld_x_taxit) = ' '.
 
DATA(ld_x_no_acct) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!