GetSoldToBillingInstructions

Get Sold To Billing Instructions

Minor Business Rule

Object Name: B4200100

Parent DLL: CDIST

Location: Client/Server

Language: C

Retrieves billing instructions defaults from the Customer Master Table (F0301) for the Sold To 
Address specified.  This function will issue an error if the record is not found.  errorcode = 1.  The 

SuppressErrorMsg flag will control whether an error message should be issued when the record is not found.  


        SuppressErrorMsg = 1     - if a record is not found - DO NOT  display

                                                         the error message on the screen.

        


Data Structure

D4200100 - Get Sold To Billing Instructions


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnSoldToAddressAN8MATH_NUMERICNONENONE

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

cSuppressErrorMsgEV02charNONENONE

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

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

szTemporaryCreditMsgTSTAcharNONENONE

A user defined code that identifies a temporary credit status. Generally, you assign the code when an account becomes past due. The 
system automatically updates the temporary credit message based on the notification instructions that you set up for the policy that you assign to 
the customer. The system can automatically reset the temporary credit message back to the credit message if you activate the option in 
the policy. You can also manually enter and update the temporary credit message on the customer record.  If you leave this field blank, the 
system assigns the value of the Credit Message field when you run Credit Analysis Refresh (R03B525). The system displays the temporary 
credit message on the transaction entry forms in the Accounts Receivable and Sales Order Management systems. 

cBillingAddressNumberBADTcharNONENONE

Code that tells the system to use this address as a Sold To address, a Ship To address, or both. Valid codes are:    X Indicates a bill to and 
a ship to address    S Indicates a ship to address only    B Indicates a bill to address only

szTaxExplainationCodeEXR1charNONENONE

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.

cCustomerPORequireDatePORQcharNONENONE

This field is used to indicate if the Customer Purchase Order Number field is required to be entered for the customer.  This field is editted 
during Sales Order Entry.

szPaymentTermsTRARcharNONENONE

A code that indicates the default payment terms for a customer. Payment terms determine the due date, discount amount, and discount due 
date that the system assigns when you create an invoice. Use a blank code for the payment terms that you use most frequently.  Examples 
of payment terms include: Blank Net 15   1 1/10 net 30   2 2/10 net 30   D Due upon receipt   N Net 30   P Prox 25th  

cPaymentInstructionsRYINcharNONENONE

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  

szCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

szAdjustmentScheduleASNcharNONENONE

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.

szCustomerPricingGroupCPGPcharNONENONE


^

mnInvoiceCopiesINVCMATH_NUMERICNONENONE

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.

szHoldCodeHOLDcharNONENONE

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

szPrintMsgINMGcharNONENONE

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.

cPricePickListPLSTcharNONENONE

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

cBackOrderAllowedBACKcharNONENONE

An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item 
Branch/Plant (P41026) programs, by customer using the Customer Billing Instructions program (P03013), or by branch/plant using the 
Branch/Plant Constants program (P41001).  Valid values are: On Allow backorders for this item. Off Do not allow backorders for this item, regardless of 
the backorders code that is assigned to the customer.

cPriorityCodePRIOcharNONENONE

A code that tells the system to handle this customer's orders on a priority basis. Use this value to set up print pick slips so you can choose 
to print them on a priority basis. This code is assigned from the Customer Billing Instructions. In addition, the backorder print report and 
automatic batch release program can be sequenced by this code to release those orders with the highest priority first.

mnTradeDiscountTRDCMATH_NUMERICNONENONE

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

mnMaximumOrderMAXOMATH_NUMERICNONENONE

Value above which an order is placed on hold. If you try to enter an order whose total is more than the maximum order value, the system 
displays an error message. This field is maintained as an integer without decimals.

mnMinimumOrderMINOMATH_NUMERICNONENONE

Value below which an order is placed on hold. If you try to enter an order whose total is less than the minimum order value, the system 
displays an error message. This field is maintained as an integer without decimals.

mnRelatedAddressNumAN8RMATH_NUMERICNONENONE

Use this field to relate a ship-to address to a sold-to address or vice versa. For example, if you enter only a ship-to address in sales order 
entry, it uses this field to determine which address number to select from the list of related address numbers which is then defaulted to the 
order's blank Sold To field.

cInvoiceConsolidationICONcharNONENONE

Code that tells the system whether a customer wants consolidated invoices. Valid codes are:    Y Customer wants consolidation.    N 
Customer does not want consolidation. If you specify consolidation, the system generates a single invoice from multiple sales orders.

cSendInvoiceToSITOcharNONENONE

A code that identifies the billing name and address to print on the invoice. Valid codes are: C Customer (AN8)   N Do not print. The Real 
Estate Management system (15) ignores this value; it uses the value of the Print Invoice field (INVP) from the billing record or lease.    P Parent 
(PA8)   R Payor (PYR) 1 1st Address Number (AN81)   2 2nd Address Number (AN82)   3 3rd Address Number (AN83)   4 4th Address Number (AN84)  
5 Factor Special/Payee (AN85)   6 5th Address Number (AN86) Note: With the exception of Payor, which you set up in the customer record in 
the Alternate Payee field (AYPR), all of the above codes correspond to related address information that you set up in the address book 
record.  Note: If you have a Who's Who entry that is set up with type code B (for billing), the system overrides the billing name with the entry from the 
Who's Who record.

cCreditCheckLevelARTOcharNONENONE

A code that controls the way the system conducts credit checking. Codes are:    P Credit check based on the customer's parent number (P 
for Parent)    C Credit check against the customer number only    S Credit check against the customer number only  If you use method P, the 
system compares the open accounts receivable and open sales orders for the sum of the children and the parent against the credit limit for the 
parent number.  Use this, for example, when a customer with multiple offices or branches, each of which order from you, asks that all credit 
checking be reflected in a single account. NOTE: Even though credit checking can be conducted at the parent or customer number level, all 
accounts receivable will be posted to the customer number (SDAN8) during Sales Update (P42800).

cCreditHoldExemptEXHDcharNONENONE

Code indicating if the customer is exempt from credit checking in the Sales Order Processing cycle.  Valid codes are:    Y Sales order entry 
should not check the customer's credit.    N This customer is not exempt from credit checking. If credit checking is      activated through the 
Sales Order Entry processing options and the customer goes over the limit, the order will be put on hold. (You set up a credit limit for the 
customer in the address book).

szABAmntCurrCodeCRCAcharNONENONE

The currency in which amounts are stored in the address book. For example, the credit limit, invoiced this year, invoiced prior year, and so 
on. The currency you specify is used to record and store transaction history.

szGLClassCodeARCcharNONENONE

A code that determines the A/R trade account that the system will use as the offset when you post invoices. The system concatenates the 
value that you enter to the AAI item RC to locate the trade account. For example, if you enter TRAD, the system searches for the AAI item 
RCTRAD to locate the account to use for the offset. The value in this field can be alphanumeric or can match the object code of the G/L account 
number. If you leave this field blank, the system uses the account that is set up for RC to locate the account number. The value in this field can 
also be used to locate the offset for unapplied receipts if you specify its use in the processing options for Standard Receipts Entry or the draft 
entry programs. Otherwise, the system uses the account that is set up for RCUC.  You can override the value of this field when you enter the 
transaction. Note: Do not use class code 9999; it is reserved for the post program and indicates that offsets should not be created.

cDeliveryNotFlagEDF1charNONENONE

An option that specifies whether the system prints delivery notes for this customer on the invoice. Valid settings are: On The system prints 
delivery notes on the invoice. Off The system does not print delivery notes on the invoice. 

cPrintPriceAdjOnInvoiceDSPAcharNONENONE

Use this field to control whether the system should print the price adjustment details on the customer's sales invoice.  This field is only 
active if you are using the Advanced Price Adjustment module (System Code 4010).

cItemRestrictionsEDF2charOPTNONE

A code that designates whether restrictions have been placed on the sale of items to this customer. Valid values are:    Blank No restrictions.  
  I      A customer can be sold only those items set up on the Item Restrictions screen.    E      A customer cannot be sold the items set up on 
the Item Restrictions screen.

szCompanyCOcharOPTNONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

cAbcCodeSalesABC1charOPTNONE

A grade that indicates the level of sales activity for a customer or inventory item. This grade documents the 80/20 principle (80 percent of 
the significant results is attributable to 20 percent of the business effort). The possible grades are A (best) to F (worst).

cAbcCodeMarginABC2charOPTNONE

A code that represents an item's ranking by average investment. You can assign a code or let the system assign it. Valid codes 
are: A Assign this item to the first amount ranking   B Assign this item to the second amount ranking   C Assign this item to the third amount ranking   D Skip 
this item in the ABC Analysis  If you leave this field blank, the system assigns the code when you run the ABC Analysis program (R4164) 
based on an item's value as follows:   o Total Item Average Investment divided by Business Unit Average     o Investment equals the Item's 
Calculated Value Total

cAbcCodeAverageDaysABC3charOPTNONE

A grade that indicates the average number of days a customer takes to pay a bill. This code documents the 80/20 principle. The possible 
grades are A (best) to F (worst).

mnAverageDaysToPayAVDMATH_NUMERICOPTNONE

The average number or days that it takes a customer to pay an invoice. The system calculates the average days late, which is 
nonweighted, by determining the number of days that each invoice was past due, and then dividing that number by the total number of invoices. The 
system calculates the average days late when you run the Statistics History Update program (R03B16).

szBuyingSegmentCodeBSCcharOPTNONE

A value that groups customers with similar buying habits.

cBypassAuditLoggingBYALcharOPTNONE

An option that specifies whether to bypass the audit logging process for sales order changes.

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.

cCustomerStatusCUSTScharOPTNONE

This field indicates the customer status for CRM purposes.  Valid values are: Off or null Active On or 1 Inactive

szSoldToAddressSearchTypeAT1charOPTNONE

A user defined code (01/ST) that specifies the kind of address book record to search for. Examples include: E Employees   X Ex-employees  
V Suppliers   C Customers  P    Prospects M Mail distribution lists   TAX Tax authorities

mnSynchronizationStatusSYNCSMATH_NUMERICOPTNONE

A user defined code that indicates the post synchronization validation status of the record.  Valid Values are: 0 Success (Blank) 1 The record 
is pending post synchronization Add validation on the server (PVA) 2 The record is pending post synchronization Change validation on the 
server (PVC) 3 The record is in error from the post synchronization Add validation on the server (ERRA) 4 The record is in error from the post 
synchronization Change validation on the server (ERRC) 5 The associated F0101 record is in error (ERRP) 6 The record is pending post 
synchronization Add validation on the server and the associated F0101 record is in error (ERRPA) 7 The record is pending post synchronization 
Change validation on the server and the associated F0101 record is in error (ERRPC)

Related Functions

None

Related Tables

None