Functional Description
Purpose
This business function checks for the existence of an Account Master record in the F0901 table. In
addition, this function will return every column of the F0901 for the Account requested. No validation
or editing is performed. This function should be used in lieu of XX0901 - Validate Account Number if
all that is needed is a check for existence or a return of Account specific information.
Setup Notes and Prerequisites
The user should pass in the Account ID if it is available. If the Account ID is not available the
MCU.OBJ.SUB method may be used. Just pass in the Business Unit, Object Account and Subsidiary in the
approriate fields of the data structure.
Special Logic
The parameter "cAccountExistsFlag" will return a 'Y' if the Account requested exists and an 'N' if it
does not exist. You may suppress ER or GBR errors from being set by passing a 'Y' in the
"cSuppressErrosFlag" parameter. If a 'Y' is passed and an error is encountered, the error code will be returned
in the "szErrorCode" parameter.
Technical Specification
If Account ID is blank OR Account ID = "00000000"
If Business Unit is Blank AND
Object Account is blank AND
Subsidiary is blank
Set ERROR 0003 - Blanks Invalid
Else
Set key information for 3 part key: MCU.OBJ.SUB
Else
Set key information for 1 part key: AID
Open Account Master Table (F0901)
Fetch Account from Account Master Table (F0901)
If fetch fails
Set Account Exists Flag = 'N'
Set ERROR
Else
Set Account Exists Flag = 'Y'
Move all F0901 columns to return BSFN Data Structure
Close Account Master Table (F0901)
D0000005 - Check for Account Existence (F0901)
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szAccountID | AID | char | OPT | BOTH |
Special Input Expected
| ||||
szCompany | CO | char | OPT | OUTPUT |
Special Output Returned
| ||||
szBusinessUnit | MCU | char | OPT | BOTH |
Special Input Expected
| ||||
szObjectAccount | OBJ | char | OPT | BOTH |
Special Input Expected
| ||||
szSubsidiary | SUB | char | OPT | BOTH |
Special Input Expected
| ||||
szAccountDescription | DL01 | char | OPT | OUTPUT |
Special Output Returned
| ||||
cModelConsolidationFlag | FMOD | char | OPT | OUTPUT |
Special Output Returned
| ||||
cPostingEditCode | PEC | char | OPT | OUTPUT |
Special Output Returned
| ||||
cLevelOfDetail | LDA | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCurrencyCode | CRCD | char | OPT | OUTPUT |
Special Output Returned
| ||||
sz3rdAccountNumber | ANS | char | OPT | OUTPUT |
Special Output Returned
| ||||
szBudgetPatternCode | BPC | char | OPT | OUTPUT |
Special Output Returned
| ||||
szUnitOfMeasure | UM | char | OPT | OUTPUT |
Special Output Returned
| ||||
cBillable | BILL | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode1 | R001 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode2 | R002 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode3 | R003 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode4 | R004 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode5 | R005 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode6 | R006 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode7 | R007 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode8 | R008 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode9 | R009 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode10 | R010 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode11 | R011 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode12 | R012 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode13 | R013 | char | OPT | OUTPUT |
Category code 13 associated with the Account Master file (F0901). This is a user defined code (system 09, type 13) for use in flex account
| ||||
szCategoryCode14 | R014 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode15 | R015 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode16 | R016 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode17 | R017 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode18 | R018 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode19 | R019 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode20 | R020 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode21 | R021 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode22 | R022 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szCategoryCode23 | R023 | char | OPT | OUTPUT |
Special Output Returned
| ||||
szAlternateObjectAccount | OBJA | char | OPT | OUTPUT |
Special Output Returned
| ||||
szAlternateSubsidiary | SUBA | char | OPT | OUTPUT |
Special Output Returned
| ||||
szWorkersCompInsuranceCode | WCMP | char | OPT | OUTPUT |
Special Output Returned
| ||||
cMethodOfComputation | CCT | char | OPT | OUTPUT |
Special Output Returned
| ||||
szEquipmentRateCode | ERC | char | OPT | OUTPUT |
Special Output Returned
| ||||
cHeaderTypeCode | HTC | char | OPT | OUTPUT |
Special Output Returned
| ||||
cLodQuantityRollupCode | QLDA | char | OPT | OUTPUT |
Special Output Returned
| ||||
cCostCodeComplete | CCC | char | OPT | OUTPUT |
Special Output Returned
| ||||
szUserID | USER | char | OPT | OUTPUT |
Special Output Returned
| ||||
szProgramID | PID | char | OPT | OUTPUT |
Special Output Returned
| ||||
szWorkStationID | JOBN | char | OPT | OUTPUT |
Special Output Returned
| ||||
jdDateLastUpdated | UPMJ | JDEDATE | OPT | OUTPUT |
Special Output Returned
| ||||
mnTimeLastUpdated | UPMT | MATH_NUMERIC | OPT | OUTPUT |
Special Output Returned
| ||||
cSuppressErrorsFlag | EV01 | char | OPT | INPUT |
Special Input Expected
| ||||
szErrorCode | VC04A | char | OPT | OUTPUT |
Special Output Returned
| ||||
cAccountExistsFlag | EV01 | char | OPT | OUTPUT |
Special Output Returned
| ||||
cCostObjectEditCode01 | CEC1 | char | OPT | NONE |
A code that specifies the cost object type that users must enter into the Cost Object Type 1 field when entering transactions for this account.
| ||||
cCostObjectEditCode02 | CEC2 | char | OPT | NONE |
A code that specifies the cost object type that users must enter into the Cost Object Type 2 field when entering transactions for this account.
| ||||
cCostObjectEditCode03 | CEC3 | char | OPT | NONE |
A code that specifies the cost object type that users must enter into the Cost Object Type 3 field when entering transactions for this account.
| ||||
cCostObjectEditCode04 | CEC4 | char | OPT | NONE |
A code that specifies the cost object type that users must enter into the Cost Object Type 4 field when entering transactions for this account.
| ||||
cItemEditCode | IEC | char | OPT | NONE |
A code that controls what information you can enter into the Item Number field for this account.
Valid values are:
blank No edit will be
| ||||
cGLAccountTaxable | TXGL | char | OPT | NONE |
An option that specifies whether an account is taxable. When the option is turned on, the account is taxable. The system updates the record
| ||||
szTaxArea1 | TXA1 | char | OPT | NONE |
A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter
|
None |
F0901 Account Master |