Functional Description
Purpose
This function does two things. If the grade or potency changed from the original and there are quantities committed for the location give a warning.
Validates that the grade or potency is within the valid range for the branch
Setup Notes and Prerequisites
Special Logic
Technical Specifications
Edits:
1.) If the Grade is different from the Original Grade
Or the Potency is different from the Original Potency
Fetch the ItemBalance Record (F4102) with two keys (ITM, MCU)
If the grade is different than the original grade
If the Quantity Soft Committed (PCOM)is not equal to zero
Or the Quantity Hard Committed (HCOM) is not equal to zero
give warning "0045" and highlight the grade
If Grade Control (OT2Y) from the F41021 is equal to Y
If the grade is less than the From Grade(FRGD) from the F41021
Or greater than the ThruGrade (THDG) from the F41021
give warning "4493" and highlight the grade
If the potency is different than the original potency
If the Quantity Soft Committed (PCOM) is not equal to zero
Or the Quantity Hard Committed (HCOM) is not equal to zero
give warning "0045" and highlight the potency
If Potency Control (OT1Y) from the F41021 is equal to Y
If the grade is less than the From Potency(FRMP) from the F41021
Or greater than the ThruPotency (THRP) from the F41021
give warning "4492" and highlight the potency
Retrievals:
Returns:
1.) Warning messages
^
D4100080 - Grade Potency Warnings
Parameters:
Data Item Data Structure DescriptionI/ORequired
LOTGszGradeIN
LOTPmnPotencyIN
LOTGszOriginalGradeIN
LOTPmnOriginalPotencyIN
ITMmnShortItemNumberIN
MCUszBranchPlantIN
PCOMmnSoftCommittedIN
HCOMmnHardCommittedIN
EV01cSuppressErrorMsgIN
ERRcErrorCodeON
DTAIszErrorMessageIDON
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szGrade | LOTG | char | NONE | NONE |
A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:
A1 Premium
| ||||
mnPotency | LOTP | MATH_NUMERIC | NONE | NONE |
A code that indicates the potency of the lot expressed as a percentage of active or useful material (for example, the percentage of alcohol
| ||||
szOriginalGrade | LOTG | char | NONE | NONE |
A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:
A1 Premium
| ||||
mnOriginalPotency | LOTP | MATH_NUMERIC | NONE | NONE |
A code that indicates the potency of the lot expressed as a percentage of active or useful material (for example, the percentage of alcohol
| ||||
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szBranchPlant | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
mnSoftCommitted | PCOM | MATH_NUMERIC | NONE | NONE |
The number of units soft committed to sales orders or work orders in the primary units of measure. | ||||
mnHardCommitted | HCOM | MATH_NUMERIC | NONE | NONE |
The number of units committed to a specific location and lot. | ||||
cSuppressErrorMsg | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cErrorCode | ERR | char | NONE | NONE |
The Data Field Error Code field is simply a generic data field to pass an error condition flag. This field is one of the fields that make up the
| ||||
szErrorMessageID | DTAI | char | NONE | NONE |
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
|
B4000420 Analyze Grade Range. | ||||
B4000430 Analyze Potency Range |
F4102 Item Branch File |