UpdateF4211DeliveryNoteData

Update F4211 Delivery Note Data

Major Business Rule

Object Name: B4200610

Parent DLL: CDIST

Location: Client/Server

Language: C


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



Data Structure

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

szOrderCompanyKCOOcharNONENONE

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.

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.

mnDeliveryNumberDELNMATH_NUMERICNONENONE

A automatic next number assigned by the system that can be used to track deliveries through the system. This number is assigned during 
the printing of delivery notes.

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.

cWriteLedgerRecordWRTHcharNONENONE

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 

cSuppressErrorMessageEV01charNONENONE


Special Input Expected

EV01ab Suppress Error Message


Significant Data Values

0 = Do not suppress any error msgs.

1 = Suppress any error 

^

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

Related Functions

B4200260 Write Sales History Or Ledger
B9800100 Get Audit Information

Related Tables

F4211 Sales Order Detail File