SaveAndRetrieveExtendedQuantity

Save And Retrieve Extended Quantity

Major Business Rule

Object Name: B3001340

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
The purpose of this function is to calculate the extended required qunatities for an exploded bill of 
material.  A mode will be used to determine if the quantity should be saved or retrieved.  The level 

parameter will be used to indicate to the function what level of the bill of material the explosion is 

at. 


1.2Setup Notes and Prerequisites

You must know the level of the bill of material that you are at before calling this funciton.  The 
way the function is designed will assume that when you are retrieving a quantity it is from the previous 

level and you are using this quantity to calculate your current level's required quantity.  When you 

are calling this function to save a quantity, the function assumes that you have finished calculating 

you level's required quantity and this is the level that you will be saving it at.


 1.3Special Logic

The way the function is designed will assume that when you are retrieving a quantity it is from the 
previous level and you are using this quantity to calculate your current level's required quantity.  

When you are calling this function to save a quantity, the function assumes that you have finished 

calculating you level's required quantity and this is the level that you will be saving it at.



2.Technical Specifications


2.4Processing 

If Mode = 1

Save Quantity and the Level sent in, in the link list.


If mode =2 

Retrieve the Quantity previous to the Level sent in from the link list.

Delete all of the nodes lower than the Level sent in.


If mode = 3

Destroy the link list.

^

Data Structure

D3001340 - Save And Retrieve Quantity

Parameter NameData ItemData TypeReq/OptI/O/Both
mnQuantityQNTYMATH_NUMERICNONENONE

The number of units that the system applies to the transaction.

cModeMODEcharNONENONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

nLevelINT01integerNONENONE

Number of Days in Future to Query for Responses Due. 

idPointerToLinkedListGENLNGIDNONENONE

General purpose ID variable.

Related Functions

None

Related Tables

None