S421001E_InitializeSOHeader

S421001E Sales Order Header View Controller

Major Business Rule

Object Name: B4210610

Parent DLL: CSALES

Location: Client/Server

Language: C

Data Structure

D4210610C - S421001E_InitializeSalesOrderHeader

Parameter NameData ItemData TypeReq/OptI/O/Both
szSessionKeySNKYcharREQINPUT

Session Key is the identifier of a Sales Order Session. 

szViewVersionVERScharREQINPUT

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cInitForHeaderRevisionsEV01charOPTINPUT

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

cAddressBookRevisionsEV01charOPTNONE

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

Related Functions

None

Related Tables

None
S421001E_SOHeaderViewController

S421001E_SOHeaderViewController

S421001E Sales Order Header View Controller

Major Business Rule

Object Name: B4210610

Parent DLL: CSALES

Location: Client/Server

Language: C

Data Structure

D4210610A - S421001E_SalesOrderHeaderData

Parameter NameData ItemData TypeReq/OptI/O/Both
szSessionKeySNKYcharREQINPUT

Session Key is the identifier of a Sales Order Session. 

mnOrderNoDOCOMATH_NUMERICOPTNONE

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.

szOrderTypeDCTOcharOPTNONE

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

szOrderCoKCOOcharOPTNONE

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.

nViewSelectionRequiredINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

cHeaderProcessStatusEV01charOPTOUTPUT

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

szViewVersionVERS2charOPTINPUT

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as 
menu selections). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szBusinessUnitMCUcharOPTNONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

mnAddressNumberAN8MATH_NUMERICOPTNONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnShipToNoSHANMATH_NUMERICOPTNONE

The address number of the location to which you want to ship this order. The address book provides default values for customer address, 
including street, city, state, zip code, and country.

jdOrderDateTRDJJDEDATEOPTNONE

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

jdRequestedDateDRQJJDEDATEOPTNONE

The date that an item is scheduled to arrive or that an action is scheduled for completion.

szWKBaseCurrencyCRDCcharOPTNONE

A code that identifies the domestic (base) currency of the company on a transaction. 

szCurrencyCodeCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

mnExchangeRateCRRMATH_NUMERICOPTNONE

A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.  The number in this field 
can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

szLongAddressNumberALKYcharOPTNONE

A user-defined name or number that identifies an address book record.  You can use this number to locate and enter information about the 
address book record. If you enter a value other than the address book number (AN8), such as the long address or tax ID, you must precede 
it with the special character that is defined in the Address Book constants. When the system locates the record, it returns the address book 
number to the field. For example, if address book number 4100 (Total Solutions) has a long address TOTAL and an * distinguishes it from 
other entries (as defined in the Address Book constants), you could type *TOTAL into the field, and the system would return 4100.

szLongAddressNumberShiptoALKYcharOPTNONE

A user-defined name or number that identifies an address book record.  You can use this number to locate and enter information about the 
address book record. If you enter a value other than the address book number (AN8), such as the long address or tax ID, you must precede 
it with the special character that is defined in the Address Book constants. When the system locates the record, it returns the address book 
number to the field. For example, if address book number 4100 (Total Solutions) has a long address TOTAL and an * distinguishes it from 
other entries (as defined in the Address Book constants), you could type *TOTAL into the field, and the system would return 4100.

szCreditMessageDL01charOPTNONE

A user defined name or remark.

szTempCreditMessageDL01charOPTNONE

A user defined name or remark.

szSoldToDescriptionAN8ALPHcharOPTNONE

An alphabetical description that identifies the customer to which goods are sold.

szShipToDescriptionSHANALPHcharOPTNONE

The name associated with the "ship to" record.

szReferenceVR01charOPTNONE

An alphanumeric value used as a cross-reference or secondary reference number. Typically, this is the customer number, supplier 
number, or job number.

szSoldToAttentionSDATTNcharOPTNONE

Attention field for billing specifications.

szShipToAttentionSPATTNcharOPTNONE

Attention field for shipping specifications.

szSoldToContactAlphaNameALPHcharOPTNONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

szShipToContactAlphaNameALPHcharOPTNONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

mnCustomerContactLineNumIDCCIDLNMATH_NUMERICOPTNONE

mnShipToCusContactLineNumIDSHCCIDLNMATH_NUMERICOPTNONE

Ship To Customer contact line number.

mnAddressNumberDeliveredToDVANMATH_NUMERICOPTNONE

The address number of the person who receives the goods ordered. The delivered to address might differ from the ship to address when 
ordered goods are processed through a distribution center (which is the delivered to address) before reaching their final destination (the ship 
to address).

mnAddressNumberInvoicedToITANMATH_NUMERICOPTNONE

The address book number of the person who receives the invoice.

mnAddressNumberPaidByPBANMATH_NUMERICOPTNONE

The address book number of the person who pays the amount on the invoice.

mnAddressNumberForwardedToFTANMATH_NUMERICOPTNONE

The address book number of the person to whom invoice statements are sent.

cAddressNumberForTransportAUFIcharOPTNONE

An option that indicates which address number the system uses for transportation and intrastat purposes. The system uses the address 
number as the ship to address for transportation. Valid values are: 1 The system uses the ship to address number. 2 The system uses the deliver 
to address number.

cAddressNumberForTaxAUFTcharOPTNONE

An option that indicates which address number the system uses for tax purposes. Valid values are: 1 The system uses the ship to address 
number. 2 The system uses the deliver to address number.

szLongAddressNumberDeliveredToALKYcharOPTNONE

A user-defined name or number that identifies an address book record.  You can use this number to locate and enter information about the 
address book record. If you enter a value other than the address book number (AN8), such as the long address or tax ID, you must precede 
it with the special character that is defined in the Address Book constants. When the system locates the record, it returns the address book 
number to the field. For example, if address book number 4100 (Total Solutions) has a long address TOTAL and an * distinguishes it from 
other entries (as defined in the Address Book constants), you could type *TOTAL into the field, and the system would return 4100.

szLongAddressNumberInvoicedToALKYcharOPTNONE

A user-defined name or number that identifies an address book record.  You can use this number to locate and enter information about the 
address book record. If you enter a value other than the address book number (AN8), such as the long address or tax ID, you must precede 
it with the special character that is defined in the Address Book constants. When the system locates the record, it returns the address book 
number to the field. For example, if address book number 4100 (Total Solutions) has a long address TOTAL and an * distinguishes it from 
other entries (as defined in the Address Book constants), you could type *TOTAL into the field, and the system would return 4100.

szLongAddressNumberPaidByALKYcharOPTNONE

A user-defined name or number that identifies an address book record.  You can use this number to locate and enter information about the 
address book record. If you enter a value other than the address book number (AN8), such as the long address or tax ID, you must precede 
it with the special character that is defined in the Address Book constants. When the system locates the record, it returns the address book 
number to the field. For example, if address book number 4100 (Total Solutions) has a long address TOTAL and an * distinguishes it from 
other entries (as defined in the Address Book constants), you could type *TOTAL into the field, and the system would return 4100.

szLongAddressNumberForwardedToALKYcharOPTNONE

A user-defined name or number that identifies an address book record.  You can use this number to locate and enter information about the 
address book record. If you enter a value other than the address book number (AN8), such as the long address or tax ID, you must precede 
it with the special character that is defined in the Address Book constants. When the system locates the record, it returns the address book 
number to the field. For example, if address book number 4100 (Total Solutions) has a long address TOTAL and an * distinguishes it from 
other entries (as defined in the Address Book constants), you could type *TOTAL into the field, and the system would return 4100.

szDeliveredToDescriptionALPHcharOPTNONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

szInvoicedToDescriptionALPHcharOPTNONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

szPaidByDescriptionALPHcharOPTNONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

szForwardedToDescriptionALPHcharOPTNONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

szHoldOrdersCodeHOLDcharOPTNONE

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

mnRequestedDeliveryTimeDRQTMATH_NUMERICOPTNONE

The time requested for delivery. Enter the time using the 24-hour time format (HHMMSS). For example, enter 6:00 a.m. as 060000, and enter 
7:00 p.m. as 190000.

szOrderTakenByTKBYcharOPTNONE

SALES ORDER SYSTEM:  An optional entry field, intended for the name of the individual taking the customer's order. If you do not enter a 
user ID in this field, the system uses the ID of the person who is signed on.

mnOpportunityIdOPPIDMATH_NUMERICOPTNONE

A unique identifier related to the Opportunity.

szDeliveryInstructions1DEL1charOPTNONE

One of two fields that you use to enter delivery instructions.

szDeliveryInstructions2DEL2charOPTNONE

The second of two fields that you use to enter delivery instructions.

cPricePickListYNPLSTcharOPTNONE

An option that indicates whether price information appears on the customer's pick list, purchase order, or sales order. Valid values 
are: On Price information appears Off Price information does not appear

szPrintMesgINMGcharOPTNONE

A user defined code that you assign to each print message. Examples of text used in messages are engineering specifications, hours of 
operation during holiday periods, and special delivery instructions.

szTaxAreaTXA1charOPTNONE

A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter 
against the Tax Areas table (F4008). The system uses the tax rate area in conjunction with the tax explanation code and tax rules to calculate tax 
and G/L distribution amounts when you create an invoice or voucher.

szTaxExplanationCodeEXR1charOPTNONE

A hard-coded user defined code (00/EX) that controls the algorithm that the system uses to calculate tax and G/L distribution amounts. The 
system uses the tax explanation code in conjunction with the tax rate area and tax rules to determine how the tax is calculated. Each 
transaction pay item can be defined with a different tax explanation code.

szCertificateTXCTcharOPTNONE

The number that tax authorities issue to tax-exempt individuals and companies to identify their tax-exempt status.

szAdjustmentScheduleASNcharOPTNONE

A user defined code (40/AS) that identifies a price and adjustment schedule. A price and adjustment schedule contains one or more 
adjustment types for which a customer or an item might be eligible. The system applies the adjustments in the sequence that you specify in the 
schedule. You link customers to a price and adjustment schedule through the customer billing instructions. When you enter a sales order, the 
system copies the schedule attached to the sold to address into the order header. You can override this schedule at the detail line level. For 
Agreement Management, this is the Agreement Penalty Schedule. The information in the Agreement Penalty Schedule provides the system 
with the criteria for an agreement to have penalty conditions.

szPaymentTermPTCcharOPTNONE

A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date. 
Use a blank code to indicate the most frequently-used payment term. You define each type of payment term on the Payment Terms Revisions 
form. Examples of payment terms include: Blank Net 15 001      1/10 net 30 002      2/10 net 30 003      Due on the 10th day of every month 006     
Due upon receipt  This code prints on customer invoices.

mnInvoiceCopiesINVCMATH_NUMERICOPTNONE

The number of invoice copies required by the customer. The system prints the number of invoices specified in this field. The system 
always prints at least one invoice.

mnTradeDiscountTRDCMATH_NUMERICOPTNONE

Percentage by which the system reduces the price of each item. This is the only discount that will be applied. You can override it if you 
enter a price. Enter the percentage as a whole number (that is, 5 for 5%).

szPricingGroupPRGPcharOPTNONE

A user defined code (system 40/type PC) identifying the pricing group associated with this customer or supplier:     o For sales orders, you 
assign a pricing group to a customer through the Customer Billing Instructions. Groups typically contain customers with common pricing 
characteristics, such as retailers, wholesalers, and so forth.     o For purchase orders, you assign a pricing group to a supplier through the Supplier 
Billing Instructions.

szCreditBankAcctNoCACTcharOPTNONE

The first of three fields available to record credit card transactions. This field allows you to record the customer's account number with the 
credit card company or bank.

jdCreditBankExpiredDateCEXPJDEDATEOPTNONE

This field is to record the account number and expiration date of credit cards used by your customers who make purchases from you.  It is 
for information purposes only.

szAuthorizationNoAUTNcharOPTNONE

This field lets you record the authorization number provided by the credit card company or bank which issued the card.

cApplyFreightYNAFTcharOPTNONE

An option that specifies whether the system performs freight calculations during processing.  Valid values are: On The system performs 
freight calculations during processing. Off The system does not perform freight calculations during processing.

mnCarrierCARSMATH_NUMERICOPTNONE

The address number for the preferred carrier of the item. The customer or your organization might prefer a certain carrier due to route or 
special handling requirements.

szFreightHandlingCodeFRTHcharOPTNONE

A user defined code (42/FR) designating the method by which supplier shipments are delivered. For example, the supplier could deliver to 
your dock, or you could pick up the shipment at the supplier's dock. You can also use these codes to indicate who has responsibility for 
freight charges. For example, you can have a code indicating that the customer legally takes possession of goods as soon as they leave the 
supplier warehouse and is responsible for transportation charges to the destination.

szRouteCodeROUTcharOPTNONE

The route field is a user defined code (system 42, type RT) that represents the delivery route on which the customer resides. This field is 
one of several factors used by the freight summary facility to calculate potential freight charges for an order. For picking, use the route code with 
the stop and zone codes to group all of the items that are to be loaded onto a delivery vehicle for a specific route. You set up a default for 
each of these fields on the Customer Billing Instruction form.

szStopCodeSTOPcharOPTNONE

The stop code is a user defined code (system 42, type SP) that represents the stop on a delivery route. This field is one of several factors 
used by the freight summary facility to calculate potential freight charges for an order. For picking, you can use the stop code with the route and 
zone codes to group all items that are to be loaded onto a delivery vehicle for a specific route. You set up the default for each of these fields 
on the Customer Billing Instructions form.

szZoneNumberZONcharOPTNONE

The zone field is a user defined code (system 40, type ZN) that represents the delivery area in which the customer resides. This field is one 
of several factors used by freight summary facility to calculate potential freight charges for an order. For picking you can use the zone code 
with the route and stop codes to group all item that are to be loaded onto a delivery vehicle for a specific route. You set up the default for each 
of these fields on the Customer Billing Instructions form.

szModeOfTransportMOTcharOPTNONE

A user defined code (00/TM) that describes the nature of the carrier being used to transport goods to the customer. For example, by rail, by 
road, and so on.

cOPPartialOrderShipmentAllowedOPPLcharOPTNONE

An option in order promising that specifies whether all line items must be shipped to the customer on the same date. Valid values are: Y The 
line items may be delivered on different dates, depending on availability.  N The delivery date to the customer will be the date of the latest 
line items' availabilty.

cOPPartialLineShipmentAllowedOPLLcharOPTNONE

An option that specifies whether to allow partial shipments in order promising. This option works with the Allow Backorders option. Valid 
values are: Y Split the sales order line item in order promising, deliver part of the requested inventory one day, and deliver the rest on another 
day. N Order promising cannot split the sales order line item.

cOPBackorderAllowedOPBAcharOPTNONE

An option that specifies, in order promising, whether a line item can be shipped later than the requested date, based on future availability. 
This option works with the Partial Line Shipments option. Valid values are: Y If the Partial Line Shipments value is Y, the quantity that is 
available on the requested date is shipped. The remaining quantity is shipped on the available date. If the Partial Line Shipments value is N, the 
entire quantity is shipped on the date that it becomes available. N The available quantitity on the requested date is shipped.

cOPSubstituteAllowedOPSScharOPTNONE

An option that specifies whether to allow substitution for sales order line items in order promising. Valid values are: Y The product can be 
substituted if it is unavailable. N The product cannot be substituted.

cOPMultiSourcingAllowedOPMScharOPTNONE

An option that specifies whether multisourcing is allowed in order promising. Valid values for the sales order header are: Y Allow order 
promising to source different detail lines from different branch/plants. N All line items are sourced from the same branch/plant. Valid values for the 
sales order detail are: Y Allow order promising to source the inventory for this line item from more than one branch/plant. N This line item can be 
sourced from only one branch/plant.

szOPBusinessObjectiveOPBOcharOPTNONE

A value that specifies a default business objective to send outbound to order promising before an order has been promised. A business 
objective is a grouping of business rules that fulfill a sales order. For sales order detail lines, this value specifies the business objective that is 
selected by order promising after an order has been promised.

jdCancelDateCNDJJDEDATEOPTNONE

The date that the order should be canceled if the goods have not been sent to the customer or the goods have not been received from the 
supplier. This is a memo-only field and does not cause the system to perform any type of automatic processing. If a line on a sales order in 
canceled in Sales Order Entry, this field will  be updated with the date the line has been canceled.                         

cCurrencyModeCRRMcharOPTNONE

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

mnRevisionNumberCORDMATH_NUMERICOPTNONE

The number of times this purchase order has been modified. You can locate a specific change order number to review the fields that were 
modified.

nHeaderHasAttachmentsINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

nIsHeaderRevisionsModeINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

nSalesOrderActionINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

nAttributeINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

mnPartnerAddressNumberPRAN8MATH_NUMERICOPTNONE

The address number (F0101) of the partner associated with the lead.

mnPartnerContactLineNumIDPRCIDLNMATH_NUMERICOPTNONE

The line number identifier from the Who's Who (F0111) representative of Contacts for a Partner.

szLongAddressNumberPartnerALKYcharOPTNONE

A user-defined name or number that identifies an address book record.  You can use this number to locate and enter information about the 
address book record. If you enter a value other than the address book number (AN8), such as the long address or tax ID, you must precede 
it with the special character that is defined in the Address Book constants. When the system locates the record, it returns the address book 
number to the field. For example, if address book number 4100 (Total Solutions) has a long address TOTAL and an * distinguishes it from 
other entries (as defined in the Address Book constants), you could type *TOTAL into the field, and the system would return 4100.

szPartnerDescriptionALPHcharOPTNONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

szPartnerContactDescriptionALPHcharOPTNONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

nSourceOfOrderSOORintegerOPTNONE

A code that identifies the origination source of the order.

cPaymentInstrumentRYINcharOPTNONE

The user defined code (00/PY) that specifies how payments are made by the customer. For example: C Check   D Draft   T Electronic funds 
transfer  

Related Functions

None

Related Tables

None