Functional Description
Purpose
This function will obtain the receipt routing flags within the movement or disposition currently
being performed.
Technical Specification
GetUDC ()
"43"-> SystemCode
"DA"->RecordTypeCode
MovementCode->UserDefinedCode
"3"-> FieldLength
int_Decsriprion<-szDecription001
Parse the UDC description. If the first letter of the description is not 'Y', then there will be no
GL entries. If the first letter of the description is a 'Y', then the remainder of the description
will be parsed to get the GLCategory.
The GL Category is used to retrieve the account numbers using RetrieveDistributionAAI ().
After the account numbers have been retrieved, the amounts are calculated using the following
algorithm:
/* Calculate the domestic amount */
int_TempPrimaryCost = F43121.PRRC * PurchToPrimConv
int_DomesticAmount = int_TempPrimaryCost * int_PrimaryUnits
/* Calculate the foreign amount */
int_TempPrimaryCost = F43121.FRRC * PurchToPrimConv
int_ForeignAmount = int_TempPrimaryCost * int_PrimaryUnits
/* Calculate tax amounts */
IF ( TaxableFlag is not equal to 'N' AND
TaxArea1 is not blank AND
TaxExplCode1 is not blank )
Call TaxCalculator() twice, once for domestic amount, once for foreign amount
ENDIF
IF BatchNumber is ZERO
FSOpenBatch()
"O"-> BatchType
BatchStatus->PrevBatchStatus
' '->PostOutOfBalance
'1'->CancelBatchControl
Return BatchNumber, BatchDate, BatchType as output parameters
ENDIF
Retrieve the Document Type from P4312 Processing Options.
F0911FSBeginDoc()
int_P4312_DocumentType->DocumentType
BatchNumber->BatchNumber
'A'-> DocAction
'1'->EditInstructionFlag
'J'-> TypeDoc
OrderCompany->CompanyKey
BatchType->BatchType
GLDate->GLDate
BatchDate->BatchDate
int_GLCategory->Explanation
Return JobNumber as an output parameter
ENDIF
Call F0911EditLine () for each GL line that needs to be written.
^
D4300750A - Process GL Information
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szMovementCode | MCDE | char | NONE | NONE |
A user defined code (43/MC) that indicates the movement of the quantity. You can move quantity from one operation to another, or you can
| ||||
mnQuantityDispositioned | QTYM | MATH_NUMERIC | NONE | NONE |
The number of units that have been either moved or dispositioned. | ||||
szOrderCompany | KCOO | char | NONE | NONE |
A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a
| ||||
szOrderType | DCTO | char | NONE | NONE |
A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has
| ||||
cBatchStatus | IST | char | NONE | NONE |
A user defined code (98/IC) that indicates the posting status of a batch. Valid values are:
Blank
Unposted batches that are pending
| ||||
mnBatchNumber | ICU | MATH_NUMERIC | NONE | NONE |
A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either
| ||||
jdBatchDate | DICJ | JDEDATE | NONE | NONE |
The date of the batch. If you leave this field blank, the system date is used. | ||||
szBranchPlant | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
jdGLDate | DGL | JDEDATE | NONE | NONE |
A date that identifies the financial period to which the transaction is to be posted.
The company constants specify the date range for each
| ||||
szComputerID | CTID | char | NONE | NONE |
szProgramID | PID | char | NONE | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
szBatchType | ICUT | char | NONE | NONE |
A code that specifies the system and type of transactions entered in a batch. The system assigns the value when you enter a transaction.
| ||||
mnOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szOrderSuffix | SFX0 | char | NONE | NONE |
A number that identifies the pay item for a voucher or invoice. The system automatically assigns the pay item number. If a voucher or
| ||||
mnOrderLineNumber | LNID | MATH_NUMERIC | NONE | NONE |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
mnReceiptLineNumber | NLIN | MATH_NUMERIC | NONE | NONE |
A number representing the number of lines on either a purchase or sales order.
or The number of receivers recorded during the receipts
| ||||
mnF0911JobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnTrnToPrimCnvFactor | CONV | MATH_NUMERIC | NONE | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
mnPurchToPrimCnvFactor | CONV | MATH_NUMERIC | NONE | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
cTaxableFlag | TX | char | NONE | NONE |
A code that indicates whether the item is subject to sales tax when you purchase it. The system calculates tax on the item only if the supplier
| ||||
szTaxArea1 | TXA1 | char | NONE | 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
| ||||
szTaxExplCode1 | EXR1 | char | NONE | NONE |
A hard-coded user defined code (00/EX) that controls the algorithm that the system uses to calculate tax and G/L distribution amounts. The
| ||||
cCurrencyProcessing | CRYR | char | NONE | NONE |
A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use:
Codes are:
N Do not
| ||||
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szP4312Version | VERS | char | OPT | NONE |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
cDispositionReversalFlag | RVS | char | OPT | NONE |
A code that indicates whether the transaction is eligible for reversal or has already been reversed.
Valid values are:
Blank Transaction is
| ||||
cDispositionPayableYN | PAYAB | char | OPT | OUTPUT |
This field specifies whether a general ledger account should be paid. Valid values are:
Y The account should be paid.
N The account
| ||||
cStepPaymentEligibleYN | PMTE | char | OPT | INPUT |
Indicates at which operation the goods are eligible for payment. When quantity is moved to this operation, the system updates the open
| ||||
mnDispositionGLLineNumber | LNID | MATH_NUMERIC | OPT | BOTH |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
mnTotalDispQuantityForGL | QTY | MATH_NUMERIC | OPT | BOTH |
The number of units associated with an asset. |
B0000042 Batches | ||||
B0900049 Journal Entry | ||||
B4000350 Retrieve Distribution AAI | ||||
B4001090 Tax Calculator | ||||
X0005 Get User Defined Codes |
F43121 Purchase Order Receiver File |