F3303DeleteResource

F3303, Delete Resource

Minor Business Rule

Object Name: B3300120

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function deletes Resource Profile records from F3303 for the input item and branch.  Records are 
deleted for Unit Types 1, 2, and 3 with effectivity dates that are covered by the input effectivity 

dates.


1.2Setup Notes and Prerequisites


1.3Special Logic


2.Technical Specifications

ErrorMessageID = ' '
Open table F3303

If open fails

ErrorMessageID = '3143'

If SuppressErrorMessage <> '1'

Call SetError with '3143'

End

Else

Delete all records from F3303 for ShortItemNumber (CTITM) and Branch (CTMMCU) where

Unit Type (CTUNTY) = 1, 2, or 3 and
(CTEFFF >= EffectiveFromDate and CTEFFF <= EffectiveThruDate) or

(CTEFFT >= EffectiveFromDate and CTEFFT <= EffectiveThruDate) or
(CTEFFF <= EffectiveFromDate and CTEFFT >= EffectiveThruDate)
if delete fails

ErrorMessageID = '0002'

If SuppressErrorMessage <> '1'
Call SetError with '0002'

End

End
End


^

Data Structure

D3300120 - F3303, Delete Resource


Data Item Data Structure DescriptionI/ORequiredNotes

ITM            Short Item Number                  IY

MCU            Branch                        IY

EFFF            Effective From Date            IY

EFFT            Effective Thru Date            IY

SUPPS            Suppress Error Messages            I      '1' = Suppress error messages 


                                                                        ' ' = Allow error messages

DTAI            Error Message ID                  O      ' ' = success 

                                                                        '3143' = file cannot be 

accessed 

                                                                        '0002'= record invalid 

                                                                        '4363'= null pointer


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szBranchMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

jdEffectiveFromDateEFFFJDEDATENONENONE

A date that indicates one of the following:     o When a component part goes into effect on a bill of material     o When a routing step goes into 
effect as a sequence on the routing for an item     o When a rate schedule is in effect The default is the current system date. You can enter 
future effective dates so that the system plans for upcoming changes. Items that are no longer effective in the future can still be recorded and 
recognized in Product Costing, Shop Floor Management, and Capacity Requirements Planning. The Material Requirements Planning system 
determines valid components by effectivity dates, not by the bill of material revision level. Some forms display data based on the effectivity 
dates you enter.

jdEffectiveThruDateEFFTJDEDATENONENONE

A date that indicates one of the following:     o When a component part is no longer in effect on a bill of material     o When a routing step is no 
longer in effect as a sequence on the routing for an item     o When a rate schedule is no longer active The default is December 31 of the 
default year defined in the Data Dictionary for Century Change Year. You can enter future effective dates so that the system plans for upcoming 
changes. Items that are no longer effective in the future can still be recorded and recognized in Product Costing, Shop Floor Management, 
and Capacity Requirements Planning. The Material Requirements Planning system determines valid components by effectivity dates, not by 
the bill of material revision level. Some forms display data based on the effectivity dates you enter.

cSuppressErrorMessageSUPPScharNONENONE

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.

szErrorMessageIDDTAIcharNONENONE

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.

szWorkcenterBranchWMCUcharOPTNONE

This is the branch/plant to which the work center belongs and must exist in the business unit master (F0006) and branch plant constants file 
(F41001).

Related Functions

None

Related Tables

F3303 Capacity Resource Profile