Functional Description
Purpose
This function updates the Delivery Note-related fields (LTTR, NXTR, DELN and Audit Information) on
the Sales Order Detail table (F4211).
Setup Notes and Prerequisites
None.
Special Logic
None.
Technical Specification
2.2Related Tables
Table Table Description
F4211SalesOrderDetail
2.3Related Business Functions
Source NameFunction Name
B4200260Write Sales History Or Ledger
B9800100Get Audit Information
2.4Processing
1.If fields DOCO or LNID contain zeros, or fields DCTO, KCOO, LTTR, NXTR, PID contain blanks,
return a '1' in the error code field ERRC.
2.Read the F4211 table using DOCO, DCTO, KCOO and LNID as the unique key. If the record cannot
be found, return a '1' in the error code field ERRC.
3.Update fields LTTR, NXTR, DELN and PID to F4211 with the values passed to this function.
Update fields USER, JOBN, TDAY and UPMJ with the parameters returned from business function "Get
Audit Information" (B9800100).
4.If "WriteLedgerRecord" (WRTH) is "Y", call business function "Write Sales History Or Ledger"
(B4200260) with the following parameters:
Pointer to F4211=>Ptr to F4211
PID=>ProgramID
USER=>User
JOBN=>Workstation I.D.
'2'=>Mode
UPMJ=>Current Date
TDAY=>Current Time
D4200610 - Update F4211 Delivery Note Data
Special Input Expected
DOCOOrder Number
DCTOOrder Type
KCOOOrder Company
LNIDLine Number
LTTRLast Status
NXTRNext Status
DELNDeliveryNoteNumber
PIDProgram I.D.
WRTHWriteLedgerRecord
EV01Suppress Error Message0 = Do not suppress any error msgs.
1 = Suppress any error messages.
Special Output Returned
ERRCErrorCode0 = No errors in processing
1 = Error in processing.
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
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,
| ||||
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
| ||||
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
| ||||
mnLineNumber | 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
| ||||
szLastStatus | LTTR | char | NONE | NONE |
A code (system 40/type AT) specifying the last step in the processing cycle that this order line has successfully completed. | ||||
szNextStatus | NXTR | char | NONE | NONE |
A user defined code (system 40/type AT) indicating the next step in the order flow of the line type. | ||||
mnDeliveryNumber | DELN | MATH_NUMERIC | NONE | NONE |
A automatic next number assigned by the system that can be used to track deliveries through the system. This number is assigned during
| ||||
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
| ||||
cWriteLedgerRecord | WRTH | char | NONE | NONE |
A code that tells the system to write a record to the history table (F42199 for Sales Order Management and F43199 for Purchase Order
| ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
| ||||
cErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
|
B4200260 Write Sales History Or Ledger | ||||
B9800100 Get Audit Information |
F4211 Sales Order Detail File |