CheckItemRestrictions

Check Item Restrictions

Minor Business Rule

Object Name: B4200270

Parent DLL: CDIST

Location: Client/Server

Language: C

Use this function to retieve the Item Restrictions By Customer (ship to) or Supplier.  If the 
customer master file F0301 specifies that this customer is a restricted customer, then check F4013 to see if 

this item is excluded or included for sale.  If Item Restrictions Code = I  the item is Included in 

the allowed items for sale.  If Item Restrictions Code = E  the item is Excluded from the allowed items 

for sale

^

Data Structure

D4200270 - Check Item Restrictions

Parameter NameData ItemData TypeReq/OptI/O/Both
cItemRestrictionsCodeEDF2charNONENONE

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.

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

mnShortItemNumberITMMATH_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

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

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.

szPrimaryItemNumberUITMcharNONENONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

cTestForPurchaseOrSalesEV01charNONENONE

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

Related Functions

B0000083 Convert Math Numeric to String with Left Zero Pad

Related Tables

F4013 Order Processing Cross Reference File