GetDefaultShipToAddress

Purchase Order Entry Functions

Minor Business Rule

Object Name: B4310

Parent DLL: CDIST

Location: Client/Server

Language: C

To retrieve the default ship to address from the Branch Plant constants or from the cost center master table. ^

Data Structure

D4310B - Get Default Ship To Address

Parameter NameData ItemData TypeReq/OptI/O/Both
idPointerToBranchPlantRecordGENLNGIDNONENONE

General purpose ID variable.

cInventoryInterfaceFlagIVIcharNONENONE

A code that identifies the type of interface to the Inventory Management system. Valid values are:    Y The dollar or unit value of any activity 
containing this line type will be reflected in inventory. The system also edits the item that you enter to ensure that it is a valid item. Y is the 
default.    A The system recognizes the number that you enter as a G/L account number. The system uses this code in purchasing only.    B The 
system performs edits when using format 4 in purchase order entry.        The system retrieves price data from the inventory tables, but does not 
update the quantity on the purchase order. This code is valid only when you have set the G/L Interface field to Y (yes). Budget checking is 
fully functional when you use this interface code.    D The item in this line is an inventory item that will not affect availability or quantities.    N The 
item is not an inventory item. To verify whether the item exists in the Item Master file, use Inventory Interface N in conjunction with the flag, Edit 
the Item Master for Non-Stock Items.

szBranchPlantMCUcharNONENONE

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.

mnShipToAddressSHANMATH_NUMERICNONENONE

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.

Related Functions

None

Related Tables

F0006 Business Unit Master
F41001 Inventory Constants
F4101 Item Master
F4102 Item Branch File
F43121 Purchase Order Receiver File
ReturnBranchInfoToPO

ReturnBranchInfoToPO

Purchase Order Entry Functions

Minor Business Rule

Object Name: B4310

Parent DLL: CDIST

Location: Client/Server

Language: C

Returns information from the Branch/Plant constants data structure to
Purchase Orders for processing^

Data Structure

D4310C - Return Branch/Plant Information from GENLNG

Parameter NameData ItemData TypeReq/OptI/O/Both
idPointerToF41001DSGENLNGIDNONENONE

General purpose ID variable.

cSymbolForShortSYM1charNONENONE

A symbol that identifies the 8-character short item number when you do not want to use it as the primary number. A blank in this field 
indicates that you want to use this item number as the primary number. That is, you use it most often to enter or review information. If this is not the 
primary number, you must enter a special symbol to identify it. Use a symbol that is not significant for any other purposes of entry such as /, *, or &. 
Do not use a period or a comma as a symbol. When you enter this item number on any other form, you must include this symbol as the first 
character. NOTE: Only one of the fields for item number symbols (SYM1, SYM2, SYM3, or SYM6) can be blank to identify it as the primary 
number. All others must include a unique symbol.

cSymbolForLongSYM2charNONENONE

A symbol that identifies the 25-character second item number when you do not want to use it as the primary number. A blank in this field 
indicates that you want to use this item number as the primary number. That is, you use it most often to enter or review information. If this is not the 
primary number, you must enter a special symbol to identify it. Use a symbol that is not significant for any other purposes of entry such as /, *, 
or &. Do not use a period or a comma as a symbol. When you enter this item number on any other form, you must include this symbol as the 
first character. NOTE: Only one of the fields for item number symbols (SYM1, SYM2, SYM3, or SYM6) can be blank to identify it as the primary 
number. All others must include a unique symbol.

cSymbolForThirdSYM3charNONENONE

A symbol that identifies the 25-character third item number when you do not want to use it as the primary number. A blank in this field 
indicates that you want to use this item number as the primary number. That is, you use it most often to enter or review information. If this is not the 
primary number, you must enter a special symbol to identify it. Use a symbol that is not significant for any other purposes of entry such as /, *, or &. 
Do not use a period or a comma as a symbol. When you enter this item number on any other form, you must include this symbol as the first 
character. Note: Only one of the fields for item number symbols (SYM1, SYM2, SYM3, or SYM6) can be blank to identify it as the primary 
number. All others must include a unique symbol.

cSymbolForSupplierItemSYM5charNONENONE

A character that identifies the customer's or supplier's number in your system. When you enter a number preceded by this character, the 
system recognizes the number as the customer's or supplier's number. The system then use the cross-reference table to match the number to 
your item number. You must complete this field if you want the system to perform cross-referencing.

Related Functions

None

Related Tables

F0006 Business Unit Master
F41001 Inventory Constants
F4101 Item Master
F4102 Item Branch File
F43121 Purchase Order Receiver File
ReturnItemInformationToPO

ReturnItemInformationToPO

Purchase Order Entry Functions

Minor Business Rule

Object Name: B4310

Parent DLL: CDIST

Location: Client/Server

Language: C

This Business FUnction returns Item Master (F4101) and Item Balance (F4102) information from the data 
structures to the application for Purchase Order Entry processing.

Data Structure

D4310D - Return Item information to PO Entry

Parameter NameData ItemData TypeReq/OptI/O/Both
szFlashMessageIFLAcharNONENONE

User defined code system 40, type FL, which is used to flash a warning message about a particular item.

cStockingTypeSTKTcharNONENONE

A user defined code (41/I) that indicates how you stock an item, for example, as finished goods or as raw materials. The following stocking 
types are hard-coded and you should not change them:    0   Phantom item    B Bulk floor stock    C Configured item    E Emergency/corrective 
maintenance    F Feature    K Kit parent item    N Nonstock  The first character of Description 2 in the user defined code table indicates if the item 
is purchased (P) or manufactured (M).

szGLClassCodeGLPTcharNONENONE

A user defined code (41/9) that identifies the G/L offset that system uses when it searches for the account to which it posts the transaction. If 
you do not want to specify a class code, you can enter **** (four asterisks) in this field. You can use automatic accounting instructions (AAIs) to 
predefine classes of automatic offset accounts for the Inventory Management, Procurement, and Sales Order Management systems. You 
might assign G/L class codes as follows:    IN20   Direct Ship Orders    IN60   Transfer Orders    IN80   Stock Sales  The system can generate 
accounting entries based upon a single transaction. For example, a single sale of a stock item can trigger the generation of accounting entries 
similar to the following:         Sales-Stock (Debit) xxxxx.xx     A/R Stock Sales (Credit) xxxxx.xx     Posting Category: IN80             Stock Inventory 
(Debit) xxxxx.xx     Stock COGS (Credit) xxxxx.xx The system uses the class code and the document type to find the AAI.

mnItemNumberShortITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szItemNumberSecondLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szItemNumberThirdAITMcharNONENONE

The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
numbers are as follows: 1.  Item Number (short) - An 8-digit, computer-assigned item number. 2.  2nd Item Number - The 25-digit, free-form, user 
defined alphanumeric item number. 3.  3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item number.  In addition to 
these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT). Numerous cross references to 
alternate part numbers can be user defined, such as substitute item numbers, replacements, bar codes, customer numbers, or supplier 
numbers.

szUnitOfMeasure_PrimaryUOM1charNONENONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA 
(each) or KG (kilogram).

szUnitOfMeasure_SecondaryUOM2charNONENONE

A user defined code (00/UM) that indicates an alternate unit of measure for the item.

szUnitOfMeasure_PurchasingUOM3charNONENONE

A code (table 00/UM) that identifies the unit of measure in which you usually purchase the item.

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

szItemDescription1DSC1charNONENONE

Brief information about an item; a remark or an explanation.

szItemDescription2DSC2charNONENONE

A second, 30-character description, remark, or explanation.

szPurchasingCode5PRP5charNONENONE

A user defined code (41/P5) that indicates the landed cost rule for an item. The landed cost rule determines purchasing costs that exceed 
the actual price of an item, such as broker fees or commissions. You set up landed cost rules on the Landed Cost Revisions form.

szPurchasingCode1PRP1charNONENONE

A code (table 41/P1) that represents an item property type or classification,such as commodity type, planning family, or so forth. The 
system uses this code to sort and process like items. This field is one of six classification categories available primarily for purchasing purposes.

szPurchasingCode2PRP2charNONENONE

A code (table 41/P2) that represents an item property type or classification,such as commodity type, planning family, or so forth. The 
system uses this code to sort and process like items. This field is one of six classification categories available primarily for purchasing purposes.

szPurchasingCode3PRP3charNONENONE

A code (UDC table 41/P3) that represents an item property type or classification, such as commodity type, planning family, or so forth. The 
system uses this code to sort and process like items. This field is one of six classification categories available primarily for purchasing 
purposes.

szPurchasingCode4PRP4charNONENONE

A user defined code (41/P4) that represents an item property type or classification, such as commodity type or planning family. The system 
uses this code to sort and process like items. This field is one of six classification categories available primarily for purchasing purposes.

szSalesCode1SRP1charNONENONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or use.

szSalesCode2SRP2charNONENONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or 
use. This field represents one of ten property type categories available for sales purposes.

szSalesCode3SRP3charNONENONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or use.

szSalesCode4SRP4charNONENONE

One of ten category codes to be used for sales coding purposes. These codes can represent such classifications as color, material 
content, or use.

szSalesCode5SRP5charNONENONE

One of ten category codes to be used for sales coding purposes.  These codes can represent such classifications as color, material 
content, or use.

szShippingCommodityClassSHCMcharNONENONE

A user defined code (41/E) that represents an item property type or classification (for example, international shipment handling). The 
system uses this code to sort and process similar items. This field is one of three classification categories available primarily for inventory and 
shipping purposes.

szShippingConditionsCodeSHCNcharNONENONE

A code (table 41/C) that represents an item property type or classification,such as special shipping conditions. The system uses this code 
to sort and process like items. This field is one of three classification categories available primarily for inventory and shipping purposes.

mnBuyerBUYRMATH_NUMERICNONENONE

The address number of the person responsible for setting up and maintaining the correct stocking levels for the item.

mnCarrierCARPMATH_NUMERICNONENONE

The address book number for the preferred carrier of the item. The supplier or your organization might prefer a certain carrier because of 
route or special handling requirements.

szPrintMessageINMGcharNONENONE

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.

szPricingGroupPRGPcharNONENONE

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.

szUnitOfMeasure_WeightUWUMcharNONENONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to indicate weight for this item. You can specify ounces, 
grams, kilograms, and so on, as weight standards. The system uses this unit of measure for the item or overrides it for an individual item or 
container.

szUnitOfMeasure_VolumeUVM1charNONENONE

A user defined code (00/UM) that indicates the unit of measure by metric conversion for ambient volume. For example, the unit of measure 
code for a gallon might be GL, or for a liter it might be LT.

cPurchasePricingLevelPPLVcharNONENONE

A code that indicates where to retrieve the purchase price for an item when you enter a purchase order. Valid codes are:    1   Use the 
supplier/item price from the Purchase Price table (F41061).    2   Use the supplier/item/branch price from the Purchase Price table (F41061).    3   Use 
the inventory cost from the Inventory Cost table (F4105). This cost is based on the inventory cost level and the purchasing cost method you 
specify for the item. The first two codes are applicable only if you set up supplier costs in the Procurement system. If you do not set up 
supplier costs, the system uses the inventory cost as the default for the purchase order.

cCostLevelCLEVcharNONENONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

cPotencyControlFlagOT1YcharNONENONE

A code that indicates whether you control the item by potency.

mnStandardPotencySTDPMATH_NUMERICNONENONE

The percentage of active ingredients normally found in an item.

cMRPNetChangeFlagMRPCcharNONENONE

This flag is turned on when this item has had some kind of activity that would affect one of the different planning parameters that would 
impact the Requirements Plan.

cGradeControlFlagOT2YcharNONENONE

A code that indicates whether you control the item by grade.

mnFromPotencyFRMPMATH_NUMERICNONENONE

A number that indicates the minimum potency or percentage of active ingredients acceptable for an item. The system displays a warning 
message if you try to purchase or issue items that do not meet the minimum acceptable potency. The system does not allow you to sell items 
that do not meet the minimum acceptable potency.

mnThruPotencyTHRPMATH_NUMERICNONENONE

A number that indicates the maximum potency or percentage of active ingredients that is acceptable for an item. The system displays a 
warning message if you try to purchase or issue items that have a potency that exceeds the maximum potency acceptable. The system does 
not allow you to sell items that have a potency that exceeds the maximum potency acceptable.

szFromGradeFRGDcharNONENONE

A user defined code (40/LG) that indicates the minimum grade that is acceptable for an item. The system displays a warning message if 
you try to purchase or issue items with grades that do not meet the minimum grade acceptable. The system does not allow you to sell items 
with grades that do not meet the minimum acceptable level.

szThruGradeTHGDcharNONENONE

A user defined code (40/LG) that indicates the maximum grade that is acceptable for an item. The system displays a warning message if 
you try to purchase or issue items with grades that exceed the maximum grade acceptable. The system does not allow you to sell items with 
grades that exceed the maximum grade acceptable.

cPurchaseTaxableCodeTXcharNONENONE

A code that indicates whether the item is subject to sales tax when you purchase it. The system calculates tax on the item only if the supplier 
is also taxable.

idPointerToF4101DSGENLNGIDNONENONE

General purpose ID variable.

idPointerToF4102DSGENLN2IDNONENONE

General purpose ID variable.

cErrorCodeERRcharNONENONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

Related Functions

None

Related Tables

F0006 Business Unit Master
F41001 Inventory Constants
F4101 Item Master
F4102 Item Branch File
F43121 Purchase Order Receiver File
VerifyPOMatchStatus

VerifyPOMatchStatus

Purchase Order Entry Functions

Minor Business Rule

Object Name: B4310

Parent DLL: CDIST

Location: Client/Server

Language: C

To check whether a two way match exists for a non-inventory detail line of a Purchase Order
^

Data Structure

D4310A - Verify PO Match Status

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentOrderInvoiceDOCOMATH_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.

cErrorCodeERRcharNONENONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

szOrderSuffixSFXOcharOPTNONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

Related Functions

None

Related Tables

F0006 Business Unit Master
F41001 Inventory Constants
F4101 Item Master
F4102 Item Branch File
F43121 Purchase Order Receiver File