MaintainF4208Rules

Maintain F4208 Rules

Major Business Rule

Object Name: B4000900

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

Inquire/Write/Update or Delete customer pricing rule record F4208.


Setup Notes and Prerequisites


Special Logic




Technical Specification


Edits:

If  Action Code ACTI is equal to 'I' and Customer Group CPGP is not NULL, or Action Code ACTI is 'D'  
Fetch F4208 record by Customer Group CPGP, Pricing Rule MCAT and Pricing Rule Level CLV.  If not 

found return 0002 error number and exit function.


If  Action Code ACTI is equal to 'I' and Customer Group CPGP is NULL and Pricing Rule Level is not 

NULL,  Fetch F4208 record by  Pricing Rule MCAT and Pricing Rule Level CLV.  If not found return 0002 

error number and exit function.


If  Action Code ACTI is equal to 'I' and Customer Group CPGP is NULL and Pricing Rule Level is NULL,  

Fetch F4208 record by  Pricing Rule MCAT.  If not found return 0002 error number and exit function.


If  Action Code ACTI is equal to 'C'  Fetch F4208 record by Customer Group CPGP and Pricing Rule 

MCAT.  If not found return 0002 error number and exit function.


If  Action Code ACTI is  equal to 'A' assign the following values to the data base file F4208:

PGCPGP  = CPGP;

PGMCAT =  MCAT;

PGCLV    =  CLV;


If  Action Code ACTI is  equal to 'C' assign CLV to PGCLV in the data base file F4208:


If  Action Code  ACTI is equal to 'A', write a new F4208 record.

If  Action Code  ACTI is equal to 'C', update the fetched F4208 record.

If  Action Code  ACTI is equal to 'D', delete  the fetched F4208 record.


If Action Code ACTI is equal to 'A' or 'C' update the Updated Date PGUPMJ and Time PGTDAY from a 

business function Get Audit Information B9800100.





^

Data Structure

D4000900 - Maintain F4208 Rules

Parameter NameData ItemData TypeReq/OptI/O/Both
szCustomerGroupCPGPcharNONENONE

A user defined code (40/PC) that identifies a customer group. You can group customers with similar characteristics, such as comparable 
pricing.

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.

szPricingRuleLevelCLVcharNONENONE

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.

cActionCodeACTIcharNONENONE

A code that indicates the activity you want to perform.  Valid codes are:    A Add    C Change    I Inquire    D Delete    .     End the program    Blank 
Clear the screen  NOTE: Depending on how your company has set up action code security, you may not be authorized to use all action 
codes.

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

B9800100 Get Audit Information

Related Tables

F4208 Price by Customer