UpdateMiscF4211Fields

Update Misc F4211 Fields

Major Business Rule

Object Name: B4200330

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose

Use this function to Update ( LTTR, NXTR, LOTN, JOBN, PID, UPMJ, TDAY, USER) in F4211

Setup Notes and Prerequisites


Special Logic




Technical Specification

2.2Related Tables 
Table Table Description


2.3Related Business Functions

Source NameFunction Name
B9800100GetAuditInfo


2.4Processing 

• If audit information is passed in, use it to update the row, else call GetAuditInfo.
• If the record is found and update status code flag is equal to a '1', update F4211 record with 
(LTTR,NXTR,LNTY,JOBN,PID,UPMJ,TDAY,USER). 

• If the record is found and update lot number flag is equal to a '1', update F4211 record with 
(LOTN,JOBN,PID,UPMJ,TDAY,USER).

• If NOT found, issue error 0002.
• Allow suppression of error message.



^

Data Structure

D4200330 - Update Misc F4211 Fields

Special Input Expected
DOCODocument NumberKey

DCTODocument TypeKey

KCOOKey CompanyKey

LNIDLine NumberKey

LTTRLast Status

NXTRNext Status

EV02Update Status Flag

EV03Update Lot Number Flag

LOTNLot Number

PIDProgram ID

UPMJToday's DateOptional. If NULL, call GetAuditInfo.

TDAYTime of DayOptional. If NULL, call GetAuditInfo.

USERUser IDOptional. If NULL, call GetAuditInfo.

JOBNWorkStationIDOptional, If NULL call GetAuditInfo


Special Output Returned

DTAIErrorMsgID= Error if record does not exist (0002)


^

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

szOrderKeyCompanyKCOOcharNONENONE

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.

cUpdateStatusFlagEV02charNONENONE

Special Input Expected
EV02ab Update Status  Flagab 


^

cUpdateLotNumberFlagEV03charNONENONE

Special Input Expected
EV03ab Update Lot Number  Flagab 


^

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

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.

jdTodaysDateUPMJJDEDATENONENONE

The date that specifies the last update to the file record.

mnTimeOfDayTDAYMATH_NUMERICNONENONE

The computer clock in hours:minutes:seconds.

szUserIDUSERcharNONENONE

The code that identifies a user profile.

cSuppressErrorMsgEV01charNONENONE

An option that specifies the type of processing for an event.

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.

szWorkStationIDJOBNcharNONENONE

The code that identifies the work station ID that executed a particular job.

cUpdateLineTypeEV01charNONENONE

An option that specifies the type of processing for an event.

szLineTypeLNTYcharNONENONE

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

szComputerIDCTIDcharOPTNONE

Related Functions

B9800100 Get Audit Information

Related Tables

F4211 Sales Order Detail File