VerifyInventoryRuleIsUnique

Verify Inventory Rule Is Unique

Minor Business Rule

Object Name: B4001030

Parent DLL: COPBASE

Location: Client/Server

Language: C

This Business Function Verifies the existence of the combination of Inventory Rule and Pricing Method in F4207. It is useful while adding a 
new inventory rule in F4207.  It takes the parameters PCTY (Pricing Method), MCAT (Pricing Rule) and EV01 (Suppress Error Message) and it 
returns ERRC (Error Code : 0 for OK and 1 for Error) and DTAI ( Error Messag ID)^

Data Structure

D4001030 - Verify Inventory Rule Is Unique

Parameter NameData ItemData TypeReq/OptI/O/Both
cPricingMethodPCTYcharNONENONE

A user defined code (42/CT) that indicates the basis for the price rule. Valid values are:    P Purchase order discounts    O Order repricing    R 
Line repricing (basket repricing)

szPricingRuleMCATcharNONENONE

A user defined code (40/PI) used to classify inventory by pricing rules. Typically, these categories correspond to the major sections in the 
inventory price book. You can set up as many detail categories as you need. A single code can be used for sales, purchasing, order/basket, 
and contract pricing. If you set up a contract rule, it must equal the short number for the item under contract.

szErrorMesgIDDTAIcharNONENONE

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.

cSuppressErrorMesgEV01charNONENONE

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

szPricingLevelCLVcharNONENONE

An alphanumeric code that determines the sequence in which the system displays the rules within the pricing group. You define levels when 
you set up the pricing groups.

jdExpirationDateCXPJJDEDATENONENONE

The date a particular pricing level within a pricing method expires. Within a pricing method there might be multiple records that have the 
same level identifier, discount percentage and so forth, but have different expiration dates. This might occur due to special promotion periods.

Related Functions

None

Related Tables

F4207 Price by Item