Functional Description
Purpose
This function updates the Pick Slip -related fields (PSN, LTTR,  NXTR and Audit Information) on the 
Sales Order Detail table (F4211).
The Sales Ledger record (F42199) is also written using the business function "Write Sales History Or 
Ledger" (B4200260), depending on the "Ledger Y/N" (WRTH) parameter.
Setup Notes and Prerequisites
None.
Special Logic
None.
Technical Specification
This function updates the Pick Slip related fields (PSN, LTTR, NXTR and audit info) on the Sales 
Order Detail Table F4211.  If the Ledger YN (WRTH) parameter = Y then it also write to the ledger file 
F42199.
 Table Table Description
 F4211
 F42199
Related Business Functions
 Source NameFunction Name
 B4200260Write Sales History Or Ledger
 B9800100Get Audit Information
Processing 
1.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.
2.Update fields PSN, LTTR, NXTR and PID to F4211 with the values passed to this 
function.
 Return a ptr to the updated row ( this ptr will be
 passed to Write Sales History Or Ledger )
 Update fields USER, JOBN, TDAY and UPMJ with the parameters returned from business function 
"Get Audit Information" (B9800100).
3.If "Ledger Y/N" (WRTH) is "Y", call business function "Write Sales History Or 
Ledger" (B4200260) with the following parameters:
 Pointer to F4211=>Ptr to F4211
 PID=>Calling Application
 USER=>User
 JOBN=>Workstation I.D.
 '2'=>Mode
 UPMJ=>Current Date
 TDAY=>Current Time
D4200640 - Update F4211 Pick Slip Data
Special Input Expected
Parameters:
Data Item Data Structure    Description      I/O  Required    Notes
 
DOCO      Order Number                         I    Y
DCTO      Order Type                           I    Y
KCOO      Order Company                        I    Y
LNID      Line Number                          I    Y
PSN      Pick Slip Number                     I    Y
LTTR      Last Status                          I    Y
NXTR      Next Status                          I    Y
PID      Program I.D.                         I    Y
WRTH      Ledger Y/N                           I    Y
EV01      Suppress Error Message               I
Special Output Returned
Parameters:
Data Item Data Structure    Description   I/ORequiredNotes
ERRC      ErrorCode                         O
DTAI      ErrorMsgID                        O
^
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| mnDocumentNumber | 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 
 | ||||
| szDocumentCompany | 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 
 | ||||
| mnPickSlipNumber | PSN | MATH_NUMERIC | NONE | NONE | 
| A automatic next number assigned by the system that can be used to track picking information through the system.  This number is 
 | ||||
| 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. | ||||
| cWriteToLedgerRecord | 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 
 | ||||
| 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 
 | ||||
| cErrorCode | EV01 | char | NONE | NONE | 
| 
 | ||||
| cSuppressErrorMsg | ERRC | char | NONE | NONE | 
| 
 | ||||
| szErrorMsgID | DTAI | char | NONE | NONE | 
| A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
 | ||||
| szComputerID | CTID | char | OPT | NONE | 
| mnJobnumberA | JOBS | MATH_NUMERIC | OPT | NONE | 
| The job number (work station ID) which executed the particular job. | ||||
| B4200260 Write Sales History Or Ledger | ||||
| B9800100 Get Audit Information | 
| F4211 Sales Order Detail File | ||||
| F42199 S.O. Detail Ledger File |