FRACCT Function
This function retrieves data from G/L account records, including account optional fields. It cannot retrieve data from transaction optional fields.
Syntax
FRACCT(field name, account reference, criteria, formatted)
Note: The function returns a blank if the account reference is missing, the account does not exist, or if no accounts exist in the specified range.
Arguments
Argument | Description |
---|---|
field name |
The name of a field from the G/L account record, including account optional fields. Tip: Account optional fields have an "A." prefix. |
account reference |
A string specifying a single account or a range of accounts. SeeAbout Account Number References. Note:
|
criteria | An expression that imposes selection criteria on the accounts. The account reference and expression together determine the accounts that will be included in the calculation. See About Selection Criteria for Filtering Accounts. |
formatted (Optional) |
Indicates whether the return value should be formatted according to the presentation defined in the view. If omitted, the default is "Formatted." Use one of the following constructs:
|
You can use the following G/L account field names. To retrieve optional fields, add the prefix "A." before the field name (include the period).
Field Name |
Description |
---|---|
ACCTID | Account number, including all segments |
CREATEDATE | Date the account was created |
ACCTDESC |
Account description |
ACCTTYPE |
Account type
|
ACCTBAL |
Normal balance
|
ACTIVESW |
Account status (Active or Inactive)
|
CONSLDSW |
Consolidation setting
|
QTYSW |
Quantity setting
|
UOM | The unit of measure, if quantities are used |
ALLOCSW |
Allocation setting
|
ACCTOFSET | Account number for reallocation |
ACCTSRTY | Allocation transaction source code |
ROLLUPSW |
Rollup setting
|
MCSW |
Multicurrency setting
|
SPECSW |
Specific source currencies setting
|
ACCTGRPCOD | Account group code |
CTRLACCTSW |
Control account setting
|
SRCELDGID (Reserved field) | Source ledger, if the account is a control account (for example, AR or AP). |
ALLOCTOT | Percentage total of different allocation rates |
ABRKID | Account structure code |
YRACCTCLOS | Last year closed |
ACCTFMTTD | Formatted account number |
ACSEGVALn (n= 01 to 10) | Account segment code, 01 to 10 |
ACCTSEGVAL | Segment defined as the Account Segment in G/L Options |
ACCTGRPSCD | Account group sort code |
POSTOSEGID | The code for the segment used for account posting |
DEFCURNCOD | Default currency code |
Examples
Statement | Return Value |
---|---|
=FRACCT("ACCTDESC","1000-333") | "Cost of goods sold" |
=FRACCT("QTYSW","1000-333","F') | "Yes" |
=FRACCT("ACCTTYPE", "1000-333","FMT") |
"Income" |
=FRACCT("A.ACCTCLASS","4000") | "Sales" |
=FRACCT("ACCTDESC","1000-333:1000-400") |
Prints a description that includes only those words that are common to each account in the account range. For example, if the accounts in the range have the following descriptions, the word "Receivable" would be the return value.
|