UpdateMiscF4201Fields

Update Misc F4201 Fields

Major Business Rule

Object Name: B4200740

Parent DLL: CDIST

Location: Client/Server

Language: C





Functional Description


Purpose


To update misc. fields in F4201 (HOLD, JOBN, PID, UPMJ, TDAY, USER)



Setup Notes and Prerequisites


None.


Special Logic


None.


Technical Specification



This function updates the hold code and the audit information in the F4201 table.


Related Tables


None.



Related Business Functions


Source NameFunction Name


B4200340VerifyAndGetSalesHeader

B9800100GetAuditInfo


Processing


• If the pointer to F4201 is passed in, use it to update the row, else call VerifyandGetSalesHeader to 
fetch the              record.

• If audit information is passed in, use it to update the row, else call GetAuditInfo.
• If the record is found, update F4201 row (HOLD,JOBN,PID,UPMJ,TDAY,USER).  
• If NOT found, issue error 0002.
• Allow suppression of error message.


<
/pre>
^

Data Structure

D4200740 - Update Misc F4201 Fields




Special Input Expected


Parameters:


Data Item     Data Structure DescriptionI/ORequiredNotes

DOCO          Document Number             I   Y      Key

DCTO          Document Type                   I   Y      Key

KCOO          Key Company                   I   Y      Key

HOLD          Hold Code                   I   Y

PID          Program ID                   I   N      Optional. If

                                                                  NULL, call

                                                                  GetAuditInfo.

JOBN          Job Number                   I   N      Optional. If

                                                                  NULL, call

                                                                  GetAuditInfo.

UPMJ          Today's Date                   I   N      Optional. If

                                                                  NULL, call

                                                                  GetAuditInfo.

TDAY          Time of Day                   I   N      Optional. If

                                                                  NULL, call

                                                                  GetAuditInfo.

USER          User ID                         I   N      Optional. If

                                                                  NULL, call

                                                                  GetAuditInfo.

EV01          Suppress Error Message       I   Y      0 = Do display

                                                                  error message

                                                                  1 = Do not

                                                                  display error

                                                                  message


Special Output Returned


Parameters:


Data Item    Data Structure DescriptionI/ORequiredNotes


DTAI       Error Code                   O   Y      = 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.

szHoldOrderCodeHOLDcharNONENONE

A user defined code (42/HC) that identifies why an order is on hold.

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.

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.

cSuppressErrorMsgEV01charNONENONE




0 = Do display error message

1 = Do not display error message



^

szWorkStationIDJOBNcharNONENONE

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

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).

szComputerIDCTIDcharOPTNONE

mnJobnumberAJOBSMATH_NUMERICOPTNONE

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

Related Functions

B4200340 Verify And Get Sales Header
B9800100 Get Audit Information

Related Tables

F4201 Sales Order Header File