F3400ClearForecastSummaryRecords

F3400 Clear Forecast Summary Records

Major Business Rule

Object Name: B3401040

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function will delete records in the Summary Forecast file (F3400) using the input Summary Code 
and Forecast Type so that new ones can be generated.


1.2Setup Notes and Prerequisites


1.3Special Logic



2.Technical Specifications

1.Do 13 times incrementing $X
If @NF,$X is not equal to blanks

Use the key pieces passed in plus

Move @NF,$X to SGTYPF

Move $$BEG to SGDRQJ


SETLL on F3400 with the SummaryCode and ForecastType


Read all records equal to the full key minus the date

If  SGDRQJ off the record found is less than or equal to$$END

Delete the F3400 record


Chain to the F34006 with ChildKey, SummaryCode, and

@NF,X

If a record is found

Call DeleteDetailForecast B3400750

Item Number
Branch

@NF,X

BeginDate

EndDate

R34640

End


End

End

EndDo


^

Data Structure

D3401040 - F3400 Clear Forecast Summary Records

Parameter NameData ItemData TypeReq/OptI/O/Both
idTypeArrayGENLNGIDNONENONE

General purpose ID variable.

jdBeginDateDRQJJDEDATENONENONE

The date that an item is scheduled to arrive or that an action is scheduled for completion.

jdEndDateDRQJJDEDATENONENONE

The date that an item is scheduled to arrive or that an action is scheduled for completion.

szSummaryCodeKVERcharNONENONE

A user defined code (40/KY) that indicates the type of summary forecast.

szForecastTypeTYPFcharNONENONE

A user defined code (34/DF) that indicates one of the following:     o The forecasting method used to calculate the numbers displayed about 
the item     o The actual historical information about the item 

Related Functions

B3400750 Delete Detail Forecasts

Related Tables

F3400 Forecast Summary File
F34006 Forecast Summary Work File