CRPDeletePlanningRecords

CRP, Delete Planning Records

Minor Business Rule

Object Name: B3300130

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function deletes records from the Capacity Messages (F3311), Capacity Pegging (F3312), and 
Capacity Load (F3313) tables for the input Work Center.


1.2Setup Notes and Prerequisites


1.3Special Logic


2.Technical Specifications

Delete all records from F3311 using key values CapacityMode, WorkCenter, and UnitOfMeasure where Hold 
Code <> 'Z' and Message Type <> 'M'.


Delete all records from F3312 using key values CapacityMode, WorkCenter, Branch, and UnitOfMeasure.


Delete all records from F3313 using key values CapacityMode, WorkCenter, and UnitOfMeasure.


If any open table fails

ErrorMessageID = "3143"

End


^

Data Structure

D3300130 - CRP, Delete Planning Records


Data Item Data Structure DescriptionI/ORequiredNotes
MCU            Work Center                        IY

MMCU            Branch                        IY

CAPM            Capacity Mode                  IY

UM            Unit Of Measure                  IY

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

message                                                                                                

 handling 

                                                                        ' ' = Allow runtime error 

message                                                                               handling

DTAI            Error Message  ID                  O      " " = success 

                                                                        "3143" = table access error



^

Parameter NameData ItemData TypeReq/OptI/O/Both
szWorkCenterMCUcharNONENONE

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.

szBranchMMCUcharNONENONE

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

cCapacityModeCAPMcharNONENONE

A code indicating which planning is being used. Valid values are:     1    Resource Requirements Planning     2    Rough Cut Capacity 
Planning     3    Capacity Requirements Planning

szUnitOfMeasureUMcharNONENONE

A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box, 
cubic meter, liter, hour, and so on.

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.

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.

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

F3311 Capacity Message File
F3312 Capacity Pegging
F3313 Capacity Load Table