DeleteF4207Rules

Delete F4207 Rules

Major Business Rule

Object Name: B4000890

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

Delete inventory pricing rules F4207 rows by pricing rule, method and contract price if there is no 
customer record F4208 attached to it.


Technical Specification

Edits:
Fetch F4208 record by Pricing Rule MCAT.  If found return 0001 error number and exit function.

Fetch all F4207 records with the following partial keys:

PCTYPricing Method

MCATPricing Rule


If Contract Pricing PMPRTY is equal to PRTY, delete the record.   If it does not match ignore the 

record.

Fetch the next record with the same key.   If another record was not found exit the function.




^

Data Structure

D4000890 - Delete F4207 Rules

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

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)

cContractPricingCodePRTYcharNONENONE

A code that indicates a special pricing relationship between the item and one or more of your customers. The inventory pricing rule code 
for a contract is the item number. Valid codes are:    Blank No contract    C Indicates contract price  If you indicate that a pricing type is a contract, 
you must enter the quantity that may be sold at this contract price and the contract number, if there is one. You must also attach the contract 
pricing rule to the customer or customer group for the rule to become effective.

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

Related Functions

None

Related Tables

F4207 Price by Item
F4208 Price by Customer