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.
^
D4000900 - Maintain F4208 Rules
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szCustomerGroup | CPGP | char | NONE | NONE |
A user defined code (40/PC) that identifies a customer group. You can group customers with similar characteristics, such as comparable
| ||||
szPricingRule | MCAT | char | NONE | NONE |
A user defined code (40/PI) used to classify inventory by pricing rules.
Typically, these categories correspond to the major sections in the
| ||||
szPricingRuleLevel | CLV | char | NONE | NONE |
An alphanumeric code that determines the sequence in which the system displays the rules within the pricing group. You define levels when
| ||||
cActionCode | ACTI | char | NONE | NONE |
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
| ||||
cErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
|
B9800100 Get Audit Information |
F4208 Price by Customer |