ICI1.1
ICI1.1 - Unit Of Measure Routines

ICI1 is an invoked program which contains routines to perform variousfunctions involving units of measure in the Lawson procurement applications. What follows is an excerpt taken from program code to describe its purpose: "THIS PROGRAM IS DESIGNED AS A "FUNCTION OBJECT" AND IS INVOKED BY ICUOM71CP. PROGRAMMERS USE THIS FUNCTION BY FILLING INPUT FIELDS AND "PERFORMING" THE 2000-ICUOM-OBJECT ROUTINE, WHICH IS LOCATED IN ICUOM71CP. SEE THE DOCUMENTATION IN THE HEADER OF ICUOM71CP FOR A FULL DESCRIPTION OF USAGE AND REQUIREMENTS. THIS PROGRAM IS NOT MEANT TO BE USED AS A STAND ALONE PROGRAM BUT A TOOL FOR PROGRAMMERS TO PERFORM UNIT OF MEASURE FUNCTIONS BASED ON ITEM INFORMATION PASSED FROM ICUOM71CP. FOR TESTING PURPOSES ICI1 MAY BE RUN BY ITSELF WITH THE USER MANUALLY FILLING IN ITEM INFORMATION TO THE SCREEN FIELDS." In normal programming use, the information within the "Unit of MeasureInformation" box would be passed to this routine by the calling program eithermanually or by using companion APIs to retrieve this item information which originates in the itemmaster record. However, in order to successfully process routines using the ICI1 screen,because this program does not read itemmaster records directly, the fields inthe "Unit of Measure Information" box must be filled manually. One caveat to entering this information manually on this screen is that whenUOM information is normally entered on the item master update screen, editing is done to ensure accurate entry. A suggestion for testing this screen with valid item information is to run the IC11 Item Master screen. Inquire on an item and then switch to the UOM tab. Use the information from the IC11 table to fill the table on ICI1. CONVERT This function takes an input UOM or input UOM multiplier, and a quantityand converts them to an alternate UOM that you specify in the sub function code. REQUIRED INPUT UOM or multiplier to convert from Quantity to convert from To UOM or To Multiplier required for the ALT sub function only OPTIONAL INPUT Unit Cost to convert from OUTPUT UOM converted to Multiplier converted to Quantity converted to Unit cost converted to if a unit cost was entered in input A CRT-ERROR if one occurred SUB FUNCTIONS STOCK Convert to stock unit of measure (default) ALT Convert to the alternate unit of measure or multiplier described in the TO UOM or TO MULTIPLIER fields TRANS Convert to the default trans UOM for this item SELL Convert to the default sell UOM for this item SELL-PRI Convert to the default sell pri UOM for this item BUY Convert to the default buy UOM for this item DEFAULT This function returns the default unit of measure and multiplier for thespecified sub function. The defaults are determined by the flags set in the UOM table. For example, under the buy column there is a flag which describes how theunit of measure in the UOM column is to be treated in the Inventory Control application. A "1" indicates that this unit of measure is valid and that it is the default (only a single "1" may exist under the buy column for any item), "2" indicates a valid buy unit of measure, and a space means that this is an invalid buy unit of measure. REQUIRED INPUT A sub-function to describe which default to return OUTPUT The default unit of measure requested in sub-function The corresponding multiplier for the default unit of measure SUB FUNCTIONS TRANS Return the default trans UOM and multiplier SELL Return the default sell UOM and multiplier SELL-PRI Return the default sell price UOM and multiplier BUY Return the default buy UOM and multiplier VALIDATE This function takes a input unit of measure and validates it according tothe specified sub function, using the flags in the UOM information table for that item. For example, to validate that the UOM "EACH" is a valid buy unit ofmeasure the routine looks at the value in the buy flag field for the unit of measure "EACH". If this value is a "1" or a "2", this indicates a valid buy unit of measure. If the entered unit of measure is not valid, then an error message is sent. REQUIRED INPUT A sub function to describe the type of validation (alt is default) An input UOM to be validated OUTPUT An error message (number and category) is returned if the unit of measure is invalid If the unit of measure is valid, then a multiplier is returned SUB FUNCTIONS ALT Validate that the UOM is an alternate UOM (default) ALT-STK Validate that the UOM is an alternate stock UOM TRANS Validate that the UOM is a trans UOM SELL Validate that the UOM is a sell UOM SELL-PRI Validate that the UOM is a sell price UOM BUY Validate that the UOM is a buy UOM QUERY This function is a unit of measure query that will return a value of TRUEor FALSE in the QUERY-FL field. The goal of the query is described by the subfunction. REQUIRED INPUT A sub function to describe the query OUTPUT The query flag is set to either true or false SUB FUNCTIONS ALT-STK Inquire whether this item has alternate stock units of measure other than the stock unit of measure itself. Meaning, is the tracking flag set on any other UOM.

Updated Files
None.



Referenced Files
ICCOMPANY - No Description Available.
ITEMLOC - No Description Available.
ITEMMAST - No Description Available.
POITEMVEN - No Description Available.
PROCUREGRP - No Description Available.



Calling Programs
AP125
AP126
AP131
AP20
AP21
AP23
AP25
AP26
AP27
AP30
API1
API2
ICI9
MA41
MA43
MA540
MAI1
MM280
PO136
PO15
PO190
PO300
PO520
PO64
POCP
POI3
POI7
POIH
POII
POIJ
POIM
RQ50




File created: Wed Jun 08 20:49:41 2016

Nogalis, inc.
Contact Us

All trademarks and registered trademarks are the property of their respective owners.