LoadPriceCostCache

LoadPriceCostCache

Minor Business Rule

Object Name: N3201660

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

The Business Function will be used  to load Price/Cost Cache from F3216 table.
Note: New Configuration ID (when > 0) is used to override Configuration ID

          when saving  a cache record. 

 
1.2Setup Notes and Prerequisites
This function assumes F3216 contains records for particular Configuration ID.


1.3Special Logic

None


2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes

CFGIDConfiguration IDIR

CFGCIDComponent IDIOLoading this filed will limit selection from F3216

JOBSCache Job NumberIR

CFGIDNew Configuration IDIO/RTo be loaded when duplicating existing Configuration Records into a New One

SUPPSSuppress Error MessageIO

DTAIError Message IDOO



2.2Related Tables 

Table Table Description




2.3Related Business Functions

Source NameFunction Name

B3200400Cache Process Price Cost



2.4Processing

Set Default Values

szErrorMessageID =  

If  (BF JobNumber <=0 OR BF ConfigIDNumber <= 0)

   Load Error 078D

Else

   If (BF NewConfigIDNumber > 0)

      ConfigIDNumber = BF NewConfigIDNumber

   Else

      ConfigIDNumber = BF ConfigIDNumber

   End If

   If (BF Component ID <= 0)

       Select from F3216 using CFGID only

   Else

      Select from F3216 using CFGID and CFGCID

   End If 

    If Select was successful

       MoreRecords = 1

       While (MoreRecords == 1)

           F3216.FetchNext

           If (Fetch was successful)

              Call B3200400 to save a cache record

               If  Cache Error != 0

                  Load Error 078O

               End If

           Else

               MoreRecords = 0

           End If

       End while

    Else

       Load Error 078J 

    End If

End If


3.2 Where Used: APPs/UBEs/NERs/BSFNs


Application/Business FunctionApplication/BF Name



Data Structure

D3201660 - LoadPriceCostCache

Parameter NameData ItemData TypeReq/OptI/O/Both
mnConfigurationIDNumberCFGIDMATH_NUMERICREQNONE

An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables.

mnComponentIDNumberCFGCIDMATH_NUMERICOPTNONE

A number that represents a component in a configuration. This number, which is generated by next numbers, always restarts at 1 and 
increments, based on the number of components in the configuration.

mnJobNumberJOBSMATH_NUMERICREQNONE

The job number (work station ID) which executed the particular job.

mnNewConfigurationIDNumberCFGIDMATH_NUMERICOPTNONE

An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables.

cSuppressErrorMessageSUPPScharOPTNONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharOPTNONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

None