Business Function Specification
General Logic - Flow
Source NameB7602000DesignerMiriam Kato
Data Structure D7602000ProgrammerMiriam Kato
Function Name Validate AAI and AccountSystem Code76
Function CategoryInquiry
Function UseGET
Revisions Log
DateProgrammerSAR NumberDescription
06/05/98Miriam Kato1844117Created
1.Functional Description
1.1Purpose
This Business Function validates the distribution AAI and account for ICMS Substitution, ICMS Substitution Recoverable, IPI, IPI Recoverable, ICMS
Recoverable, Repasse and Trade Discount to the PO Receipts File (F43121).
1.2Setup Notes and Prerequisites
These setup notes refer to the global process.
1.UDC 76/GL: entries SUB, SBR, IPI, IPR, ICR,REP, TDC
2.UDC 76/PU, Special Handling Code with 3 characters. See Special Logic.
3.Distribution AAIs for Table Numbers 4385 (Debit) and 4390 (Credit)
4.Accounts for each entry in the chart of accounts
1.3Special Logic
The recoverability flags for IPI, ICMS and ICMS Substitution are defined in the Special Handling Code for the UDC 76/PU. In order to read each one
separately, the following offsets were defined:
#defineIPI_RECOV_POS0(IPI)
#defineICMS_RECOV_POS1(ICMS)
#defineICMS_SUBSRECOV_POS2(ICMS Substitution)
2 Technical Specifications
2.1 Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
BNNFmnNotaFiscalNumberIYNota Fiscal Number , from Report Interconnect
BSERszNotaFiscalSeriesIYNota Fiscal Series, from RI
N001mnNextNumberIYNota Fiscal Next Number 001, RI
DCTszDocumentTypeIYNota Fiscal Document Type, RI
EV01cReturnErrorOYif 0, no error; 1, error
NXTRszNextStatusIYFrom R76B804 processing options
LTTRszLastStatausIYFrom R76B804 processing options
AN8VmnAddNoVendorIYVendor Number, from Report Interconnect
LNIDmnLineNumberOOutput value, if error in validation
ANUMmnAaiTableNumberOOutput value, if error in validation
COszCompanyOOutput value, if error in validation
DCTszDocumentTypeOOutput value, if error in validation
GLCszGlClassOOutput value, if error in validation
MCUszCostCenterOOutput value, if error in validation
OBJszObjectAccountOOutput value, if error in validation
SUBszSubsidiaryOOutput value, if error in validation
VL01szGeneralTextOOutput value, if error in validation
2.2Related Tables
Table Table Description
F7611BNota Fiscal Detail
2.3Related Business Functions
Source NameFunction Name
B7601080Get Distribution AAI and Validate Account
2.4Processing
Main
Select all records for The Nota Fiscal Header and Vendor received in the parameters.
While record exists do
Validate Line ( ICMS Substitution )
If ICMS Recoverable Flag = 1
Validate Line ( IPI )
If IPI Recoverable Flag = 1
If ICMS Recoverable Flag = 1
Validate Line ( Repasse )
Validate Line ( Trade Discount )
Validate Line (Amount, Line Code, dsF7611B )
If ( Amount != 0 )
Read UDC 76/GL, key = new GL Class
If read ok,
Endif
^
D7602000 - Validate Accounts for Receipt Lines - Brazil - 43A
Data Item Data Structure DescriptionI/ORequiredNotes
BNNFmnNotaFiscalNumberIYNota Fiscal Number , from Report Interconnect
BSERszNotaFiscalSeriesIYNota Fiscal Series, from RI
N001mnNextNumber IYNota Fiscal Next Number 001, RI
DCTszDocumentTypeIYNota Fiscal Document Type, RI
EV01cReturnError OYif 0, no error; 1, error
NXTRszNextStatus IYFrom R76B804 processing options
LTTRszLastStataus IYFrom R76B804 processing options
AN8VmnAddNoVendor IYVendor Number, from Report Interconnect
LNIDmnLineNumber OOutput value, if error in validation
ANUMmnAaiTableNumberOOutput value, if error in validation
COszCompany OOutput value, if error in validation
DCTszDocumentType OOutput value, if error in validation
GLCszGlClass OOutput value, if error in validation
MCUszCostCenter OOutput value, if error in validation
OBJszObjectAccount OOutput value, if error in validation
SUBszSubsidiary OOutput value, if error in validation
VL01szGeneralText OOutput value, if error in validation
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnNotaFiscalNumber | BNNF | MATH_NUMERIC | OPT | NONE |
A six-character number that identifies a nota fiscal. The number consists of the nota fiscal number and the nota fiscal series. | ||||
szNotaFiscalSeries | BSER | char | OPT | NONE |
A two-character number that along with the nota fiscal number, identifies a nota fiscal. The Nota Fiscal Series field is the second key that the
| ||||
mnNextNumber001 | N001 | MATH_NUMERIC | OPT | NONE |
The number that the system will assign next. The system can use next numbers for voucher numbers, invoice numbers, journal entry
| ||||
szDocumentType | DCT | char | OPT | NONE |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
szStatusCodeNext | NXTR | char | OPT | NONE |
A user defined code (system 40/type AT) indicating the next step in the order flow of the line type. | ||||
szStatusCodeLast | LTTR | char | OPT | NONE |
A code (system 40/type AT) specifying the last step in the processing cycle that this order line has successfully completed. | ||||
cReturnStatus | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
mnAddNoVendor | AN8V | MATH_NUMERIC | OPT | NONE |
The address book number of the supplier or subcontractor. | ||||
mnLineNumber | LNID | MATH_NUMERIC | OPT | NONE |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
mnAaiTableNumber | ANUM | MATH_NUMERIC | OPT | NONE |
A number used to specify sequence and retrieve accounting information. | ||||
szCompany | CO | char | OPT | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szDocumentType_2 | DCT | char | OPT | NONE |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
szGlClass | GLC | char | OPT | NONE |
A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates
| ||||
szCostCenter | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szObjectAccount | OBJ | char | OPT | NONE |
The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into
| ||||
szSubsidiary | SUB | char | OPT | NONE |
A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account. | ||||
szGeneralText | VL01 | char | OPT | NONE |
The list of selection values associated with a data selection item in the Dream Writer. This list is generated by the use of the *VALUES
| ||||
szPOLineTypeFRT | LNTY | char | OPT | NONE |
A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as
| ||||
cLandedCostFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szPOLineTypeSEG | LNTY | char | OPT | NONE |
A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as
| ||||
szPOLineTypeEXP | LNTY | char | OPT | NONE |
A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as
|
None |
None |