Functional Description
Purpose
This function is used by Inventory Adjustments and Inventory Issues and is used to edit subledger
and subledger type fields and the From Branch of an Inventory Transfer.
Setup Notes and Prerequistites
None
Special Logic
None
Technical Specification
Related Tables
Table Table Description
F41001Inventory Constants
F0005UDC Table
F0911GL Table
Related Business Functions
Source NameFunction Name
RetrieveCompanyFromBusUnitB0000130
GetBranchConstantsB4000150
F0911FSEditDocB0900049
ReturnFYandPNX0903
CloseBatchB0000042
Processing
// Perform UDC edits against the following data items:
If Document Type (DCT)is not blank,
perform UDC edit against 00/DT and Retrieve the description.
else
issue error '0003' and highlight the DCT field
end
// Load the G/L and transaction dates if blank
If G/L Date (DGL) equals blanks
DefaultTodaysDate (G/L Date)
end
If Trans Date TRDJ) equals blanks
DefaultTodaysDate(Transaction Date)
end
If Batch Date (DICJ) equals blank
DefaultTodaysDate(Batch Date)
End
// Validate the GL date for valid PN and FY year
Call ReturnFYPN (x0903)
Company<=Company
GL Date<=GL Date
// Retrieving the Last JE Line Number in F0911 Table for (Batch Number)
If Batch Number is not Zero
Fetch the F0911 with ICUT, ICU, DOC, DCT, KCO, DGL to get the last line number.
End
DXT4114Z1B - F4114 Begin Document - Functional Server
Parameters:
Data Item Data Structure DescriptionI/ORequired
CTIDComputer IDIN
ACTNDocument ActionIN
MCUBranch/PlantIN
KCO Doc Key CompanyON
DCTDoc TypeIY
DOC Doc NumberIN
ICUBatch NumberIN
DICJBatch DateI/ON
JELNLast JE Line NumberON
DGLG/L DateI/ON
TRDJTransactionDateI/ON
DL01GL ExplanationI/ON
EV02ErrorConditionsI/ON
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cDocumentAction | ACTN | char | NONE | NONE |
Currently not used.
| ||||
szComputerID | CTID | char | NONE | NONE |
Computer id of the user
| ||||
cErrorConditions | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szBranchPlant | MCU | char | NONE | NONE |
Branch Plant at the Header Level
| ||||
mnBatchNumber | ICU | MATH_NUMERIC | NONE | NONE |
Batch number (From Open Batch)
| ||||
jdBatchDate | DICJ | JDEDATE | NONE | NONE |
Batch date (From Open Batch)
| ||||
mnLastJELineNumber | JELN | MATH_NUMERIC | NONE | NONE |
Retrieve the Last Record written in F0911.
| ||||
szDocumentKeyCompany | KCO | char | NONE | NONE |
Retrieve Key Company
| ||||
szDocumentType | DCT | char | NONE | NONE |
Validate for valid UDC
| ||||
mnDocumentNumber | DOC | MATH_NUMERIC | NONE | NONE |
If not blank, use to retrieve F0911 for Reversal/Update Mode
| ||||
jdGLDate | DGL | JDEDATE | NONE | NONE |
If Blank, default in Today's date.
| ||||
jdTransactionDate | TRDJ | JDEDATE | NONE | NONE |
If Blank, default in Today's date.
| ||||
szGLExplanation | DL01 | char | NONE | NONE |
If GL Explanation is blank, default in Document Type Descriptionab
|
B0000130 Retrieve Company From Business Unit | ||||
XT4111Z1 Inventory Transactions |
F4009 Distribution/Manufacturing Constants | ||||
F4102 Item Branch File | ||||
F41UI001 Inventory Transactions Detail File |