UpdateF4211PickSlipData

Update F4211 Pick Slip Data

Major Business Rule

Object Name: B4200640

Parent DLL: CDIST

Location: Client/Server

Language: C





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




Data Structure

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 NameData ItemData TypeReq/OptI/O/Both
mnDocumentNumberDOCOMATH_NUMERICNONENONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrderTypeDCTOcharNONENONE

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 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szDocumentCompanyKCOOcharNONENONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnLineNumberLNIDMATH_NUMERICNONENONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnPickSlipNumberPSNMATH_NUMERICNONENONE

A automatic next number assigned by the system that can be used to track picking information through the system.  This number is 
assigned during the printing of pick slips.  The shipment confirmation program allows inquiry and confirmation by this number.

szLastStatusLTTRcharNONENONE

A code (system 40/type AT) specifying the last step in the processing cycle that this order line has successfully completed.

szNextStatusNXTRcharNONENONE

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

cWriteToLedgerRecordWRTHcharNONENONE

A code that tells the system to write a record to the history table (F42199  for Sales Order Management and F43199 for Purchase Order 
Management). Valid codes are:    Y Write a record for selected fields to the history table    N Do not write a record to the history table 

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

cErrorCodeEV01charNONENONE




0 = Do not suppress any error msgs. 

1 = Suppress any error messages.



^

cSuppressErrorMsgERRCcharNONENONE




0 = No errors in processing.

1 = Error  in processing.



^

szErrorMsgIDDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

szComputerIDCTIDcharOPTNONE

mnJobnumberAJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

Related Functions

B4200260 Write Sales History Or Ledger
B9800100 Get Audit Information

Related Tables

F4211 Sales Order Detail File
F42199 S.O. Detail Ledger File