JP2016194900A - Production schedule automatic planning device, production schedule automatic planning method and production schedule automatic planning program - Google Patents

Production schedule automatic planning device, production schedule automatic planning method and production schedule automatic planning program Download PDF

Info

Publication number
JP2016194900A
JP2016194900A JP2016013766A JP2016013766A JP2016194900A JP 2016194900 A JP2016194900 A JP 2016194900A JP 2016013766 A JP2016013766 A JP 2016013766A JP 2016013766 A JP2016013766 A JP 2016013766A JP 2016194900 A JP2016194900 A JP 2016194900A
Authority
JP
Japan
Prior art keywords
inventory
plan
data
production
period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016013766A
Other languages
Japanese (ja)
Inventor
眞 澤田
Makoto Sawada
眞 澤田
邦明 芹澤
Kuniaki Serizawa
邦明 芹澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Obic Co Ltd
Original Assignee
Obic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Obic Co Ltd filed Critical Obic Co Ltd
Publication of JP2016194900A publication Critical patent/JP2016194900A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • General Factory Administration (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a production schedule automatic planning device, production schedule automatic planning method, and production schedule automatic planning program that can attain standardization of a production load even when demand varies.SOLUTION: A production schedule automatic planning device according to the present invention comprises a control unit. The control unit comprises: preparation means; update means; and determination means. The preparation means is configured to use term-end safety inventory quantity data about an inventory schedule quantity at a term-end in a first period to plurally prepare short period reference safety inventory quantity data about an inventory schedule quantity in a second period. The update means is configured to use data on an increment/decrement in quantity in the first period to allocate an increment/decrement in product corresponding to the data on the increment/decrement in quantity to each of the inventory schedule quantity corresponding to a plurality of short period reference safety inventory quantity data. The determination means is configured to use the short period reference safety inventory quantity data and allocation quantity data about the allocation quantity of the product in the first period to determine a schedule quantity of the product to be produced in the second period.SELECTED DRAWING: Figure 5

Description

本発明は、生産計画自動立案装置、生産計画自動立案方法、及び、生産計画自動立案プログラムに関する。   The present invention relates to a production plan automatic planning apparatus, a production plan automatic planning method, and a production plan automatic planning program.

特許文献1には、歩留り変動などが発生するため、需要変動に追随可能な生産計画を作成することが困難な内製デバイス品を含む組立製品について、生産要求量の累積量が在庫量より多い場合には、すなわち増産が必要な場合には、生産要求量の累積量から在庫量を差し引いた値を生産量として算出し、一方で、生産要求量の累積量が在庫量より少ない場合には、すなわち減産が必要な場合には、生産量を0とする生産計画立案システムが開示されている(段落[0020]等参照)。この特許文献1に開示された生産計画立案システムによれば、需要変動に対応できる在庫量を確保しながらプロセス部品の生産量を決定することができる。   In Patent Document 1, because of yield fluctuations and the like, the accumulated amount of production requirement amount is larger than the stock amount for assembly products including in-house device products for which it is difficult to create a production plan that can follow demand fluctuations. In this case, that is, when production increase is necessary, the value obtained by subtracting the inventory amount from the cumulative amount of production requirement is calculated as the production amount. On the other hand, if the cumulative amount of production requirement is less than the inventory amount, That is, a production planning system is disclosed in which production is reduced to 0 when production reduction is necessary (see paragraph [0020] etc.). According to the production planning system disclosed in Patent Document 1, it is possible to determine the production amount of a process component while securing an inventory amount that can cope with demand fluctuation.

また、特許文献2には、在庫管理方法として、実数である在庫数及び実販売数と、管理対象物の出荷実績等の基礎データとを用いて、在庫日数を算出することを開示している(段落[0010]〜[0011]等参照)。また、特許文献2は、算出した在庫日数データを生産のコントロールに適用することも開示しており、具体的には、生産増の場合には、増加分の生産計画を最新の生産計画データに追加し、一方、生産減の場合には、生産計画固定期間以降で最も早い該当製品の生産計画を減らすことを開示している(段落[0010]〜[0011]等参照)。   Patent Document 2 discloses calculating the number of days of inventory using a stock number and actual number of sales, which are real numbers, and basic data such as shipment results of managed objects, as an inventory management method. (See paragraphs [0010] to [0011] etc.). Patent Document 2 also discloses that the calculated inventory days data is applied to production control. Specifically, in the case of an increase in production, the increased production plan is updated to the latest production plan data. On the other hand, in the case of a decrease in production, it is disclosed that the production plan of the corresponding product that is earliest after the production plan fixed period is reduced (see paragraphs [0010] to [0011], etc.).

特開2004−178037号公報JP 2004-178037 A 特開2001−229319号公報JP 2001-229319 A

しかしながら、特許文献1,2に記載の技術では、需要変動に対応可能であるものの、増産が必要な場合における増加分を制御することができないために、例えば増加分が生産能力にとって過多であっても当該増加分に応じた生産負荷が生じ、一方で、減産が必要な場合における減少分を制御することができないために、生産設備や生産体制に十分な余力があるにもかかわらず、生産量を0にしなければならない場合が生じる。これらのように、従来技術では、生産設備や生産体制の稼働状態を考慮せずに、生産計画又はその更新がなされていたために、最大の生産量に応じて設定されている生産能力を十分に発揮することができないという問題がある。なお、同様の問題は、上述のような生産管理の場面だけでなく、在庫量の管理が必要となる在庫管理及び販売管理の場面においても生じる。   However, although the techniques described in Patent Documents 1 and 2 can cope with demand fluctuations, the increase in the case where an increase in production is necessary cannot be controlled. For example, the increase is excessive for the production capacity. However, there is a production load corresponding to the increase, and on the other hand, it is impossible to control the decrease when production reduction is necessary. May have to be zero. As described above, in the conventional technology, the production plan or the update thereof has been made without considering the operating state of the production facility and the production system. Therefore, the production capacity set according to the maximum production volume is sufficiently increased. There is a problem that it cannot be demonstrated. The same problem occurs not only in the production management scene as described above, but also in the inventory management and sales management scenes where inventory quantity management is required.

本発明は、上記問題点に鑑みてなされたものであって、需要に変動があっても生産負荷の標準化を図ることができる生産計画自動立案装置、生産計画自動立案方法、及び、生産計画自動立案プログラムを提供することを目的とする。   The present invention has been made in view of the above-mentioned problems, and is an automatic production plan planning device, a production plan automatic planning method, and a production plan automatic that can standardize a production load even when demand varies. The purpose is to provide a planning program.

上述した課題を解決し、目的を達成するために、本発明にかかる生産計画自動立案装置は、製品を生産すべき計画数を立案するための、制御部を備えた生産計画自動立案装置において、前記制御部は、前記製品に対する需要予測を考慮して予め定められた、第1の周期における期末の在庫計画数に関する期末安全在庫数データを用いて、前記第1の周期に含まれかつ当該第1の周期よりも相対的に短い第2の周期における在庫計画数に関する短周期基準安全在庫数データを複数作成する作成手段と、前記第1の周期における前記製品の増減分に関する増減数データを用いて、前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に、前記増減数データに対応する前記製品の増減分を割り当てることにより、前記作成手段で作成した前記短周期基準安全在庫数データを更新する更新手段と、前記更新手段で得られた短周期基準安全在庫数データと、前記第1の周期における前記製品の引当数に関する引当数データとを用いて、前記第2の周期において前記製品を生産すべき計画数を決定する決定手段とを備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, the production plan automatic planning apparatus according to the present invention is a production plan automatic planning apparatus having a control unit for planning the number of plans for producing a product. The control unit uses the end-of-period safety stock quantity data related to the end-of-period inventory plan number in the first period, which is determined in consideration of the demand forecast for the product, and is included in the first period and the first period. Using creation means for creating a plurality of short cycle reference safety stock number data relating to the number of planned stocks in the second cycle, which is relatively shorter than one cycle, and increase / decrease data relating to the increase / decrease of the product in the first cycle And creating by the creation means by allocating the increase / decrease of the product corresponding to the increase / decrease number data to each of the inventory plan numbers corresponding to the plurality of short cycle reference safety inventory number data Update means for updating the short cycle reference safety stock number data, short cycle reference safety stock number data obtained by the update means, and allocation number data relating to the number of products to be allocated in the first period. And determining means for determining a planned number of products to be produced in the second period.

また、本発明に係る生産計画自動立案装置は、前記に記載の生産計画自動立案装置において、前記制御部は、前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に割り当てるべき前記製品の増減分の割当分を、前記第1の周期に属する日の数を用いて算出する算出手段をさらに含むことを特徴とする。   Moreover, the production plan automatic planning apparatus according to the present invention is the production plan automatic planning apparatus described above, wherein the control unit should allocate to each of the number of inventory plans corresponding to the plurality of short cycle reference safety inventory number data. The apparatus further includes a calculation unit that calculates an allocation of the increase / decrease of the product using the number of days belonging to the first period.

さらに、本発明に係る生産計画自動立案装置は、前記に記載の生産計画自動立案装置において、前記第1の周期に属する日の数は、前記製品の生産を行うことが可能な稼働日の数であり、前記算出手段は、前記稼働日の各々に、当該稼働日の前記第1の周期における順序に応じた係数を設定する係数設定手段を含み、かつ、前記係数設定手段で設定した係数に対応する稼働日に対して、前記割当分として、前記製品の増減分を前記稼働日の数で除した値に、該稼働日に設定された係数を乗じた値を用いることを特徴とする。   Furthermore, the production plan automatic planning apparatus according to the present invention is the above-described production plan automatic planning apparatus, wherein the number of days belonging to the first period is the number of working days on which the product can be produced. The calculation means includes coefficient setting means for setting a coefficient corresponding to the order in the first cycle for each working day, and the coefficient set by the coefficient setting means For the corresponding working day, a value obtained by dividing the increase / decrease of the product by the number of working days is multiplied by a coefficient set for the working day.

また、本発明に係る生産計画自動立案装置は、前記に記載の生産計画自動立案装置において、前記第1の周期は、月を単位とする期間であり、かつ、前記第2の周期は、日を単位とする期間であり、前記制御部は、前記製品を生産すべき計画数の立案対象となる適用期間の基準日付を設定する基準日付設定手段を含み、かつ、前記作成手段は、前記基準日付設定手段で設定した基準日付を含む月の翌月の月末の在庫計画数に関する期末安全在庫数データを用いて、前記翌月に属する日の各々について前記短周期基準安全在庫数データを作成することを特徴とする。   The automatic production plan planning apparatus according to the present invention is the production plan automatic planning apparatus described above, wherein the first cycle is a period in units of months, and the second cycle is a day. The control unit includes reference date setting means for setting a reference date for an application period to be a target of planning the number of plans for producing the product, and the creating means includes the reference Using the end-of-period safety stock data regarding the planned number of stocks at the end of the next month of the month including the base date set by the date setting means, to create the short cycle base safety stock data for each day belonging to the next month Features.

また、本発明に係る生産計画自動立案装置は、前記に記載の生産計画自動立案装置において、前記制御手段は、前記決定手段で決定した複数種類の製品の計画数についてまとめ処理を行うまとめ手段をさらに含むことを特徴とする。   Moreover, the production plan automatic planning apparatus according to the present invention is the above-described production plan automatic planning apparatus, wherein the control unit includes a summary unit that performs a summary process on the number of plans of a plurality of types of products determined by the determination unit. It is further characterized by including.

本発明にかかる生産計画自動立案方法は、制御部を備えた生産計画自動立案装置において実行される、製品を生産すべき計画数を立案するための生産計画自動立案方法であって、前記制御部において実行される、前記製品に対する需要予測を考慮して予め定められた、第1の周期における期末の在庫計画数に関する期末安全在庫数データを用いて、前記第1の周期に含まれかつ当該第1の周期よりも相対的に短い第2の周期における在庫計画数に関する短周期基準安全在庫数データを複数作成する作成ステップと、前記第1の周期における前記製品の増減分に関する増減数データを用いて、前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に、前記増減数データに対応する前記製品の増減分を割り当てることにより、前記作成ステップで作成した前記短周期基準安全在庫数データを更新する更新ステップと、前記更新ステップで得られた短周期基準安全在庫数データと、前記第1の周期における前記製品の引当数に関する引当数データとを用いて、前記第2の周期において前記製品を生産すべき計画数を決定する決定ステップとを含むことを特徴とする。   The production plan automatic planning method according to the present invention is a production plan automatic planning method for planning the number of plans for producing a product, which is executed in a production plan automatic planning apparatus having a control unit, wherein the control unit Using the end-of-period safety stock quantity data relating to the end-of-period inventory plan number in the first period, which is determined in consideration of the demand forecast for the product, which is included in the first period and Using a creation step of creating a plurality of short cycle reference safety stock number data relating to the number of planned stocks in the second cycle, which is relatively shorter than one cycle, and increase / decrease data relating to the increase / decrease of the product in the first cycle By assigning the increase / decrease amount of the product corresponding to the increase / decrease number data to each of the inventory plan numbers corresponding to the plurality of short cycle reference safety inventory number data, An update step for updating the short-cycle reference safety stock number data created in the creation step, a short-cycle reference safety stock number data obtained in the update step, and a provision number relating to the provision number of the product in the first cycle And a determination step of determining a planned number of products to be produced in the second period using the data.

本発明にかかる生産計画自動立案プログラムは、制御部を備えた生産計画自動立案装置において実行させるための、製品を生産すべき計画数を立案するための生産計画自動立案プログラムであって、前記制御部において実行させるための、前記製品に対する需要予測を考慮して予め定められた、第1の周期における期末の在庫計画数に関する期末安全在庫数データを用いて、前記第1の周期に含まれかつ当該第1の周期よりも相対的に短い第2の周期における在庫計画数に関する短周期基準安全在庫数データを複数作成する作成ステップと、前記第1の周期における前記製品の増減分に関する増減数データを用いて、前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に、前記増減数データに対応する前記製品の増減分を割り当てることにより、前記作成ステップで作成した前記短周期基準安全在庫数データを更新する更新ステップと、前記更新ステップで得られた短周期基準安全在庫数データと、前記第1の周期における前記製品の引当数に関する引当数データとを用いて、前記第2の周期において前記製品を生産すべき計画数を決定する決定ステップとを含むことを特徴とする。   An automatic production plan planning program according to the present invention is a production plan automatic planning program for planning the number of plans to produce a product to be executed by a production plan automatic planning apparatus having a control unit. Using the end-of-period safety stock quantity data relating to the end-of-period inventory plan number in the first period, which is determined in consideration of the demand forecast for the product to be executed in the section, and included in the first period and A creation step of creating a plurality of short cycle reference safety stock number data related to the planned number of stocks in the second cycle, which is relatively shorter than the first cycle, and increase / decrease data related to the increase / decrease of the product in the first cycle Is used to divide the product increase / decrease corresponding to the increase / decrease data to each of the planned inventory numbers corresponding to the plurality of short cycle reference safety inventory data. The update step of updating the short cycle reference safety stock number data created in the creation step, the short cycle reference safety stock number data obtained in the update step, and the product in the first cycle And a determination step of determining a planned number of products to be produced in the second period using the allocation number data relating to the allocation number.

また、本発明は在庫管理にも適用することができる。この場合、本発明に係る在庫管理装置は、上述した課題を解決するために、物品の在庫数を管理するための、制御部を備えた在庫管理装置において、前記制御部は、前記物品に対する需要予測を考慮して予め定められた、第1の周期における期末の在庫計画数に関する期末安全在庫数データを用いて、前記第1の周期に含まれかつ当該第1の周期よりも相対的に短い第2の周期における在庫計画数に関する短周期基準安全在庫数データを複数作成する作成手段と、前記第1の周期における前記物品の数の増減分に関する増減数データを用いて、前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に、前記増減数データに対応する前記物品の増減分を割り当てることにより、前記作成手段で作成した前記短周期基準安全在庫数データを更新する更新手段とを備えたことを特徴とする。   The present invention can also be applied to inventory management. In this case, in order to solve the above-described problem, the inventory management apparatus according to the present invention is an inventory management apparatus having a control unit for managing the number of articles in stock. It is included in the first cycle and is relatively shorter than the first cycle, using the end-of-period safety stock quantity data relating to the number of inventory plans at the end of the first cycle, which is determined in advance in consideration of the prediction. A plurality of short cycles using creation means for creating a plurality of short cycle reference safety stock data relating to the planned number of stocks in the second cycle, and increase / decrease data relating to the increase / decrease in the number of articles in the first cycle The short cycle reference safety stock number created by the creating means by allocating the increase / decrease amount of the article corresponding to the increase / decrease number data to each of the inventory plan numbers corresponding to the reference safety inventory number data Characterized by comprising a updating means for updating the over data.

本発明によれば、需要に変動があっても生産負荷の標準化を図ることができる、という効果を奏する。   According to the present invention, it is possible to standardize the production load even if the demand varies.

図1は、需要増に何も手を打たない場合における在庫割り増しの参考例を示す図である。FIG. 1 is a diagram showing a reference example of an extra inventory when nothing is done to increase demand. 図2は、従来の仕組みで安全在庫数を増減させた場合における計画的在庫割り増しの一例を示す図である。FIG. 2 is a diagram showing an example of a planned stock increase when the number of safety stocks is increased or decreased by a conventional mechanism. 図3は、本発明の実施形態において、日別の安全在庫数を設定した場合の計画的在庫割り増しの一例を示す図である。FIG. 3 is a diagram illustrating an example of a planned stock increase when the daily safety stock number is set in the embodiment of the present invention. 図4は、本発明の実施形態に係る生産計画自動立案装置を含む生産計画自動立案システムの構成の一例を示すブロック図である。FIG. 4 is a block diagram showing an example of the configuration of a production plan automatic planning system including a production plan automatic planning apparatus according to an embodiment of the present invention. 図5は、図4における生産計画自動立案装置100が実行する処理の処理手順を模式的に示す図である。FIG. 5 is a diagram schematically showing a processing procedure of processing executed by the production plan automatic planning apparatus 100 in FIG. 図6は、図5に示すステップSA1における月末在庫計画数データ取込処理及び日割り処理におけるデータの流れを模式的に示す図である。FIG. 6 is a diagram schematically showing a data flow in the end-of-month inventory plan data fetching process and the daily allocation process in step SA1 shown in FIG. 図7は、図6に示したワークテーブル01に格納されたレコードの一例を示す図である。FIG. 7 is a diagram showing an example of records stored in the work table 01 shown in FIG. 図8は、図6に示したワークテーブル02に格納されたレコードの一例を示す図である。FIG. 8 is a diagram showing an example of records stored in the work table 02 shown in FIG. 図9は、図6に示したワークテーブル03に格納されたデータの一例を示す図である。FIG. 9 is a diagram illustrating an example of data stored in the work table 03 illustrated in FIG. 図10は、図6に示したワークテーブル04に格納されたレコードの一例を示す図である。FIG. 10 is a diagram showing an example of records stored in the work table 04 shown in FIG. 図11は、図5のステップSA1において月末在庫計画数データ取込処理を行う際に表示される月末在庫計画数データ取込画面の一例を示す図である。FIG. 11 is a diagram illustrating an example of a month-end inventory plan number data capture screen displayed when the month-end inventory plan number data capture process is performed in step SA1 of FIG. 図12は、CSVデータマスタ106dに格納されているCSVレコードのレイアウトの一例を示す図である。FIG. 12 is a diagram illustrating an example of a layout of a CSV record stored in the CSV data master 106d. 図13は、図5のステップSA1において実行される月末在庫計画数データ取込処理及び日割処理の処理手順を示すフローチャートである。FIG. 13 is a flowchart showing the processing procedure of the end-of-month inventory plan data fetching process and the daily rate process executed in step SA1 of FIG. 図14は、図13のステップSB4〜SB10の説明で用いる用語を説明するために用いられる図である。FIG. 14 is a diagram used to describe terms used in the description of steps SB4 to SB10 in FIG. 図15は、図13のステップSB8においてワークテーブル04に空レコードをセットする処理を説明するために用いられる図である。FIG. 15 is a diagram used for explaining the process of setting an empty record in the work table 04 in step SB8 of FIG. 図16は、図15に示す稼働日順位を示す数値と稼働日との関係の一例を示す図である。FIG. 16 is a diagram illustrating an example of a relationship between a numerical value indicating the working day rank illustrated in FIG. 15 and the working day. 図17は、図13のステップSB10において稼働日についての在庫計画数を設定する処理を説明するために用いられる図である。FIG. 17 is a diagram used for explaining the process of setting the number of inventory plans for the working day in step SB10 of FIG. 図18は、図13のステップSB10において月末日付レコードにおける在庫計画数を設定する処理を説明するために用いられる図である。FIG. 18 is a diagram used for explaining the process of setting the number of inventory plans in the end-of-month date record in step SB10 of FIG. 図19は、図13のステップSB10において非稼働日についての在庫計画数を設定する処理を説明するために用いられる図である。FIG. 19 is a diagram used for explaining the process of setting the number of inventory plans for a non-working day in step SB10 of FIG. 図20は、図4における日別在庫計画マスタ106aに対して行われる更新処理を説明するために用いられる図である。FIG. 20 is a diagram used for explaining the update process performed on the daily inventory plan master 106a in FIG. 図21は、図5のステップSA2において実行される生産計画自動立案処理の処理手順を示すフローチャートである。FIG. 21 is a flowchart showing a processing procedure of the production plan automatic planning process executed in step SA2 of FIG. 図22は、図21のステップSC1において品目コード及び出荷予定日に関する情報をワークDに出力する処理を説明するために用いられる図である。FIG. 22 is a diagram used for explaining the process of outputting information regarding the item code and the shipping date to work D in step SC1 of FIG. 図23は、図21のステップSC1において計画立案対象のレコードを、受注ファイルからワークAに出力する処理を説明するために用いられる図である。FIG. 23 is a diagram used for explaining the process of outputting the record to be planned in step SC1 of FIG. 21 from the order file to work A. 図24は、図21のステップSC1において計画立案対象のレコードを、内示ファイルからワークAに出力する処理を説明するために用いられる図である。FIG. 24 is a diagram used for explaining the process of outputting the planning target record from the unlisted file to the work A in step SC1 of FIG. 図25は、図21のステップSC2での受注引当ファイル再生成処理において行われる更新処理を説明するために用いられる図である。FIG. 25 is a diagram used for explaining the update process performed in the order reservation file re-generation process in step SC2 of FIG. 図26は、図21のステップSC2での受注引当ファイル再生成処理において行われる受注ファイルの初期化処理を説明するために用いられる図である。FIG. 26 is a diagram used for explaining the order file initialization process performed in the order reservation file regeneration process in step SC2 of FIG. 図27は、図21のステップSC2での受注引当ファイル再生成処理において行われる生産計画ファイルの初期化処理を説明するために用いられる図である。FIG. 27 is a diagram used for explaining the initialization process of the production plan file performed in the order allocation file regeneration process in step SC2 of FIG. 図28は、図21のステップSC2での受注引当ファイル再生成処理において行われる計画引当ファイルの初期化処理を説明するために用いられる図である。FIG. 28 is a diagram used for explaining the plan allocation file initialization process performed in the order allocation file regeneration process in step SC2 of FIG. 図29は、図21のステップSC4aの製番的計画ファイル作成処理において行われる生産計画ファイルの再引当処理を説明するために用いられる図である。FIG. 29 is a diagram used for explaining the production plan file re-allocation process performed in the production number plan file creation process in step SC4a of FIG. 図30は、図21のステップSC4aの製番的計画ファイル作成処理において行われる計画引当ファイルの第1の更新処理を説明するために用いられる図である。FIG. 30 is a diagram used for explaining the first plan allocation file update process performed in the production plan file creation process in step SC4a of FIG. 図31は、図21のステップSC4aの製番的計画ファイル作成処理において行われる受注ファイルの再引当処理を説明するために用いられる図である。FIG. 31 is a diagram used for explaining the order file re-allocation process performed in the production plan file creation process of step SC4a of FIG. 図32は、図21のステップSC4aの製番的計画ファイル作成処理において行われる生産計画ファイルの第1の追加処理を説明するために用いられる図である。FIG. 32 is a diagram used for explaining the first addition process of the production plan file performed in the production number plan file creation process of step SC4a of FIG. 図33は、図21のステップSC4aの製番的計画ファイル作成処理において行われる計画引当ファイルの第1の追加処理を説明するために用いられる図である。FIG. 33 is a diagram used for explaining the first addition process of the plan allocation file performed in the production plan file creation process of step SC4a of FIG. 図34は、図21のステップSC4aの製番的計画ファイル作成処理において行われる生産計画ファイルの第2の再引当処理を説明するために用いられる図である。FIG. 34 is a diagram used for explaining the second re-allocation process of the production plan file performed in the production number plan file creation process of step SC4a of FIG. 図35は、図21のステップSC4aの製番的計画ファイル作成処理において行われる計画引当ファイルの第2の追加処理を説明するために用いられる図である。FIG. 35 is a diagram used for explaining the second addition process of the plan allocation file performed in the production number plan file creation process of step SC4a of FIG. 図36は、図21のステップSC4bのMRP的計画ファイル作成処理において行われるワークFに1レコードを追加する処理を説明するために用いられる図である。FIG. 36 is a diagram used to describe the process of adding one record to work F performed in the MRP-like plan file creation process of step SC4b of FIG. 図37は、図21のステップSC4bのMRP的計画ファイル作成処理において行われる手配ファイルに手配納期に関する項目をセットする処理を説明するために用いられる図である。FIG. 37 is a diagram used for explaining the process of setting items relating to the arrangement delivery date in the arrangement file performed in the MRP-like plan file creation process in step SC4b of FIG. 図38は、図21のステップSC4bのMRP的計画ファイル作成処理において行われる生産計画ファイルに納期に関する項目をセットする処理を説明するために用いられる図である。FIG. 38 is a diagram used for explaining the process of setting items related to delivery date in the production plan file performed in the MRP-like plan file creation process of step SC4b of FIG. 図39は、図21のステップSC4bのMRP的計画ファイル作成処理において行われるワークDに必要数に関する項目をセットする処理を説明するために用いられる図である。FIG. 39 is a diagram used for explaining processing for setting items relating to the necessary number for work D, which is performed in the MRP-like plan file creation processing in step SC4b of FIG. 図40は、図21のステップSC4bのMRP的計画ファイル作成処理において行われる生産計画ファイルの第2の追加処理を説明するために用いられる図である。FIG. 40 is a diagram used for explaining the second addition process of the production plan file performed in the MRP-like plan file creation process of step SC4b of FIG. 図41は、図21のステップSC4bのMRP的計画ファイル作成処理において行われる計画引当ファイルの第2の追加処理を説明するために用いられる図である。FIG. 41 is a diagram used for explaining the second addition process of the plan allocation file performed in the MRP-like plan file creation process in step SC4b of FIG.

本発明の実施形態を図面に基づいて詳細に説明する。なお、本発明は本実施形態により限定されるものではない。   Embodiments of the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited by this embodiment.

[1.概要]
製品の需要増が見込まれるにも関わらず当該需要増に対して何も手を打たない場合(図1参照)、安定在庫数は一定に設定されたままである。この場合、生産負荷の増大や安全在庫数割れのリスクが増すなどといった問題点がある。そこで、従来では、生産管理(管理コンピュータ)上、見込まれる需要増に備えて、当該需要増が見込まれる月の前の月において、日々の安定在庫数の値を需要増に応じた高い値に設定変更することが行われている(図2参照)。
[1. Overview]
When no increase is made in the demand increase despite the expected increase in product demand (see FIG. 1), the stable inventory number remains set constant. In this case, there are problems such as an increase in production load and an increased risk of breaking the number of safety stocks. Therefore, in the past, in preparation for the expected increase in demand in production management (management computer), the daily stable inventory value is set to a high value corresponding to the increase in demand in the month prior to the month in which the demand increase is expected. The setting is changed (see FIG. 2).

しかし、従来技術(図2に示す例)では、管理コンピュータ上、安全在庫数の設定が品番ごとに固有の設定になっているため、安全在庫数の設定値を増やす変更を行うと、変更直後の日付における製品の所要量(必要生産量)を計算した結果として、多量の製品を生産すべき旨の生産指示が生産管理情報として発生するという問題点がある。特には、需要増が著しい場合、生産能力を超えた生産指示が生産管理情報として生成される可能性も否定できない。一方で、管理コンピュータ上、安全在庫数の設定値を減らす変更を行ったり、又は、設定値を増やす変更を行った後の日付において元に戻す変更を行ったりすると、変更直後の日付における製品の所要量を計算した結果として、生産すべき製品なしの旨の生産指示情報が発生する(すなわち、生産指示が発生せず)。そして、そのような生産指示に応じてしまうと、生産設備が不稼働になってしまうという問題点がある。   However, in the prior art (example shown in FIG. 2), on the management computer, the setting of the safety stock number is a unique setting for each product number. As a result of calculating the required amount (required production amount) of the product on the date of, a production instruction indicating that a large amount of product should be produced occurs as production management information. In particular, when the demand increase is significant, the possibility that a production instruction exceeding the production capacity is generated as production management information cannot be denied. On the other hand, if a change is made on the management computer to reduce the set value of the safety stock number, or a change is made to return to the original date after the change to increase the set value, the product on the date immediately after the change will be displayed. As a result of calculating the required amount, production instruction information indicating that there is no product to be produced is generated (that is, no production instruction is generated). And if it responds to such a production instruction | indication, there exists a problem that a production facility will become non-operation.

本実施形態は、生産計画における安全在庫数の日別設定と、その設定を加味した所要量の計算とに関するものである。具体的には、本実施形態は、将来の安全在庫数を設定することで、そこへ向けた日割りによる日別の安全在庫数の自動計算を行う機能と、日別の安全在庫数を加味した所要量の計算を行う機能とを技術的思想として含むものであり、本実施の形態では、それら機能によって、将来の安全在庫数の増減分をそれ以前の複数の日にちの安全在庫数に割り当て、割り当てた安全在庫数を生産計画の自動立案に利用する。   The present embodiment relates to the daily setting of the number of safety stocks in the production plan, and the calculation of the required amount in consideration of the setting. Specifically, in the present embodiment, by setting the future safety stock number, the function of automatically calculating the daily safety stock number by the daily distribution for the safety stock number and the daily safety stock number are added. A function for calculating the required amount is included as a technical idea, and in this embodiment, the increase / decrease of the future safety stock number is allocated to the safety stock numbers of a plurality of previous days by these functions, The assigned safety stock number is used for automatic production planning.

本実施形態によれば、将来の需要増に向けた製品在庫の積み増しを計画的に(すなわち段階的に)行うことができるので、繁忙期の生産負荷の低減が実現される。そのため、生産設備の最大生産能力を低下させるか又は最大生産能力の低い生産設備を使用することも可能となる。また、本実施形態によれば、将来の需要減に向けて少なく設定された安全在庫数に応じて生産調整を段階的に行いつつ、製品在庫過剰分についてはその数を減らしていくことができるので、突然の設備の不稼働が回避されるだけでなく、閑散期においても生産設備の生産能力を活用することができる。まとめると、本実施形態によれば、繁忙期の生産負荷の低減を実現することができ、かつ、閑散期においても生産能力を活用することができるので、上述した問題点を解消して、需要に変動があっても生産負荷の標準化を図ることができる(図3参照)。   According to the present embodiment, it is possible to systematically increase product inventory for the future increase in demand (that is, in stages), so that it is possible to reduce the production load during the busy season. Therefore, it is possible to reduce the maximum production capacity of the production facility or use a production facility having a low maximum production capacity. In addition, according to the present embodiment, it is possible to reduce the number of excess product inventory while performing production adjustment step by step according to the number of safety stocks set to be small in order to reduce future demand. Therefore, not only a sudden outage of the equipment is avoided, but also the production capacity of the production equipment can be utilized even in a quiet period. In summary, according to the present embodiment, it is possible to reduce the production load during the busy season and to utilize the production capacity even during the quiet season. Even if there are fluctuations, the production load can be standardized (see FIG. 3).

なお、本実施形態は、製造業(工場などにおける生産業務)における生産管理に限らず、例えば小売業などにおける商品の在庫管理や販売管理などにも適用可能であり、この場合には、在庫管理に要する負荷(例えば、商品の発注業務の負荷)の標準化を図ることができる。   Note that the present embodiment is not limited to production management in the manufacturing industry (production work in factories or the like), but can be applied to, for example, inventory management or sales management of products in the retail industry. In this case, inventory management is possible. Can be standardized (for example, the load for ordering goods).

[2.構成]
本実施形態に係る生産計画自動立案装置を含む生産計画自動立案システムの構成の一例について、図4を参照して説明する。図4は、本発明の実施形態に係る生産計画自動立案装置を含む生産計画自動立案システムの構成の一例を示すブロック図である。
[2. Constitution]
An example of a configuration of a production plan automatic planning system including the production plan automatic planning apparatus according to the present embodiment will be described with reference to FIG. FIG. 4 is a block diagram showing an example of the configuration of a production plan automatic planning system including a production plan automatic planning apparatus according to an embodiment of the present invention.

図4に示す生産計画自動立案システムは、情報処理装置としての生産計画自動立案装置100と、サーバ200と、生産計画自動立案装置100及びサーバ200を相互に通信可能に接続するネットワーク300とを含んでいる。   4 includes a production plan automatic planning apparatus 100 as an information processing apparatus, a server 200, and a network 300 that connects the production plan automatic planning apparatus 100 and the server 200 so that they can communicate with each other. It is out.

生産計画自動立案装置100は、市販のデスクトップ型パーソナルコンピュータであり、製品を生産すべき計画数を立案するための情報処理装置である。なお、生産計画自動立案装置100は、デスクトップ型パーソナルコンピュータのような据置型情報処理装置に限らず、市販されているノート型パーソナルコンピュータ、PDA(Personal Digital Assistants)、スマートフォン、タブレット型パーソナルコンピュータなどの携帯型情報処理装置であってもよい。   The production plan automatic planning device 100 is a commercially available desktop personal computer, and is an information processing device for planning the number of products to be produced. The production planning automatic planning apparatus 100 is not limited to a stationary information processing apparatus such as a desktop personal computer, but is a commercially available notebook personal computer, PDA (Personal Digital Assistants), smartphone, tablet personal computer, or the like. It may be a portable information processing apparatus.

生産計画自動立案装置100は、制御部102と、通信インターフェース部104と、記憶部106と、入出力インターフェース部108とを備えている。生産計画自動立案装置100が備えている各部は、任意の通信路を介して通信可能に接続されている。   The production plan automatic planning apparatus 100 includes a control unit 102, a communication interface unit 104, a storage unit 106, and an input / output interface unit 108. The units included in the production plan automatic planning apparatus 100 are communicably connected via an arbitrary communication path.

通信インターフェース部104は、ルータ等の通信装置及び専用線等の有線又は無線の通信回線を介して、生産計画自動立案装置100をネットワーク300に通信可能に接続する。通信インターフェース部104は、他の装置と通信回線を介してデータを通信する機能を有する。ここで、ネットワーク300は、生産計画自動立案装置100とサーバ200とを相互に通信可能に接続する機能を有し、例えばインターネットやイントラネット、LAN(Local Area Network)等である。したがって、通信インターフェース部104は、図4には図示されていない情報処理装置からの入力情報等を、ネットワーク300を介して又はネットワーク300及びサーバ200を介して受け付けることが可能に構成されているとともに、所定の情報処理装置に対して所定の情報を出力することが可能に構成されている。   The communication interface unit 104 communicatively connects the production plan automatic planning apparatus 100 to the network 300 via a communication device such as a router and a wired or wireless communication line such as a dedicated line. The communication interface unit 104 has a function of communicating data with other devices via a communication line. Here, the network 300 has a function of connecting the production plan automatic planning apparatus 100 and the server 200 so that they can communicate with each other, and is, for example, the Internet, an intranet, or a LAN (Local Area Network). Accordingly, the communication interface unit 104 is configured to be able to accept input information from an information processing apparatus not shown in FIG. 4 via the network 300 or via the network 300 and the server 200. The predetermined information is output to a predetermined information processing apparatus.

記憶部106には、各種のデータベース、テーブル、及びファイルなどが格納される。記憶部106には、OS(Operating System)と協働してCPU(Central Processing Unit)に命令を与えて各種処理を行うためのコンピュータプログラム(本発明の生産計画自動立案プログラムを含む)が記録される。記憶部106として、例えば、RAM(Random Access Memory)・ROM(Read Only Memory)等のメモリ装置、ハードディスクのような固定ディスク装置、フレキシブルディスク、及び光ディスク等を用いることができる。また、この記憶部106には、本発明の生産計画自動立案プログラムを実施するために用いられる各種のマスタ(データベース又はテーブル)が書き出し/読み出し可能に格納されている。各種のマスタについては後述する。   The storage unit 106 stores various databases, tables, files, and the like. The storage unit 106 records a computer program (including a production plan automatic planning program of the present invention) for performing various processes by giving instructions to a CPU (Central Processing Unit) in cooperation with an OS (Operating System). The As the storage unit 106, for example, a memory device such as a RAM (Random Access Memory) and a ROM (Read Only Memory), a fixed disk device such as a hard disk, a flexible disk, and an optical disk can be used. The storage unit 106 stores various masters (databases or tables) used for executing the production plan automatic planning program of the present invention in a readable / writable manner. Various masters will be described later.

入出力インターフェース部108には、入力装置112及び出力装置114が接続されている。出力装置114には、モニタ(家庭用テレビを含む)の他、スピーカやプリンタを用いることができる。入力装置112には、キーボード、マウス、及びマイクの他、マウスと協働してポインティングデバイス機能を実現するモニタを用いることができる。なお、以下では、出力装置114をモニタ114とし、入力装置112をキーボード112またはマウス112として記載する場合がある。   An input device 112 and an output device 114 are connected to the input / output interface unit 108. As the output device 114, a speaker (including a home television), a speaker, and a printer can be used. As the input device 112, in addition to a keyboard, a mouse, and a microphone, a monitor that realizes a pointing device function in cooperation with the mouse can be used. In the following description, the output device 114 may be described as the monitor 114, and the input device 112 may be described as the keyboard 112 or the mouse 112.

制御部102は、生産計画自動立案装置100を統括的に制御するCPU等である。制御部102は、OS等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどを格納するための内部メモリを有し、格納されているこれらのプログラムに基づいて種々の情報処理を実行する。   The control unit 102 is a CPU or the like that comprehensively controls the production plan automatic planning apparatus 100. The control unit 102 has an internal memory for storing a control program such as an OS, a program that defines various processing procedures, and necessary data, and performs various information processing based on these stored programs. Run.

さらに図4を参照しながら、記憶部106の構成と制御部102の構成について詳述する。   Further, the configuration of the storage unit 106 and the configuration of the control unit 102 will be described in detail with reference to FIG.

記憶部106には、図4に示す例では、日別在庫計画マスタ106aと、手配条件マスタ106bと、品目マスタ106cと、CSVデータマスタ106dと、受注データマスタ106eと、内示データマスタ106fと、在庫データマスタ106gと、計画データマスタ106hとが格納されている。   In the example shown in FIG. 4, the storage unit 106 includes a daily inventory plan master 106a, an arrangement condition master 106b, an item master 106c, a CSV data master 106d, an order data master 106e, an unannounced data master 106f, An inventory data master 106g and a plan data master 106h are stored.

日別在庫計画マスタ106aは、後述する日別基準安全在庫数データを格納するためのマスタである。この日別基準安全在庫数データは、在庫計画数、品目コード、日付(年月)、安全在庫数(上限)、安全在庫数(下限)、発注点及び発注検討期間等に関する情報を含むレコードである。   The daily inventory plan master 106a is a master for storing daily reference safety stock quantity data described later. This daily standard safety stock data is a record that includes information on planned stock, item code, date (year and month), safety stock (upper limit), safety stock (lower limit), order point, order review period, etc. is there.

手配条件マスタ106bは、製品の生産又は在庫管理に必要な条件を設定値として格納しておくためのマスタであり、設定値としては、例えば、安全在庫数(上限)、安全在庫数(下限)、発注点、発注検討期間、拠点コード、品目コード、工順、手配パターンに関する情報がある。   The arrangement condition master 106b is a master for storing conditions necessary for product production or inventory management as set values. Examples of set values include the number of safety stocks (upper limit) and the number of safety stocks (lower limit). , Order point, order review period, base code, item code, route, and arrangement pattern.

品目マスタ106cは、製品を識別又は特定するための情報を格納するためのマスタである。このマスタには、製品ごとに、例えば、製造拠点コード、品目区分、内示受注計画区分、計画引当区分、計画立案区分、内示受注計画区分、計画まとめ区分、最少計画数、増分計画数、最大計画数、品目名、在庫単位コード、及び出荷場所コードが登録される。   The item master 106c is a master for storing information for identifying or specifying a product. This master includes, for each product, for example, production base code, item classification, unlisted order plan classification, plan allocation classification, planning draft classification, unlisted order plan classification, plan summary classification, minimum plan number, incremental plan number, maximum plan. Number, item name, inventory unit code, and shipping location code are registered.

CSVデータマスタ106dは、後述する期末安全在庫数データを格納するためのマスタである。この期末安全在庫数データは、月末における製品の在庫計画数(月末在庫計画数)に関する情報が複数月分にわたって記録されているレコードデータであり、フォーマットを予め規定しておけば、例えばテキストデータであってもよい。月末在庫計画数は、需要予測を考慮して予め定められた設定値である。   The CSV data master 106d is a master for storing end-of-period safety stock quantity data, which will be described later. This end-of-life safety stock data is record data in which information on the planned product inventory at the end of the month (the number of planned stock at the end of the month) is recorded for a number of months. There may be. The end-of-month inventory plan number is a preset value determined in consideration of demand forecast.

受注データマスタ106eは、製品の受注に関する情報を格納するためのマスタである。このマスタには、製品ごとに、例えば、得意先コード、品目コード、生産計画必要区分、完納区分、在庫管理出荷数、在庫引当数、製造完成数、納期、製造出荷日、受注区分、受注番号、品目名、納期、出荷予定日、製造出荷日、在庫管理受注数、在庫管理出荷数、在庫単位コード、在庫単位名、在庫引当場所コード、在庫引当数、製造指示数、製造完成数、生産計画必要区分、生産計画日、計画立案数、及び製番に関する情報が記録されているレコードが格納される。   The order data master 106e is a master for storing information related to product orders. In this master, for example, customer code, item code, production plan requirement category, complete delivery category, inventory management shipment quantity, inventory allocation quantity, production completion quantity, delivery date, production shipment date, order classification, order number , Item name, Delivery date, Scheduled shipment date, Production shipment date, Inventory management order quantity, Inventory management shipment quantity, Inventory unit code, Inventory unit name, Inventory allocation location code, Inventory allocation number, Production instruction number, Manufacturing completion number, Production Stored is a record in which information relating to a necessary plan category, a production plan date, the number of plans, and a product number are recorded.

内示データマスタ106fは、内示に関する情報を格納するためのマスタある。このマスタには、製品ごとに、例えば、得意先コード、品目コード、内示日、出荷予定日、内示番号、品目コード、内示日、及び内示数に関する情報が記録されているレコードが格納される。   The inside data master 106f is a master for storing information relating to the inside data. In this master, for example, a record in which information relating to a customer code, an item code, an inside date, a planned shipping date, an inside number, an item number, an inside date, and the number of indications is recorded for each product.

在庫データマスタ106gは、製品の在庫に関する情報を製品ごとに格納するためのマスタある。このマスタには、製品ごとに、現在の在庫数に関する情報等が記録されているレコードが格納される。   The inventory data master 106g is a master for storing information related to product inventory for each product. This master stores a record in which information about the current inventory quantity is recorded for each product.

計画データマスタ106hは、後述する製品の生産計画に関する情報を格納するためのマスタである。   The plan data master 106h is a master for storing information related to a production plan for a product to be described later.

また、図4に示すように、制御部102は、機能概念的に、日割り処理部102aと、立案部102bとを備えている。   Moreover, as shown in FIG. 4, the control part 102 is provided with the daily process part 102a and the planning part 102b on the functional concept.

日割り処理部102aは、後述する生産計画自動立案方法の在庫管理方法を実行するための手段として機能する。この手段には、短周期基準安全在庫数データを作成する作成手段と、増減数データに対応する製品の増減分の割り当てを行う更新手段とが含まれる。   The daily processing unit 102a functions as a means for executing an inventory management method of an automatic production plan making method described later. This means includes a creating means for creating short cycle reference safety stock quantity data and an updating means for assigning the increase / decrease of the product corresponding to the increase / decrease number data.

立案部102bは、後述する生産計画自動立案方法の生産管理方法を実行するための手段として機能する。この手段には、製品を生産すべき計画数を決定する決定手段が含まれる。   The planning unit 102b functions as a means for executing a production management method of a production plan automatic planning method described later. This means includes determining means for determining the planned number of products to be produced.

[3.第1の実施形態]
続いて、本発明の第1の実施形態について説明する。具体的には、図4に示す生産計画自動立案装置100を含む生産計画自動立案システムにおいて実行される第1の実施形態に係る生産計画自動立案方法の処理手順について説明する。なお、本処理の大部分は、図1における生産計画自動立案装置100の制御部102において実行される。この第1の実施形態に係る生産計画自動立案方法は、概略的には、製品の安全在庫数を決定するための在庫管理方法と、当該在庫管理方法において決定した安全在庫数に基づいて製品を生産すべき生産数を決定するための生産管理方法とから構成されており、製品が複数種類にわたる場合には、各製品について本処理が行われる。
[3. First Embodiment]
Subsequently, a first embodiment of the present invention will be described. Specifically, the processing procedure of the production plan automatic planning method according to the first embodiment executed in the production plan automatic planning system including the production plan automatic planning apparatus 100 shown in FIG. 4 will be described. Most of this processing is executed by the control unit 102 of the production plan automatic planning apparatus 100 in FIG. The production plan automatic planning method according to the first embodiment generally includes an inventory management method for determining the safety stock number of a product, and a product based on the safety stock number determined by the inventory management method. This method includes a production management method for determining the number of productions to be produced. When there are a plurality of types of products, this processing is performed for each product.

第1に、在庫管理方法の処理手順を説明する。この在庫管理方法に係る処理の大部分は、制御部102の日割り処理部102aにおいて実行される。また、これらの処理を実行するために、記憶部102に所定の作業領域(ワーク)を形成し、当該ワーク上で退避データを作成することが好ましい。   First, the processing procedure of the inventory management method will be described. Most of the processing relating to this inventory management method is executed by the daily processing unit 102a of the control unit 102. In order to execute these processes, it is preferable to form a predetermined work area (work) in the storage unit 102 and create save data on the work.

まず、在庫管理方法の第1工程においては、在庫管理の対象となる適用期間の基準日付を決定する(基準日付設定手段)。なお、この在庫管理の対象となる適用期間は、後述する生産管理方法において製品を生産すべき計画数の立案の対象となる適用期間にも該当する。この基準日付は、現在の日付であってもよいし、現在の日付よりも後の日付であってもよい。そして、基準日付を含む月の翌月以降が上記適用期間として設定される。適用期間の末日は、デフォルトで又は任意に設定可能であり、例えば翌々々月の末日(すなわち3か月間)に設定される。   First, in the first step of the inventory management method, a reference date for an application period to be subject to inventory management is determined (reference date setting means). The application period that is the target of inventory management also corresponds to the application period that is the target of planning the number of products to be produced in the production management method described later. This reference date may be the current date or a date later than the current date. Then, the month following the month including the reference date is set as the application period. The last day of the application period can be set by default or arbitrarily, and is set, for example, at the last day of the month after next (that is, for three months).

続く第2工程においては、月を単位として予め定められた在庫計画数に関する一連のデータを読み出す。   In the subsequent second step, a series of data relating to the predetermined number of inventory plans is read in units of months.

ここで、在庫計画数とは、製品に対する需要予測を考慮して予め定められた製品の在庫数として予定している数を意味し、通常は、所定の周期ごとに当該周期の期末に予定している在庫数(以下、「期末の在庫計画数」ともいう)として定められる。需要予測は、過去の製造実績を参考になされたものであってもよいし、市場調査によって得られたものであってもよいし、過去の製造実績及び市場調査の結果の双方を勘案したものであってもよい。在庫計画数としては、一般的に、在庫切れが起こらないように、需要予測から見積もられる製品の数を十分に上回る数が設定される。そして、このように設定された複数の連続した周期にわたる期末の在庫計画数のデータ(以下、「期末安全在庫数データ」ともいう)は、記憶部106又は外部記憶装置に予め格納しておくことが好ましい。   Here, the planned number of stocks means the number planned as the number of stocks of products that has been determined in consideration of demand forecasts for products, and is usually scheduled at the end of the cycle every predetermined cycle. Inventory quantity (hereinafter also referred to as “the planned inventory quantity at the end of the term”). The demand forecast may have been made with reference to past manufacturing results, or may have been obtained through market research, or may take into account both past manufacturing results and market research results. It may be. In general, the planned number of stocks is set to a value that sufficiently exceeds the number of products estimated from the demand forecast so as not to run out of stock. Data on the planned number of stocks at the end of the period over a plurality of consecutive periods set in this way (hereinafter also referred to as “term-end safety stock quantity data”) is stored in advance in the storage unit 106 or the external storage device. Is preferred.

次に、第3工程においては、第2工程において読み出した一連の期末安全在庫数データから、1か月分の期末安全在庫数データ(例えば、基準日付を含む月の翌月の期末安全在庫数データ)を抽出し、抽出した期末安全在庫数データに対応する月の末日における在庫計画数の値を読み出すとともに、抽出した期末安全在庫数データに対応する月の先月の末日における在庫計画数の値を読み出し、そして、両者の差分(すなわち、1か月後の在庫計画数の増減分)を算出して、その算出結果を増減数データとして取得する(算出手段)。増減数データにおいては、増大分は正の整数で表され、減少分は負の整数で表され、増減がない場合にはゼロで表される。なお、この増減数データには、製品のイレギュラーな移動分(例えば、他の製造拠点への貸し借り分、返品若しくはキャンセルの受け入れ分、及び直送分)に関する情報も含まれていることが好ましい。   Next, in the third step, from the series of end-of-period safety stock data read out in the second step, one-month end-of-life safety stock data (for example, end-of-life safety stock data for the month following the month including the reference date) ), And the value of the planned number of inventory at the end of the month corresponding to the extracted end-of-period safety stock data is read, and the value of the planned inventory at the end of the last month of the month corresponding to the extracted end-of-period safety stock data Reading and calculating the difference between them (that is, the increase / decrease in the number of inventory plans after one month) and obtaining the calculation result as increase / decrease data (calculation means). In the increase / decrease number data, the increase is represented by a positive integer, the decrease is represented by a negative integer, and zero when there is no increase / decrease. Note that this increase / decrease number data preferably also includes information on irregular movement of the product (for example, lending / borrowing to other manufacturing bases, acceptance of return or cancellation, and direct shipment).

続いて、第4工程においては、第3工程において抽出した期末安全在庫数データに対応する月について、該当月の日数の分だけ日別のデータ(以下、「日別基準安全在庫数データ」ともいう)を用意する(作成手段)。日別基準安全在庫数データの初期値はゼロ又はNullであり、本処理が既に行われている場合には、そのときに用意した日別基準安全在庫数データとして設定されている値が用いられる。   Subsequently, in the fourth process, for the month corresponding to the end-of-period safety stock data extracted in the third process, the daily data (hereinafter referred to as “daily standard safety stock data”) for the number of days in the corresponding month. Prepare) (creating means). The initial value of the daily standard safety stock quantity data is zero or null, and when this process has already been performed, the value set as the daily standard safety stock quantity data prepared at that time is used. .

次に、第5工程においては、第4工程において用意した複数の日別基準安全在庫数データの各々について、当該日別基準安全在庫数データが、製品の生産を行うことが可能な稼働日についてのデータかどうかを判定するとともに、稼働日であれば、該当月における日にちの順序に応じた係数を設定し(係数設定手段)、一方、稼働日でなければ直前の稼働日に設定した係数と同じ係数を設定する(係数設定手段)。稼働日についての判定は、製品の生産を行う現場のカレンダーに準じて行われる。   Next, in the fifth process, for each of the plurality of daily standard safety stock data prepared in the fourth process, the daily standard safety stock data is related to the working days on which the product can be produced. If it is an operating day, set the coefficient according to the date order in the month (coefficient setting means), and if it is not an operating day, The same coefficient is set (coefficient setting means). The determination about the working day is performed according to the calendar of the site where the product is produced.

そして、第6工程においては、第4工程において用意した日別基準安全在庫数データのうち、第5工程において稼働日であると判定された日別基準安全在庫数データの各々に対して、第3工程において取得した増減数データに対応する製品の増減分を割り当てる。その結果として、日別基準安全在庫数データの更新が行われることとなる(更新手段)。すなわち、この処理によって、日別基準安全在庫数データに割り当てられた増減分に関する値が設定される。   In the sixth step, out of the daily standard safety stock number data prepared in the fourth step, the daily standard safety stock number data determined as the working day in the fifth step is The increase / decrease amount of the product corresponding to the increase / decrease number data acquired in the three steps is assigned. As a result, the daily reference safety stock quantity data is updated (update means). That is, by this process, a value related to the increase / decrease allocated to the daily reference safety stock quantity data is set.

ここで、第6工程における増減分を割り当て方法の一例を説明する。この例は、第5工程において稼働日に設定される係数として、該当月における日にちの順序を示す整数を設定した場合に関する。   Here, an example of a method for assigning the increase / decrease in the sixth step will be described. This example relates to the case where an integer indicating the date order in the month is set as the coefficient set in the fifth process.

増減分を割り当てるために、まず、第3工程において抽出した期末安全在庫数データに対応する月の先月の末日における在庫計画数の値を、割り当ての基準値とし、この値を、稼働日に対応する日別基準安全在庫数データの各々に割り当てる。次に、稼働日に対応する日別基準安全在庫数データに対して、上記係数を用いた傾斜配分を行う。具体的には、増減数データに対応する製品の増減分を稼働日の日数で除算し、日割りの増減分に関する日割り増減数データとして取得し、続いて、取得した増減数データに対応する日割りの増減分に、稼働日に設定した係数としての整数を乗算し、得られた値を、稼働日の日別基準安全在庫数データに割り当てる。すなわち、稼働日に対応する日別基準安全在庫数データには、在庫計画数の基準値に、日割りの増減分と稼働日に設定された係数の乗算結果が加算された値が割り当てられる。これにより、増減分がある場合には(すなわち増減がない場合を除いては)、日別基準安全在庫数データに割り当てられる在庫計画数の値を、稼働日の日付が進むにつれて漸増又は漸減させることができ、他方、増減がない場合においても、稼働日に設定した係数によらず、在庫計画数の基準値を日別基準安全在庫数データに対して割り当てることができる。なお、非稼働日(稼働休止日)に対応する日別基準安全在庫数データに対しては、その前日に割り当てられた在庫計画数の値と同じ値が割り当てられる。さらに、第3工程において抽出した期末安全在庫数データに対応する月の先月の末日における在庫計画数の値を上記の基準値で更新する。   In order to allocate the increase / decrease, first, the value of the planned inventory number on the last day of the previous month of the month corresponding to the period-end safety inventory data extracted in the third process is used as the reference value for allocation, and this value corresponds to the working day. Assigned to each of the daily standard safety stock data. Next, the slope distribution using the coefficient is performed on the daily reference safety stock quantity data corresponding to the working day. Specifically, the increase / decrease in the product corresponding to the increase / decrease data is divided by the number of working days to obtain the daily increase / decrease data related to the daily increase / decrease, and then the daily increase / decrease data corresponding to the acquired increase / decrease data is obtained. The increase / decrease is multiplied by an integer as a coefficient set on the working day, and the obtained value is assigned to the daily standard safety stock data for the working day. That is, the daily reference safety stock data corresponding to the working day is assigned a value obtained by adding the result of multiplying the daily increase / decrease and the coefficient set on the working day to the reference value of the planned number of stocks. As a result, when there is an increase / decrease (that is, unless there is an increase / decrease), the value of the planned number of inventory allocated to the daily basic safety inventory data is gradually increased or decreased as the working day date advances. On the other hand, even when there is no increase / decrease, the reference value of the planned number of inventory can be assigned to the daily reference safety inventory number data regardless of the coefficient set on the working day. In addition, the same value as the value of the number of planned stocks assigned on the previous day is assigned to the daily standard safety stock number data corresponding to the non-working day (working stop day). Furthermore, the value of the planned inventory number on the last day of the last month of the month corresponding to the period-end safety inventory number data extracted in the third step is updated with the above reference value.

次に、第7工程においては、翌々月分の在庫計画数の設定を行うかどうか判定する。この判定は、第1工程において決定された適用期間に、第3工程で抽出した期末安全在庫数データに対応する月の翌月に対応する期末安全在庫数データが存在するかどうかを判定することで行われる。翌月分の在庫計画数の設定を行う場合には、第1工程に戻って、基準日付を翌月に更新し、第2工程〜第6工程の処理を行う。翌々月分の在庫計画数の設定を行わない場合には、在庫管理方法の全ての処理を完了する。これにより、第1工程において決定された適用期間に属する日の各々に在庫計画数が設定されることとなる。設定された在庫計画数は、日別基準安全在庫数データとして、日別在庫計画マスタ106aに格納される。   Next, in the seventh step, it is determined whether or not to set the number of inventory plans for the next month. This determination is performed by determining whether or not there is end-of-period safety stock data corresponding to the next month of the month corresponding to the end-of-period safety stock data extracted in the third step in the application period determined in the first step. Done. When setting the number of inventory plans for the next month, the process returns to the first process, the reference date is updated to the next month, and the processes from the second process to the sixth process are performed. If the number of inventory plans for the next month is not set, all processes of the inventory management method are completed. Thereby, the number of inventory plans is set for each day belonging to the application period determined in the first step. The set stock plan number is stored in the daily stock plan master 106a as the daily standard safety stock number data.

第2に、生産管理方法の処理手順を説明する。この生産管理方法に係る処理の大部分は、制御部102の立案部102bにおいて実行される。また、これらの処理を実行するために、記憶部102に所定の作業領域(ワーク)を形成し、当該ワーク上で退避データを作成することが好ましい。   Second, the processing procedure of the production management method will be described. Most of the processing relating to this production management method is executed by the planning unit 102b of the control unit 102. In order to execute these processes, it is preferable to form a predetermined work area (work) in the storage unit 102 and create save data on the work.

まず、生産管理方法の第1工程においては、在庫管理方法の第1工程と同様に基準日付を決定した上で、対象となる製品について、生産拠点における受注に関する受注ファイルと引当に関する計画引当ファイルの読み出しを行う。読み出した受注ファイル及び計画引当ファイルは、必要に応じて、ワーク上で、初期化や不要なデータの削除が行われる。   First, in the first step of the production management method, the reference date is determined in the same manner as in the first step of the inventory management method. Read. The read order file and plan allocation file are initialized or deleted unnecessary data on the work as necessary.

続いて、第2工程においては、対象となる製品について、生産拠点ごとに、製品の生産計画に係る生産計画ファイルを日別で作成する。具体的には、生産計画ファイルに、対象となる製品を生産すべき計画数を設定する(決定手段)。対象となる製品を生産すべき計画数は、該当する日付における在庫数と、第1工程において読み出した受注ファイルにおける製品の受注数及び納期に関するデータと、計画引当ファイルにおける引当数に関するデータと、上述した在庫管理方法に係る処理で作成した日別のデータに設定された在庫計画数とに基づいて設定される。ここで、該当する日付における在庫数は、該当する日付において既に生産完了して出荷済みの製品の数を示す完成数や出荷前のリードタイムも考慮される。概略的には、対象となる製品を生産すべき計画数は、在庫計画数から、引当数及び完成数を減算することで定まる。より好ましくは、1ロットに含まれる数を考慮して対象となる製品を生産すべき計画数を定める。なお、用いるデータの不足等により、生産計画ファイルが作成できていない場合等には、手配条件マスタ106bから読み出した手配条件、例えば、安全在庫数の上限値、下限値、又は所定の発注点を用いて、対象となる製品を生産すべき計画数として設定することが好ましい。   Subsequently, in the second step, for each target product, a production plan file related to the product production plan is created daily for each production base. Specifically, the number of plans for producing the target product is set in the production plan file (decision means). The number of plans to produce the target product includes the number of stocks on the relevant date, the data on the number of orders received and the delivery date in the order file read in the first step, the data on the number of provisions in the plan allocation file, It is set based on the number of inventory plans set in the daily data created by the processing related to the inventory management method. Here, the number of stocks on the relevant date also takes into account the number of finished products indicating the number of products that have already been produced and shipped on the relevant date, and lead time before shipment. Schematically, the number of plans for producing a target product is determined by subtracting the number of allocations and the number of completed products from the number of inventory plans. More preferably, the planned number for producing the target product is determined in consideration of the number included in one lot. If the production plan file cannot be created due to lack of data to be used, etc., the order conditions read from the order condition master 106b, for example, the upper limit value, lower limit value, or predetermined order point of the safety stock number It is preferable to set the target product as the planned number to be produced.

そして、第3工程においては、別の生産拠点についても上述した第1工程〜第2工程の処理を行う。ここで、必要に応じて、全ての生産拠点についての製品の計画数の集計を行ってもよい。さらに、第4工程においては、他の製品についても生産管理を行う場合には、上述した第1〜第3工程の処理を行う。なお、第3工程及び第4工程に代えて、又は、並行して、各生産拠点について複数種類の製品の計画数の集計(まとめ処理)を行ってもよい(まとめ手段)。そして、生産管理方法に係るすべての処理を完了する。   And in a 3rd process, the process of the 1st process-the 2nd process mentioned above is performed also about another production base. Here, the planned number of products for all production bases may be totaled as necessary. Furthermore, in the fourth step, when production management is performed for other products, the above-described first to third steps are performed. In addition, instead of the third step and the fourth step, or in parallel, the total number (planning process) of the planned number of plural types of products may be performed for each production base (summarizing means). Then, all processes related to the production management method are completed.

上述した第1の実施形態に係る生産計画自動立案方法によれば、在庫管理に際し、製品に対する需要予測を考慮して予め定められた所定の月における期末の在庫計画数に関する期末安全在庫数データを用いて、当該所定の月に属する日における在庫計画数に関する日別基準安全在庫数データを当該月に属する日の数の分だけ作成し(在庫管理方法の第4工程)、そして、上記の所定の月における製品の増減分に関する増減数データを用いて(在庫管理方法の第3工程)、日別基準安全在庫数データに対応する在庫計画数の各々に、増減数データに対応する製品の増減分を割り当てることにより、作成した日別基準安全在庫数データを更新する(在庫管理方法の第6工程)ので、上記の所定の月における期末の在庫計画数(製品の需要)に変動があっても、安全在庫数を確保しつつ、当該所定の月の期末の在庫計画数の増減分を日割りで配分することができる。すなわち、当該所定の月の期末の在庫計画数の増減分を当該所定の月において均して標準化することができる。また、基準日付を更新することで(在庫管理方法の第7工程)、さらに先の在庫計画数を決定することができる。   According to the production plan automatic planning method according to the first embodiment described above, at the time of inventory management, the end-of-period safety stock quantity data related to the end-of-term inventory plan number in a predetermined month that is determined in consideration of the demand forecast for products is obtained. The daily standard safety stock data relating to the planned number of stocks on the day belonging to the predetermined month is created for the number of days belonging to the month (the fourth step of the inventory management method), and the above predetermined Increase / decrease in the number of products corresponding to the increase / decrease data using the increase / decrease data related to the increase / decrease of the product in the month (third step of the inventory management method) By allocating the minutes, the daily standard safety inventory number data is updated (6th step of the inventory management method), so it fluctuates to the planned number of inventory at the end of the specified month (product demand) Even while ensuring safety stock quantity, it is possible to allocate the increment or decrement of inventory planning number of end of the predetermined month daily. That is, the increase / decrease in the number of inventory plans at the end of the predetermined month can be standardized uniformly over the predetermined month. Further, by updating the reference date (seventh step of the inventory management method), it is possible to determine the number of inventory plans ahead.

また、上述の在庫管理に際し、稼働日であると判定された日別基準安全在庫数データの各々に対して、増減数データに対応する製品の増減分を割り当てる(在庫管理方法の第6工程)ので、稼働日、すなわち在庫数の調整が可能な日を選択して在庫管理を行うことができるとともに、生産管理の観点からも非稼働日を製品の生産に充てる必要をなくすことができる。さらには、在庫管理方法の第6工程においては、増減分を割り当てるために、稼働日に設定される係数を用いて傾斜配分を行って、日別基準安全在庫数データに割り当てられる在庫計画数の値を、稼働日の日付が進むにつれて漸増又は漸減させるので、生産設備及び生産体制を考慮した日割りで増産量の積み増し又は減産量の調整を行うことができ、これにより、製品の生産負荷が急増又は急減するのを回避することができる。   Further, in the above-described inventory management, an increase / decrease amount of the product corresponding to the increase / decrease number data is assigned to each of the daily standard safety inventory number data determined to be the working day (sixth step of the inventory management method). Therefore, it is possible to perform inventory management by selecting an operating day, that is, a day on which the number of inventory can be adjusted, and it is possible to eliminate the need to allocate a non-operating day to product production from the viewpoint of production management. Further, in the sixth step of the inventory management method, in order to allocate the increase / decrease, the slope allocation is performed using the coefficient set on the working day, and the inventory plan number allocated to the daily basic safety inventory number data is determined. Since the value is gradually increased or decreased as the working day progresses, it is possible to increase or decrease the production amount on a daily basis considering the production equipment and production system, thereby rapidly increasing the product production load. Or it is possible to avoid a sudden decrease.

また、本実施形態に係る生産計画自動立案方法によれば、生産管理に際し、在庫管理方法を用いて得られた日別基準安全在庫数データと、上記の所定の月における製品の引当数に関する引当数データとを用いて、上記の所定の月に属する日において製品を生産すべき計画数を決定する(生産管理方法の第2工程)ので、基準日付を含む月の翌月からの生産計画が自動的に立案されることとなる。この結果、上記の所定の月における期末の在庫計画数(製品の需要)に変動があっても、安全在庫数を確保しつつ、当該期末の在庫計画数に応じた製品の増産量又は減産量の絶対値を当該所定の月において均すことができ、これにより、期末に向けて増産又は減産を段階的に行うこと、すなわち生産負荷の標準化を図ることができる。また、基準日付を変更又は更新することで、さらに先の生産計画を立案することもできる。   Further, according to the production plan automatic planning method according to the present embodiment, the daily standard safety inventory number data obtained by using the inventory management method and the provision relating to the number of provisions of the product in the predetermined month in the production management. Using the numerical data, the planned number of products to be produced on the day belonging to the predetermined month is determined (the second step of the production management method), so the production plan from the month following the month including the reference date is automatically performed. Will be planned. As a result, even if there is a change in the planned number of inventory at the end of the specified month (product demand), the amount of product increased or decreased according to the planned number of stock at the end of the period while securing the number of safety stock Can be averaged over the predetermined month, thereby increasing or decreasing production in stages toward the end of the period, that is, standardizing the production load. Further, a further production plan can be made by changing or updating the reference date.

なお、「月に属する日の数」とは、上記生産管理方法を考慮する上では、上述のとおり、製品の生産を行う稼働日の数であることが好ましいが、生産管理方法を考慮せずに在庫管理のみに着目する場合には、単に、該当月に属する日の数としてもよく、この場合には、在庫数を考慮して必要な在庫数を算出して生産現場へ発注するか、又は、生産管理に際して稼働日を考慮した生産計画を立案することが好ましい。   Note that the “number of days belonging to the month” is preferably the number of working days on which a product is produced, as described above, in consideration of the production management method. However, the production management method is not considered. When focusing on inventory management only, the number of days belonging to the relevant month may be simply used. In this case, the necessary number of inventory is calculated in consideration of the number of inventory and ordered to the production site. Alternatively, it is preferable to devise a production plan that takes into account operating days in production management.

また、上述した第1の実施形態においては、月を単位とする期間(周期)についてのデータ(期末安全在庫数データ)を用いて、日を単位とする期間(周期)についてのデータ(日別基準安全在庫数データ)を作成しているが、期間の単位は、月日に限られることはなく、相対的に長い期間についてのデータを用いて相対的に短い期間についてのデータが作成されればよく、これにより、上述した効果と同等の効果を奏することができる。   In the first embodiment described above, data (period-by-day) for a period (cycle) in units of days using data (period-end safety stock quantity data) for periods (cycles) in units of months. However, the unit of the period is not limited to the month and day, and data for a relatively short period is created using data for a relatively long period. This can provide the same effects as those described above.

[4.第1の実施形態の具体例]
続いて、上述した第1の実施形態に係る生産計画自動立案方法の具体例について、図5から図41までを参照して説明する。
[4. Specific example of the first embodiment]
Next, a specific example of the production plan automatic planning method according to the first embodiment described above will be described with reference to FIGS.

[4−1.処理概要]
本具体例で実行される、月末安全在庫数に向けた生産計画自動立案の処理の概要について、図5から図12等を参照して説明する。図5は、図4における生産計画自動立案装置100が実行する処理の処理手順を模式的に示す図である。
[4-1. Outline of processing]
The outline of the process of the production plan automatic planning for the end-of-month safety stock quantity executed in this specific example will be described with reference to FIGS. FIG. 5 is a diagram schematically showing a processing procedure of processing executed by the production plan automatic planning apparatus 100 in FIG.

[ステップSA1:月末在庫計画数データ取込と日割り処理]
日割り処理部102aは、CSVデータマスタ106dを参照して月末安全在庫数をテキストデータ(CSVファイル)にて取込む(図6参照)。そして、日割り処理部102aは、取り込んだデータ(期末安全在庫数データ)を各種ワークテーブルで処理して、日割りによる日別安全在庫数のデータ(日別基準安全在庫数データ)を作成し、作成したデータを日別在庫計画マスタ106aに設定(格納)する(図6参照)。
[Step SA1: Data acquisition at the end of the month and daily processing]
The daily processing unit 102a refers to the CSV data master 106d and takes in the month-end safety stock quantity as text data (CSV file) (see FIG. 6). Then, the daily processing unit 102a processes the captured data (period-end safety stock number data) with various work tables to create daily safety stock data (daily reference safety stock data) by daily processing. The set data is set (stored) in the daily inventory plan master 106a (see FIG. 6).

ここで、図6に示したワークテーブル01(名称:“WF_”+JOBID+“01”)には、CSVファイル読込データ(文字列状態)のエラーチェック結果を記録したレコード(図7参照)が格納される。図6に示したワークテーブル02(名称:“WF_”+JOBID+“02”)には、エラーチェックの結果がOKであったCSVレコード(図8参照)が格納される。また、図6に示したワークテーブル03(名称:“WF_”+JOBID+“03”)には、エラーリスト用データ(図9参照)が格納される。また、図6に示したワークテーブル04(名称:“WF_”+JOBID+“04”)には、日割り処理後のレコード(図10参照)が格納される。   Here, the work table 01 (name: “WF _” + JOBID + “01”) shown in FIG. 6 stores a record (see FIG. 7) that records the error check result of the CSV file read data (character string state). The In the work table 02 (name: “WF _” + JOBID + “02”) shown in FIG. 6, a CSV record (see FIG. 8) in which the error check result is OK is stored. Further, error list data (see FIG. 9) is stored in the work table 03 (name: “WF _” + JOBID + “03”) shown in FIG. Further, the work table 04 (name: “WF _” + JOBID + “04”) shown in FIG. 6 stores a record (see FIG. 10) after the daily processing.

図11は、図5のステップSA1において月末在庫計画数データ取込処理を行う際に表示される月末在庫計画数データ取込画面の一例を示す図である。   FIG. 11 is a diagram illustrating an example of a month-end inventory plan number data capture screen displayed when the month-end inventory plan number data capture process is performed in step SA1 of FIG.

この月末在庫計画数データ取込画面は、図11に示されるように、取込対象のファイルを選択するための領域と、取込対象のファイルの先頭行がタイトルであることを選択(チェック)するための領域と、これから更新しようとするデータと同一のデータ(コード)がある場合の処理を選択するための領域と、取込開始年月を入力するための領域と、取込対象年月を入力するための領域とを含んでいる。ここで、取り込むデータに関し、先頭行からデータが格納されていることが予め判明している場合、先頭行がタイトルであることを選択するための領域については「チェックなし」で固定されていてもよいし、又は、先頭行がタイトルであることを選択するための領域を非表示にしてもよいし、若しくは、当該領域を設けなくてもよい。また、取込開始年月を入力するための領域の初期表示は、ユーザの手間を省くために、現在の日付(年月)とすることが好ましい。また、取込開始年月を入力するための領域の入力値に基づいて、取込対象年月を入力するための領域には「入力年月」と、「その翌月」と、「その翌々月」とを表示する。   As shown in Fig. 11, this month-end inventory plan number data capture screen selects the area for selecting the file to be imported and that the first line of the file to be imported is the title (check) Area to select, processing to select the process when there is the same data (code) as the data to be updated from now on, area to enter the acquisition start date, and acquisition target year and month And an area for inputting. Here, regarding the data to be captured, if it is known in advance that the data is stored from the first row, the area for selecting that the first row is a title may be fixed as “no check”. Alternatively, an area for selecting that the first line is a title may be hidden, or the area may not be provided. Moreover, it is preferable that the initial display of the area for inputting the acquisition start date is the current date (year / month) in order to save the user's trouble. In addition, based on the input value of the area for entering the start date of capture, the area for entering the target year / month is “input year / month”, “next month”, and “next month” Is displayed.

図12は、CSVデータマスタ106dに格納されているCSVレコードのレイアウトの一例を示す図である。図12に示すように、CSVレコードには、複数か月分(図12に示す例では3か月分)の月末在庫計画数が記録されている。なお、レコードの1行目に「データ名」を記録してもよく、この場合、データ行は2行目からとなる。また、数値項目は、「¥」、「−」、「,」、「.」を含んでいてもよい。また、データNo欄に記入がないものは、読み込み時に無視されるので、入力時のメモとして利用してもよい。また、途中に空行が見つかった場合、それ以降を読み飛ばしてもよい。   FIG. 12 is a diagram illustrating an example of a layout of a CSV record stored in the CSV data master 106d. As shown in FIG. 12, the number of month-end inventory plans for a plurality of months (three months in the example shown in FIG. 12) is recorded in the CSV record. The “data name” may be recorded on the first line of the record. In this case, the data line starts from the second line. In addition, the numerical item may include “¥”, “−”, “,”, “.”. In addition, data that is not entered in the data No column is ignored at the time of reading and may be used as a memo at the time of input. In addition, when a blank line is found in the middle, it may be skipped.

[ステップSA2:生産計画自動立案]
立案部102bは、ステップSA1にて作成された日別安全在庫数のデータに基づいて、生産管理上の計画数を決定する。なお、日別安全在庫の設定がない製品(品目)については、手配条件マスタ106bに設定されている安全在庫数を生産管理上の計画数として採用する。
[Step SA2: Automatic production planning]
The planning unit 102b determines the number of production management plans based on the daily safety stock data created in step SA1. For products (items) for which daily safety stock is not set, the number of safety stocks set in the arrangement condition master 106b is adopted as the planned number in production management.

以上で、[4−1.処理概要]の説明を終了する。   The above [4-1. [Processing Overview] ends.

[4−2.月末在庫計画数データ取込処理及び日割り処理の詳細]
本具体例で実行される、月末在庫計画数データ取込と日割り処理について、図13から図20までを参照して詳細に説明する。図13は、図5のステップSA1において実行される月末在庫計画数データ取込処理及び日割処理の処理手順を示すフローチャートである。
[4-2. Details of end-of-month inventory plan data import processing and prorated processing]
The end-of-month inventory plan data fetching and daily allocation processing executed in this example will be described in detail with reference to FIGS. FIG. 13 is a flowchart showing the processing procedure of the end-of-month inventory plan data fetching process and the daily rate process executed in step SA1 of FIG.

ここで、本説明では、ワークテーブル02(ワーク02)に、チェックOKのCSVレコード(「翌月末在庫計画数」、「翌々月末在庫計画数」及び「翌々々月末在庫計画数」)が格納されているものとする。また、本説明において、データ名に付した「@」は、変数を示す記号である。また、本説明において、クライアント名(クライアントNo)が指定されているものとする。   Here, in this description, a CSV record of check OK (“the number of next month's stock plan”, “the number of next month's stock plan” and “the number of next month's stock plan”) is stored in the work table 02 (work 02). It shall be. In this description, “@” added to the data name is a symbol indicating a variable. In this description, it is assumed that a client name (client No.) is specified.

[ステップSB1:カーソルを作成]
日割り処理部102aは、ワーク02のデータを下記に示す抽出条件に従って抽出して、カーソル(以下、「カーソルA」という)を作成(データ領域特定)する。このカーソルAは、以下に示すソート順で、作成(データ領域移動)される。具体的には、ステップSB1〜SB10の処理を、ループ処理として実行する。すなわち、行NoごとにステップSB1〜SB10の処理が行われる。これにより、全ての行Noについてのカーソル作成が行われることとなる。
<抽出条件>
ワーク02.クライアントNo=クライアント名
<ソート順>
ワーク02.行No
[Step SB1: Create cursor]
The daily processing unit 102a extracts the data of the work 02 in accordance with the extraction conditions shown below, and creates a cursor (hereinafter referred to as “cursor A”) (specifies a data area). The cursor A is created (data area moved) in the following sort order. Specifically, the processes in steps SB1 to SB10 are executed as a loop process. That is, the processing of steps SB1 to SB10 is performed for each row No. As a result, cursor creation is performed for all row Nos.
<Extraction conditions>
Work 02. Client No = Client name <Sort order>
Work 02. Line No

[ステップSB2:削除処理]
日割り処理部102aは、下記に示す抽出条件に従って、「これから更新しようとするカーソルAと同一データが、ワークテーブル04(ワーク04)に既に存在するか」をチェックする。
<抽出条件>
ワーク04.クライアントNo=クライアント名
&ワーク02.クライアントNo=クライアント名
&ワーク04.品目コード=カーソルA.品目コード
[Step SB2: Deletion Process]
The daily processing unit 102a checks whether or not the same data as the cursor A to be updated already exists in the work table 04 (work 04) in accordance with the following extraction conditions.
<Extraction conditions>
Work 04. Client No. = Client name & Work 02. Client No. = Client name & Work 04. Item code = cursor A. Item code

上記チェックの結果、上記抽出条件に合致するデータが存在しなかった場合、日割り処理部102aは、後述するステップSB3の処理を実行する。上記チェックの結果、上記抽出条件に該当するデータが存在していた場合、日割り処理部102aは、以下に説明する処理を行う。なお、画面.同一コード(図11に示した月末在庫計画数データ取込画面の同一のデータ(コード)がある場合の処理を選択するための領域)の選択値によって、日割り処理部102aは、処理を分岐させる。
(画面.同一コード=上書きの場合)
日割り処理部102aは、上記抽出条件に合致したワーク04のレコードを全て削除して、そのままステップSB3の処理へ進む。
(画面.同一コード=読み飛ばしの場合)
日割り処理部102aは、ステップSB1で作成したカーソルAについての以降の処理をスキップし、ステップSB1の処理に戻る。すなわち、カーソルAの次行へ進む。
As a result of the check, if there is no data that matches the extraction condition, the daily processing unit 102a executes a process of step SB3 described later. If there is data corresponding to the extraction condition as a result of the check, the daily processing unit 102a performs the processing described below. In addition, screen. Depending on the selected value of the same code (area for selecting the process when there is the same data (code) on the end-of-month inventory plan data import screen shown in FIG. 11), the daily processing unit 102a branches the process. .
(Screen: Same code = Overwrite)
The daily processing unit 102a deletes all the records of the workpiece 04 that match the extraction condition, and proceeds to the process of step SB3 as it is.
(Screen: Same code = skipping)
The daily processing unit 102a skips the subsequent processing for the cursor A created in step SB1, and returns to the processing in step SB1. That is, the process proceeds to the next line of the cursor A.

[ステップSB3:安全在庫数下限値取得]
日割り処理部102aは、手配条件マスタ106bを下記に示す抽出条件でリード(参照)して、安全在庫数の下限値(@安全在庫数下限)を取得する。ここで、安全在庫数の下限値は、標準手配パターンMにおいて標準パターンCDごとに設定されているか、又は基本情報MのパターンCDに応じて設定されている。そこで、日割り処理部102aは、品目M「製造拠点コード」及びカーソルA「品目コード」をKEYとして、標準手配パターンMを検索して、標準パターンCDを特定する。
<抽出条件>
拠点コード=品目M「製造拠点コード」
品目コード=カーソルA「品目コード」
工順=999
パターンCD=標準手配パターンM.標準パターンCD(なければ基本情報M.パターンCD)
[Step SB3: Acquisition of safety stock number lower limit value]
The daily processing unit 102a reads (refers to) the arrangement condition master 106b with the following extraction conditions, and acquires the lower limit value (@safety stock number lower limit) of the safety stock number. Here, the lower limit value of the number of safety stocks is set for each standard pattern CD in the standard order pattern M, or is set according to the pattern CD of the basic information M. Therefore, the daily processing unit 102a searches the standard arrangement pattern M using the item M “production base code” and the cursor A “item code” as KEY, and specifies the standard pattern CD.
<Extraction conditions>
Base code = Item M “Manufacturing base code”
Item code = cursor A "item code"
Route = 999
Pattern CD = standard arrangement pattern Standard pattern CD (basic information M. pattern CD if not)

次に、日割り処理部102aは、ワーク02の「翌月末在庫計画数」、「翌々月末在庫計画数」及び「翌々々月末在庫計画数」の3つの項目に関連して、以下に説明するステップSB4〜SB10の処理を順番に実行する。このために、「翌月末在庫計画数」、「翌々月末在庫計画数」及び「翌々々月末在庫計画数」の各場合について、図14に示すように、項目名<基準日付>、<計算対象日付>、及び<月末在庫計画数>を読み替えながら、ループ処理が行われる。また、<月末在庫計画数>の各々の値が、安全在庫数下限の値より小さい場合は、<月末在庫計画数>を@安全在庫数下限に読み替えるものとする。   Next, the daily rate processing unit 102a performs the steps described below in relation to the three items of the “number of next month's stock plan”, “the number of next month's stock plan” and “the number of next month's last month's stock plan” of the work 02. The processes of SB4 to SB10 are executed in order. For this reason, as shown in FIG. 14, item names <reference date>, <calculation target> for each case of “number of next month inventory plan”, “number of next month end stock plan” and “number of next month end month stock plan”. Loop processing is performed while rereading “date>” and “monthly inventory plan number”. Further, if each value of <monthly stock plan number> is smaller than the lower limit of the safety stock number, <monthly stock plan number> is read as @safety stock number lower limit.

[ステップSB4:各変数の初期化]
日割り処理部102aは、下記に示すように各変数の初期化を行う。
@基準月末在庫計画数=0
@増減数=0
@翌年月=NULL
@合計稼働日数=0
@日別増減数=0
[Step SB4: Initialization of each variable]
The daily allocation processing unit 102a initializes each variable as described below.
@ Number of planned stocks at the end of the month = 0
@ Number of changes = 0
@ Next year month = NULL
@ Total working days = 0
@ Number of daily changes = 0

[ステップSB5:基準月末在庫計画数取得]
日割り処理部102aは、下記の抽出条件を用いて、「<基準日付>」の月末の日別在庫計画M.在庫計画数(@基準月末在庫計画数)を取得する(ステップSB5)。
<抽出条件>
日別在庫計画M.品目コード=カーソルA.品目コード
日別在庫計画M.日付(年月)=<基準日付>(年月)
ここで、上記抽出条件で取得可能なレコードのうち、「最大の日付」レコードの在庫計画数を、@基準月末在庫計画数として取得する。
[Step SB5: Acquisition of the number of base plan at the end of the standard]
The daily allocation processing unit 102a uses the following extraction conditions to determine the daily inventory plan M.M. The number of inventory plans (@base month-end inventory plan number) is acquired (step SB5).
<Extraction conditions>
Daily inventory plan Item code = cursor A. Item code daily inventory plan Date (year / month) = <reference date> (year / month)
Here, among the records that can be acquired under the above extraction conditions, the number of inventory plans of the “maximum date” record is acquired as the @reference month-end inventory plan number.

[ステップSB6:増減数取得]
日割り処理部102aは、「カーソルA.<月末在庫計画数>−@基準月末在庫計画数」の値(@増減数)を取得する。
[Step SB6: Acquisition of increase / decrease number]
The daily processing unit 102a acquires a value (@ increase / decrease number) of “cursor A. <number of month-end inventory plan> − @ number of standard month-end inventory plan”.

[ステップSB7:計算対象日付取得]
日割り処理部102aは、「<計算対象日付>」の値(@翌年月)を取得する。
[Step SB7: Acquisition of calculation target date]
The daily processing unit 102a acquires the value of “<calculation target date>” (@next year / month).

[ステップSB8:合計稼働日数取得]
日割り処理部102aは、@翌年月の1日〜末日までの空レコードをワーク04へセットする(図15参照)。
[Step SB8: Acquisition of total operating days]
The daily rate processing unit 102a sets empty records from the first day to the last day of @the following year in the work 04 (see FIG. 15).

なお、図15に示す稼働区分は、カレンダーMを下記の抽出条件に従って参照することにより取得される(図15に示す※1)。ここで、稼働区分を示す値は、稼働日では“1”であり、非稼働日(稼働休止日)では“0”である。
<抽出条件>
カレンダーM.拠点コード=品目M.製造拠点コード(カーソルA.品目コードで品目Mリード) →万が一インバリッドの場合、「000」でリード
&カレンダーM.年月日=@翌年月(1日〜末日)
The operation classification shown in FIG. 15 is acquired by referring to the calendar M according to the following extraction conditions (* 1 shown in FIG. 15). Here, the value indicating the operation classification is “1” on the operation day and “0” on the non-operation day (operation suspension date).
<Extraction conditions>
Calendar M. Site code = Item M. Manufacturing base code (cursor A. Item M lead with item code) → In the unlikely event of invalid, lead & calendar M. Date = @ Next year (1st-last day)

また、図15に示す稼働日順位を示す数値(図15に示す※2)については、図16に示される例のように、日付順で稼働日(稼働区分=1)が現れるたびにインクリメントを行うことで取得する。
そして、日割り処理部102aは、翌年月の合計稼働日数(@合計稼働日数)を取得する。なお、合計稼働日数の値は、稼働日順位を示す数値の最大値と同一であるので、容易に取得可能である。
In addition, the numerical value indicating the working day order shown in FIG. 15 (* 2 shown in FIG. 15) is incremented every time a working day (working division = 1) appears in order of date as in the example shown in FIG. Get by doing.
Then, the daily processing unit 102a acquires the total number of working days (@total number of working days) for the next year and month. Since the value of the total working days is the same as the maximum value of the numerical values indicating the working day rank, it can be easily obtained.

[ステップSB9:日別増減数取得]
日割り処理部102aは、「@増減数÷@合計稼働日数」の値(@日別増減数)を取得する。この値は、例えば、小数点以下4桁目を四捨五入することにより得られる小数点以下3桁の数値である。
[Step SB9: Acquisition of daily increase / decrease number]
The daily processing unit 102a acquires the value of “@ increase / decrease number ÷ @ total working days” (@ daily increase / decrease number). This value is, for example, a numerical value with three decimal places obtained by rounding off the fourth decimal place.

[ステップSB10:計画在庫数を更新]
日割り処理部102aは、翌年月の1日〜末日のレコードに対して、下記条件に合致する稼働日について図17に示すように在庫計画数を設定する。図17に示す例では、各レコードに対して、稼働日順位に応じた値を用いることによって増産分の積み増し(漸増)又は減産分の調整(漸減)が行うことが可能となっている。
<条件>
ワーク04.クライアントNo=クライアント名
ワーク04.品目コード=カーソルA.品目コード
ワーク04.日付(年月)=@翌年月
ワーク04.稼動区分=1(稼動)
[Step SB10: Update planned stock quantity]
The daily allocation processing unit 102a sets the number of inventory plans as shown in FIG. 17 for the working days that meet the following conditions for the records from the first day to the last day of the following year. In the example shown in FIG. 17, it is possible to increase the production amount (gradual increase) or adjust the reduction amount (gradual decrease) for each record by using a value corresponding to the working day rank.
<Conditions>
Work 04. Client No. = Client name work 04. Item code = cursor A. Item code work 04. Date (year / month) = @ next year / month work 04. Operation classification = 1 (operation)

さらに、日割り処理部102aは、下記の条件に合致するレコードのうち、ワーク04.日付が最大のもの(すなわち、該当月のうち稼働日の最終日に対応するレコード)の在庫計画数の値を取得して、月末日付レコードにおける在庫計画数の値として、@基準月末在庫計画数と同じ値を設定する(図18参照)。これにより、月末日付レコードに@基準月末在庫計画数が設定されることとなる。
<条件>
ワーク04.クライアントNo=クライアント名
ワーク04.品目コード=カーソルA.品目コード
ワーク04.稼動区分=1
ワーク04.日付(年月)=@翌年月
Furthermore, the daily processing unit 102a, among records that meet the following conditions, works 04. Get the value of the inventory plan number of the one with the largest date (that is, the record corresponding to the last day of the working day of the month), and use the @standard month-end inventory plan number as the value of the inventory plan number in the month end date record The same value is set (see FIG. 18). As a result, the @reference month-end inventory plan number is set in the month-end date record.
<Conditions>
Work 04. Client No. = Client name work 04. Item code = cursor A. Item code work 04. Operation classification = 1
Work 04. Date (year / month) = @ Next year / month

一方、日割り処理部102aは、下記の条件に合致する“非稼働日(稼働休止日)分の”レコードについて、図19に示すように、在庫計画数を設定する。これにより、翌年月の1日〜末日のレコードが更新される。
<条件>
ワーク04.クライアントNo=クライアント名
ワーク04.品目コード=カーソルA.品目コード
ワーク04.日付(年月)=@翌年月
ワーク04.稼動区分=0(休止)
なお、図19に示す非稼働日に設定される在庫計画数(図19に示す※1)に関し、「ワーク04.日付−1日」が前月日付(すなわち前月の末日)に該当する場合は、@基準月末在庫計画数の値を在庫計画数の値として設定する。
On the other hand, as shown in FIG. 19, the daily rate processing unit 102a sets the number of inventory plans for the “non-working day (working stop date)” record that meets the following conditions. As a result, the record from the first day to the last day of the following year is updated.
<Conditions>
Work 04. Client No. = Client name work 04. Item code = cursor A. Item code work 04. Date (year / month) = @ next year / month work 04. Operation classification = 0 (pause)
In addition, regarding the inventory plan number set in the non-working days shown in FIG. 19 (* 1 shown in FIG. 19), when “work 04. date-1 day” corresponds to the previous month date (that is, the last day of the previous month) @Set the value of the number of planned stocks at the end of the month as the number of planned stocks.

そして、引き続いてさらに翌月分等についての処理を行う場合には、ステップSB4の処理に戻り、次の行Noについての処理を行う場合には、ステップSB1の処理に戻り、全ての行Noについての処理が終わったら、本処理を完了する。   Then, when further processing is performed for the next month, etc., the processing returns to step SB4. When processing for the next row No is performed, the processing returns to step SB1, and all row Nos are processed. When the process is finished, the process is completed.

ところで、日割り処理部102aは、所定のタイミング又は任意のタイミングにおいて日別在庫計画マスタの更新処理を行う場合、下記に示す条件に合致する日別在庫計画Mのレコードを削除して、ワークテーブル04の「クライアントNo」が一致するレコードの安全在庫数を、日別在庫計画Mへ追加(登録)する(図20参照)。これにより、日別在庫計画マスタにおけるレコードが更新されることとなる。なお、該当マスタにおいて、レコードがインバリッド時は、安全在庫数として、NULLをセットする。
<条件>
日別在庫計画M.品目コード=ワーク04.品目コード
日別在庫計画M.日付(年月)=ワーク04.日付(年月)
ワーク04.クライアントNo=クライアント名
By the way, when performing the daily inventory plan master update process at a predetermined timing or at an arbitrary timing, the daily processing unit 102a deletes the record of the daily inventory plan M that meets the following conditions, and the work table 04 Is added (registered) to the daily inventory plan M (see FIG. 20). Thereby, the record in the daily inventory plan master is updated. When the record is invalid in the corresponding master, NULL is set as the safety stock quantity.
<Conditions>
Daily inventory plan Item code = work 04. Item code daily inventory plan Date (year / month) = work 04. Date (year and month)
Work 04. Client No = client name

以上で、[4−2.月末在庫計画数データ取込処理及び日割り処理の詳細]の説明を終了する。   With the above, [4-2. [Details of Monthly Stock Plan Number Data Capture Processing and Daily Processing] is finished.

[4−3.生産計画自動立案処理の詳細]
本具体例で実行される、生産計画自動立案処理について、図21から図41までを参照して詳細に説明する。図21は、図5のステップSA2において実行される生産計画自動立案処理の処理手順を示すフローチャートである。
[4-3. Details of automatic production planning process]
The production plan automatic planning process executed in this specific example will be described in detail with reference to FIGS. FIG. 21 is a flowchart showing a processing procedure of the production plan automatic planning process executed in step SA2 of FIG.

図21に示す処理を実行するに先立って、得意先CD(得意先コード)、品目CD(品目コード)、品目諸口区分、製造拠点コード、受注納期、製造納期及び計画日等の必要な情報については、所定のデータ入力画面を介して予め入力がなされているものとする。なお、以下の説明においては、「受注データマスタ106e」を「受注F」と、「品目マスタ106c」を「品目M」と、「内示データマスタ106f」を「内示F」と、「手配条件マスタ106b」を「手配条件M」とも表記する場合がある。   Prior to executing the processing shown in FIG. 21, necessary information such as customer CD (customer code), item CD (item code), item classification, manufacturing base code, order delivery date, production delivery date, and planned date Is preliminarily input via a predetermined data input screen. In the following description, “order data master 106e” is “order F”, “item master 106c” is “item M”, “inside data master 106f” is “inside F”, and “arrangement condition master” 106b "may also be referred to as" arrangement condition M ".

[ステップSC1:受注ファイル、内示ファイル抽出]
立案部102bは、以下に示す(10)〜(11)の処理を行う。
[Step SC1: Order file and unlisted file extraction]
The planning unit 102b performs the following processes (10) to (11).

(10)立案部102bは、以下に示す(10a)〜(10c)の処理を行うことにより、計画立案対象のレコードを受注Fから抽出して、ワークテーブルA(ワークA)に出力する。 (10) The planning unit 102b performs the following processes (10a) to (10c) to extract the planning target record from the order F and outputs it to the work table A (work A).

(10a)立案部102bは、受注Fから、下記の条件に合致するレコードとして、最終確注日が定まっている品目についてのレコード(すなわち出荷予定日を示す数値の最大値のレコード)を抽出して、それらの品目コード及び出荷予定日に関する情報をワークテーブルD(ワークD)に出力する(図22参照)。
<条件>
受注F.得意先コード=画面.得意先コード(画面.得意先CD=NULLの時は条件に含めない)
受注F.品目コード=画面.品目コードの範囲内(画面.品目CDMin,Max=NULLの時は条件に含めない)
画面.品目CDMin=NULLの時、受注F.品目コード≦画面.品目コードMax
画面.品目CDMax=NULLの時、受注F.品目コード≧画面.品目コードMin
(10a) The planning unit 102b extracts, from the order F, a record for the item for which the final order date is fixed (ie, a record with the maximum value indicating the planned shipment date) as a record that meets the following conditions. Then, the information regarding the item code and the shipping date is output to the work table D (work D) (see FIG. 22).
<Conditions>
Order F. Customer code = screen. Customer code (screen. When customer CD = NULL, it is not included in the condition)
Order F. Item code = screen. Within the range of the item code (screen. Item CDMin, when Max = NULL is not included in the condition)
screen. When the item CDMin = NULL, the order F. Item code ≤ screen. Item code Max
screen. When item CDMax = NULL, order F. Item code ≧ screen. Item code Min

(10b)立案部102bは、受注Fから、下記の条件に合致する計画立案対象のレコードを抽出する。
<条件>
受注F「品目諸口区分」=0(一般)
&品目M「製造拠点コード」=画面「製造拠点CD」
&受注F「生産計画必要区分」≠0
&品目M「品目区分」≠99
&受注F「完納区分」≠1 or {受注F「完納区分」=1&同「在庫管理出荷数」>同「在庫引当数」+同「製造完成数」}
&受注F「納期」≦画面「受注納期」(画面「受注納期」=NULLの時は条件に含めない)
&受注F「製造出荷日」≦画面「製造納期」(画面「製造納期」=NULLの時は条件に含めない)
&受注区分≠2(内示受注) or {受注区分=2(内示受注)&品目M「内示受注計画区分」≠0(計画立案しない)}
&受注F.得意先コード=画面.得意先コード(画面.得意先CD=NULLの時は条件に含めない)
&受注F.品目コード=画面.品目コードの範囲内(画面.品目CDMin,Max=NULLの時は条件に含めない)
画面.品目CDMin=NULLの時、受注F.品目コード≦画面.品目コードMax
画面.品目CDMax=NULLの時、受注F.品目コード≧画面.品目コードMin
(10b) The planning unit 102b extracts, from the order F, a record for planning that meets the following conditions.
<Conditions>
Order F "Item category" = 0 (general)
& Item M “Manufacturing site code” = Screen “Manufacturing site CD”
& Order F "Production plan required category" ≠ 0
& Item M “Item classification” ≠ 99
& Order F “Complete delivery category” ≠ 1 or {Order F “Complete delivery category” = 1 & “Inventory management shipment number”> “Inventory allocation number” + “Production completion number”}
& Order F "Delivery date" ≤ Screen "Order delivery date" (When screen "Order delivery date" = NULL, it is not included in the condition)
& Order F "Manufacturing Ship Date" ≤ Screen "Manufacturing Delivery Date"
& Order category ≠ 2 (Unlisted order) or {Order category = 2 (Unlisted order) & Item M “Unlisted order plan category” ≠ 0 (No planning)}
& Order F. Customer code = screen. Customer code (screen. When customer CD = NULL, it is not included in the condition)
& Order F. Item code = screen. Within the range of the item code (screen. Item CDMin, when Max = NULL is not included in the condition)
screen. When the item CDMin = NULL, the order F. Item code ≤ screen. Item code Max
screen. When item CDMax = NULL, order F. Item code ≧ screen. Item code Min

(10c)立案部102bは、(10b)で抽出した計画立案対象のレコードを、ワークAに出力する(図23参照)。なお、図23に示す安全在庫数、発注点、及び発注検討期間の値(図23における注1)については、以下に示すi)〜iii)の処理をこの順で行うことによって、求められる。
i)初期値として0を設定する。
ii)手配条件Mを、製造拠点コード+品目コード+工順[999]+パターン[1]にてリードする。ただし、各項目がNULLの場合及び手配条件Mインバリット時は0とする。一方、バリット時には、リードの結果として取得した値を用いて、以下のように各項目を設定(セット)する。
ワークA.安全在庫数(上限)←手配条件M.安全在庫数(上限)
ワークA.安全在庫数(下限)←手配条件M.安全在庫数(下限)
ワークA.発注点 ←手配条件M.発注点
ワークA.発注検討期間 ←手配条件M.発注検討期間
iii)日別在庫計画Mを、品目コード+出荷予定日にてリードし、バリット時には、安全在庫数の上限及び発注点について、リードの結果として取得した値を用いて、以下のように上書きを行う。
ワークA.安全在庫数(上限)←日別在庫計画M.在庫計画数
ワークA.発注点 ←日別在庫計画M.在庫計画数
なお、安全在庫数の下限については手配条件Mからのセットのみである。
(10c) The planning unit 102b outputs the planning target record extracted in (10b) to the work A (see FIG. 23). Note that the values of the safety stock quantity, the order point, and the order review period (note 1 in FIG. 23) shown in FIG. 23 are obtained by performing the following processes i) to iii) in this order.
i) Set 0 as the initial value.
ii) Lead the arrangement condition M by manufacturing base code + item code + work order [999] + pattern [1]. However, if each item is NULL and the arrangement condition M invalid is 0. On the other hand, at the time of validating, each item is set (set) as follows using the value acquired as a result of the lead.
Work A. Number of safety stock (upper limit) ← Arrangement conditions Number of safety stock (upper limit)
Work A. Number of safety stock (lower limit) ← Arrangement conditions Number of safety stocks (lower limit)
Work A. Order point ← Arrangement conditions Reorder point work A. Order review period ← Arrangement conditions Order review period iii) Lead daily inventory plan M by item code + planned delivery date, and at the time of valid, use the values obtained as a result of the lead for the upper limit of the safety stock number and the order point as follows Overwrite to.
Work A. Number of safety stock (upper limit) ← Daily inventory plan Stock Plan Number Work A. Reorder point ← Daily inventory plan Number of planned stocks Note that the lower limit of the number of safety stocks is only a set from the arrangement condition M.

(11)立案部102bは、以下に示す(11a)〜(11c)の処理を行うことにより、計画立案対象の内示Fからレコードを抽出して、ワークAに追加出力する。 (11) The planning unit 102b extracts the records from the planning target indication F by performing the following processes (11a) to (11c), and additionally outputs them to the work A.

(11a)立案部102bは、受注Fから、下記の条件に合致する計画立案対象のレコードを抽出する。これにより、内示受注に関するレコードが抽出される。
<条件>
品目M.製造拠点コード=画面.製造拠点コード
&内示F.得意先コード=画面.得意先コード(画面.得意先CD=NULLの時は条件に含めない)
&内示F.品目コード=画面.品目コードの範囲内(画面.品目CDMin,Max=NULLの時は条件に含めない)
画面.品目CDMin=NULLの時、内示F.品目コード≦画面.品目コードMax
画面.品目CDMax=NULLの時、内示F.品目コード≧画面.品目コードMin
&内示F.内示日≦画面.受注納期(画面.受注納期=NULLの時は条件に含めない)
&内示F.内示日≦画面.製造納期(画面.製造納期=NULLの時は条件に含めない)
&内示F.内示日≧画面.計画日
ただし、下記条件にマッチしたレコードについては、この(11a)で抽出されたとしても、以下の(11b)では出力されないか、又は、出力されたとしても、既にデータがあれば上書きしないように設定されている。
<条件>
内示F.品目コード=ワークA.品目コード
&内示F.出荷予定日=ワークA.出荷予定日
&ワークA.完納区分≠11
(11a) The planning unit 102b extracts, from the order F, a record for planning that meets the following conditions. Thereby, the record regarding the unordered order is extracted.
<Conditions>
Item M. Manufacturing base code = screen. Manufacturing base code & announcement F. Customer code = screen. Customer code (screen. When customer CD = NULL, it is not included in the condition)
& Indication F. Item code = screen. Within the range of the item code (screen. Item CDMin, when Max = NULL is not included in the condition)
screen. When the item CDMin = NULL, the indication F. Item code ≤ screen. Item code Max
screen. When the item CDMax = NULL, the indication F. Item code ≧ screen. Item code Min
& Indication F. Indication date ≤ screen. Order delivery date (screen. When order delivery date = NULL, it is not included in the condition)
& Indication F. Indication date ≤ screen. Production delivery date (screen. When production delivery date = NULL, it is not included in the conditions)
& Indication F. Indication date ≥ screen. Planned date However, records that match the following conditions will not be output in the following (11b) even if they are extracted in (11a), or they will not be overwritten if they are already output. Is set to
<Conditions>
Indication F. Item code = work A. Item code & indication F. Scheduled shipping date = Work A. Scheduled Ship Date & Work A. Complete payment category ≠ 11

(11b)立案部102bは、(11a)で抽出したレコードをワークAに出力する(図24参照)。
ここで、図24に示す製造出荷日の値(図24における注1)は、以下に示すように求めて設定される。なお、用いる用語等は、共通仕様である稼働日算出処理で用いた用語に準ずる。すなわち、製造出荷日(基準日)は、出荷予定日に倉入リードタイムを考慮して決定される。
基準日:出荷予定日−倉入LT
LT:0
拠点コード:製造拠点コード
増減区分:2(過去)
なお、上記の倉入LTの値としては、倉入LTM(マスタ)において、出荷場所コード+製造拠点コードをKEYとして読み出した「倉入LT」の値を用いる。ただし、INV(引当)時には、基本情報Mにおける「倉入LT」の値を用いる。
(11b) The planning unit 102b outputs the record extracted in (11a) to the work A (see FIG. 24).
Here, the value of the manufacturing shipment date shown in FIG. 24 (note 1 in FIG. 24) is obtained and set as shown below. In addition, the term used etc. is based on the term used by the working day calculation process which is a common specification. That is, the production shipment date (reference date) is determined in consideration of the warehouse entry lead time on the scheduled shipment date.
Reference date: Estimated shipping date-Kurairi LT
LT: 0
Base code: Manufacturing base code increase / decrease classification: 2 (past)
As the value of the above-mentioned Kurairi LT, the value of “Kurairi LT” which is read as KEY in the shipping location code + the manufacturing base code in the Kurairi LTM (master) is used. However, at the time of INV (allocation), the value of “Kurairi LT” in the basic information M is used.

また、図24に示す安全在庫数、発注点、及び発注検討期間の値(図24における注2)については、以下に示すi)〜iii)の処理をこの順で行うことによって、求められる。
i)初期値として0を設定する。
ii)手配条件Mを、製造拠点コード+品目コード+工順[999]+パターン[1]にてリードする。ただし、各項目がNULLの場合及び手配条件Mインバリット時は0とする。一方、バリット時には、リードの結果として取得した値を用いて、以下のように各項目を設定(セット)する。
ワークA.安全在庫数(上限)←手配条件M.安全在庫数(上限)
ワークA.安全在庫数(下限)←手配条件M.安全在庫数(下限)
ワークA.発注点 ←手配条件M.発注点
ワークA.発注検討期間 ←手配条件M.発注検討期間
iii)日別在庫計画Mを、品目コード+出荷予定日にてリードし、バリット時には、安全在庫数の上限及び発注点について、リードの結果として取得した値を用いて、以下のように上書きを行う。
ワークA.安全在庫数(上限)←日別在庫計画M.在庫計画数
ワークA.発注点 ←日別在庫計画M.在庫計画数
なお、安全在庫数の下限については手配条件Mからのセットのみである。
Further, the values of the safety stock number, the order point, and the order review period (note 2 in FIG. 24) shown in FIG. 24 are obtained by performing the following processes i) to iii) in this order.
i) Set 0 as the initial value.
ii) Lead the arrangement condition M by manufacturing base code + item code + work order [999] + pattern [1]. However, if each item is NULL and the arrangement condition M invalid is 0. On the other hand, at the time of validating, each item is set (set) as follows using the value acquired as a result of the lead.
Work A. Number of safety stock (upper limit) ← Arrangement conditions Number of safety stock (upper limit)
Work A. Number of safety stock (lower limit) ← Arrangement conditions Number of safety stocks (lower limit)
Work A. Order point ← Arrangement conditions Reorder point work A. Order review period ← Arrangement conditions Order review period iii) Lead daily inventory plan M by item code + planned delivery date, and at the time of valid, use the values obtained as a result of the lead for the upper limit of the safety stock number and the order point as follows Overwrite to.
Work A. Number of safety stock (upper limit) ← Daily inventory plan Stock Plan Number Work A. Reorder point ← Daily inventory plan Number of planned stocks Note that the lower limit of the number of safety stocks is only a set from the arrangement condition M.

(11c)立案部102bは、(11b)でワークAに出力したレコードを対象として、受注引当ファイル(以下、「受注引当F」,「受注引当在庫F」ともいう)の再生成を行う。この受注引当F再生成処理においては、現在の在庫数に対する受注残分の在庫引当が行われ、これにより、受注の対象となっていない在庫数がより明らかとなる。なお、受注引当ファイルは、在庫引当数について新規設定及び変動の旨の入力があった場合に更新される。 (11c) The planning unit 102b regenerates an order allocation file (hereinafter also referred to as “order allocation inventory F” or “order allocation inventory F”) for the record output to the work A in (11b). In this order allocation F regeneration process, inventory allocation for the remaining order is made for the current inventory quantity, and thereby the inventory quantity that is not the target of the order becomes more apparent. The order allocation file is updated when there is a new setting or a change to the inventory allocation number.

ここで、図25等を参照して、受注引当F再生成処理について説明する。立案部102bは、受注引当F再生成処理を、以下の手順(1)〜(5)で行う。   Here, with reference to FIG. 25 and the like, the order reservation F regeneration process will be described. The planning unit 102b performs the order reservation F regeneration process according to the following procedures (1) to (5).

(1)立案部102bは、ワークAにおける複数のレコードについて、「品目コード」>「出荷拠点コード」>「出荷場所コード」>「出荷予定日」>「受注番号」の順でソートする。これにより、以下に示す(2)〜(4)の処理が完了するたびにソート順で次のレコードがリードされる。ただし、完納区分=11(キャンセル)の条件に合致するレコードは読み飛ばされる。 (1) The planning unit 102b sorts the plurality of records in the work A in the order of “item code”> “shipment base code”> “shipment location code”> “scheduled shipping date”> “order number”. Thus, the next record is read in the sort order every time the processes (2) to (4) shown below are completed. However, records that meet the condition of complete payment category = 11 (cancel) are skipped.

(2)品目コード+“999”+出荷拠点コード+出荷場所コードで現在在庫Fをリードして、現在庫数を「ワーク現在庫数」として取得する。ただし、資産区分=1(自社資産)、状態区分=0(通常) or 1(未検査)のレコードのみについて、現在庫数の取得が行われる。 (2) The current stock F is read by item code + “999” + shipping base code + shipping location code, and the current number of warehouses is acquired as “current number of warehouses”. However, the current number of warehouses is acquired only for the records of asset category = 1 (own asset), status category = 0 (normal) or 1 (unchecked).

(3)品目コード+“999”+出荷拠点コード+出荷場所コードで受注引当在庫Fをリードし、図25に示されるような更新(INV時には追加)を行う。 (3) Lead order reserve inventory F is read with item code + “999” + shipping base code + shipping place code, and updating (added at INV) as shown in FIG. 25 is performed.

(4)ワークA.受注番号にて受注Fをリードして、ワーク現在庫数に応じて、以下に示す(4−1)又は(4−2)の更新を行う。
(4−1)「ワーク現在庫数」≧(ワークA.在庫管理受注数−ワークA.在庫管理出荷数)の場合
・内示データ区分=0(受注)のときのみ
受注F.在庫引当数←受注F.在庫管理受注数
受注F.製造指示数←0
・受注引当在庫F.受注引当数←受注F.在庫管理受注数を加算
・ワークA.計画立案必要数←0
・「ワーク現在庫数」←(ワークA.在庫管理受注数−ワークA.在庫管理出荷数)を減算
(4−2)「ワーク現在庫数」<(ワークA.在庫管理受注数−ワークA.在庫管理出荷数)の場合
・内示データ区分=0(受注)のときのみ
受注F.在庫引当数←受注F.在庫管理出荷数+「ワーク現在庫数」
受注F.製造指示数←(ワークA.在庫管理受注数−ワークA.在庫管理出荷数)−「ワーク現在庫数」
・受注引当在庫F.受注引当数←「ワーク現在庫数」を加算
・ワークA.計画立案必要数←上記計算後.製造指示数
・「ワーク現在庫数」←0
(4) Work A. The order F is read by the order number, and (4-1) or (4-2) shown below is updated according to the current number of workpieces.
(4-1) In the case of “current number of workpieces” ≧ (work A. inventory management order quantity−work A. inventory management shipment quantity). Number of inventory reservations ← Order received Inventory management orders received. Number of manufacturing instructions ← 0
・ Order reserve inventory Orders reserved ← Orders received F. Add inventory management orders / work A. Number of plans required ← 0
Subtract “Work A. Inventory Management Order Number-Work A. Inventory Management Shipment Number” (4-2) “Work Current Stock Number” <(Work A. Inventory Management Order Number-Work A) .Inventory management shipment number) ・ Orders received only when the indicated data category = 0 (order received). Number of inventory reservations ← Order received Inventory management shipment number + "Current number of workpieces"
Order F. Number of production instructions ← (Work A. Inventory management orders-Work A. Inventory management shipments)-"Current number of workpieces"
・ Order reserve inventory Number of orders reserved ← Add “Number of current workpieces” ・ Work A. Necessary number of plans ← After the above calculation. Number of manufacturing instructions / “Current number of workpieces” ← 0

(5)上記(4)の更新処理は、ワークA.品目コード+出荷拠点コード+出荷場所コードがブレークするまで繰り返し行われる。ブレークした場合、上記(1)に戻って、他のレコードについても上述した処理を行う。 (5) The update process of (4) above is performed by the work A. This process is repeated until the item code + shipping base code + shipping location code breaks. If a break occurs, the process returns to the above (1) and the above-described processing is performed for other records.

[ステップSC2:初期化、削除処理]
立案部102bは、以下に示す(20)〜(24)の処理を行う。
[Step SC2: Initialization and deletion processing]
The planning unit 102b performs the following processes (20) to (24).

(20)立案部102bは、ワークAに出力したレコードを対象として、受注Fの初期化処理を行う。この処理の詳細は、図26に示されている。これにより、受注ファイルが更新される。 (20) The planning unit 102b initializes the order F for the record output to the work A. Details of this processing are shown in FIG. As a result, the order file is updated.

(21)立案部102bは、下記の条件に合致するレコードを対象として、生産計画Fの初期化処理を行う。この処理の詳細は、図27に示されている。これにより、生産計画ファイルが更新される。
<条件>
生産計画F「製造拠点コード」=画面「製造拠点CD」
&品目M.メーカーコード=画面.得意先コード(画面.得意先CD=NULLの時は条件に含めない)
&計画引当F.品目コード=画面.品目コードの範囲内(画面.品目CDMin,Max=NULLの時は条件に含めない)
画面.品目CDMin=NULLの時、計画引当F.品目コード≦画面.品目コードMax
画面.品目CDMax=NULLの時、計画引当F.品目コード≧画面.品目コードMin
(21) The planning unit 102b performs an initialization process for the production plan F for records that meet the following conditions. Details of this processing are shown in FIG. Thereby, the production plan file is updated.
<Conditions>
Production plan F “Manufacturing site code” = Screen “Manufacturing site CD”
& Item M. Manufacturer code = screen. Customer code (screen. When customer CD = NULL, it is not included in the condition)
& Plan allocation Item code = screen. Within the range of the item code (screen. Item CDMin, when Max = NULL is not included in the condition)
screen. When the item CDMin = NULL, the planned allocation F. Item code ≤ screen. Item code Max
screen. When the item CDMax = NULL, the planned allocation F. Item code ≧ screen. Item code Min

(22)立案部102bは、下記の条件に合致するレコードを不要データとして、計画引当Fから削除する。さらに、計画引当ファイルから削除対象としたレコードに紐づいている生産計画ファイルであって、生産計画F「所要量計算日」=NULLの条件に合致する生産計画ファイルも削除される。
<条件>
生産計画F「製造拠点コード」=画面「製造拠点CD」
&品目M.メーカーコード=画面.得意先コード(画面.得意先CD=NULLの時は条件に含めない)
&計画引当F.品目コード=画面.品目コードの範囲内(画面.品目CDMin,Max=NULLの時は条件に含めない)
画面.品目CDMin=NULLの時、計画引当F.品目コード≦画面.品目コードMax
画面.品目CDMax=NULLの時、計画引当F.品目コード≧画面.品目コードMin
&計画引当F「受入番号」=0
&計画引当F「振替計画番号」=0
&計画引当F「生産計画区分」≠11(自動立案計画)
or計画引当F「生産計画区分」=11(自動立案計画)&計画引当F「計画引当区分」=1(分割引当する)
or計画引当F「生産計画区分」=11(自動立案計画)&計画引当F「計画まとめ区分」=1(まとめる)
or計画引当F「生産計画区分」=11(自動立案計画)&品目M「計画引当区分」=1(分割引当する)
or計画引当F「生産計画区分」=11(自動立案計画)&品目M「計画まとめ区分」=1(まとめる)
ただし、受注番号、生産計画番号、及び受入番号がいずれも“0”でないレコードについては、受注F、生産計画F、及び受入実績Fにおいて該当するレコードが存在するかどうかのチェックを行い、すべてがバリッドでないレコードも削除対象とする。
(22) The planning unit 102b deletes a record that meets the following conditions from the plan allocation F as unnecessary data. Further, the production plan file associated with the record to be deleted from the plan allocation file, which matches the condition of production plan F “required amount calculation date” = NULL, is also deleted.
<Conditions>
Production plan F “Manufacturing site code” = Screen “Manufacturing site CD”
& Item M. Manufacturer code = screen. Customer code (screen. When customer CD = NULL, it is not included in the condition)
& Plan allocation Item code = screen. Within the range of the item code (screen. Item CDMin, when Max = NULL is not included in the condition)
screen. When the item CDMin = NULL, the planned allocation F. Item code ≤ screen. Item code Max
screen. When the item CDMax = NULL, the planned allocation F. Item code ≧ screen. Item code Min
& Plan Reserve F “Acceptance Number” = 0
& Plan Reserve F “Transfer Plan Number” = 0
& Plan Allocation F “Production Plan Category” ≠ 11 (Automatic Planning Plan)
or plan allocation F “production plan category” = 11 (automatic planning) & plan allocation F “plan allocation category” = 1 (split allocation)
or plan allocation F “production plan category” = 11 (automatic planning) & plan allocation F “plan summary category” = 1 (summarize)
or plan allocation F “production plan category” = 11 (automatic planning) & item M “plan allocation category” = 1 (partition allocation)
or plan allocation F “production plan category” = 11 (automatic planning) & item M “plan summary category” = 1 (summarize)
However, for records where the order number, the production plan number, and the receipt number are not “0”, it is checked whether or not the corresponding record exists in the order F, the production plan F, and the receipt result F. Records that are not valid are also deleted.

(23)立案部102bは、下記の条件に合致するレコードを不要データとして、生産計画Fから削除する。
<条件>
生産計画F「製造拠点コード」=画面「製造拠点CD」&生産計画F「生産計画区分」=12(内示自動立案計画)
&品目M.メーカーコード=画面.得意先コード(画面.得意先CD=NULLの時は条件に含めない)
&生産計画F.品目コード=画面.品目コードの範囲内(画面.品目CDMin,Max=NULLの時は条件に含めない)
画面.品目CDMin=NULLの時、生産計画F.品目コード≦画面.品目コードMax
画面.品目CDMax=NULLの時、生産計画F.品目コード≧画面.品目コードMin
(23) The planning unit 102b deletes a record that meets the following conditions from the production plan F as unnecessary data.
<Conditions>
Production plan F “Manufacturing site code” = Screen “Manufacturing site CD” & Production plan F “Production plan category” = 12 (Indicated automatic planning plan)
& Item M. Manufacturer code = screen. Customer code (screen. When customer CD = NULL, it is not included in the condition)
& Production Plan F. Item code = screen. Within the range of the item code (screen. Item CDMin, when Max = NULL is not included in the condition)
screen. When the item CDMin = NULL, the production plan F. Item code ≤ screen. Item code Max
screen. When the item CDMax = NULL, the production plan F. Item code ≧ screen. Item code Min

(24)立案部102bは、下記の条件に合致するレコードを対象として、計画引当Fの初期化処理を行う。この処理の詳細は、図28に示されている。これにより、計画引当ファイルが更新される。
<条件>
生産計画F「製造拠点コード」=画面「製造拠点CD」
&計画引当F「受入番号」=0
&品目M.メーカーコード=画面.得意先コード(画面.得意先CD=NULLの時は条件に含めない)
&生産計画F.品目コード=画面.品目コードの範囲内(画面.品目CDMin,Max=NULLの時は条件に含めない)
画面.品目CDMin=NULLの時、生産計画F.品目コード≦画面.品目コードMax
画面.品目CDMax=NULLの時、生産計画F.品目コード≧画面.品目コードMin
(24) The planning unit 102b performs an initialization process for the plan allocation F for records that meet the following conditions. Details of this processing are shown in FIG. Thereby, the plan allocation file is updated.
<Conditions>
Production plan F “Manufacturing site code” = Screen “Manufacturing site CD”
& Plan Reserve F “Acceptance Number” = 0
& Item M. Manufacturer code = screen. Customer code (screen. When customer CD = NULL, it is not included in the condition)
& Production Plan F. Item code = screen. Within the range of the item code (screen. Item CDMin, when Max = NULL is not included in the condition)
screen. When the item CDMin = NULL, the production plan F. Item code ≤ screen. Item code Max
screen. When the item CDMax = NULL, the production plan F. Item code ≧ screen. Item code Min

[ステップSC3:新規計画作成準備]
立案部102bは、ワークAの全てのレコードを対象として、生産計画Fに、新規の生産計画レコード(以下、単に「新規計画」ともいう)を作成するための準備として、ワークAにあるレコードの各々を、計画まとめ区分の値に応じて、所定の出力先(ワーク)へ出力する。具体的には、ワークA.計画まとめ区分=0(しない)の場合には、該当レコードを、後述する製番的計画F作成処理を行うための作業領域であるワークCへ出力する。また、ワークA.計画まとめ区分=1(する)の場合、該当レコードを、後述するMRP的計画F作成処理を行うための作業領域であるワークDへ出力する。なお、計画まとめ区分とは、資材所要量計画(MRP)等を目的として、複数の生産計画レコードのとりまとめ(集計)を行う予定があるかどうかを示す識別フラグであり、各レコードに設定されている。
[Step SC3: Preparation for creating a new plan]
The planning unit 102b targets all records of the work A as a preparation for creating a new production plan record (hereinafter also simply referred to as “new plan”) in the production plan F. Each is output to a predetermined output destination (work) according to the value of the plan summary section. Specifically, work A.1. When the plan summary category = 0 (not), the corresponding record is output to the work C which is a work area for performing a production number plan F creation process described later. In addition, Work A. When the plan summary category = 1 (Yes), the corresponding record is output to the work D, which is a work area for performing the MRP-like plan F creation process described later. The plan summary classification is an identification flag indicating whether or not there is a plan to collect (aggregate) a plurality of production plan records for the purpose of material requirements planning (MRP) and the like, and is set in each record. Yes.

[ステップSC4:計画ファイル作成処理]
立案部102bは、ワークCにレコードがあるかワークDにレコードがあるかを判別し、判別結果に応じて、計画ファイル作成処理を変更する。具体的には、ワークCにレコードがある場合には、計画ファイル作成処理として、製番的計画F作成処理を行い(ステップSC4a)、一方、ワークDにレコードがある場合には、計画ファイル作成処理として、MRP的計画F作成処理を行う(ステップSC4b)。
[Step SC4: Plan file creation process]
The planning unit 102b determines whether the work C has a record or the work D has a record, and changes the plan file creation process according to the determination result. Specifically, if there is a record in work C, the production plan F creation process is performed as the plan file creation process (step SC4a). On the other hand, if there is a record in work D, the plan file creation is performed. As processing, MRP-like plan F creation processing is performed (step SC4b).

[ステップSC4a:製番的計画F作成処理]
まず、製番的計画F作成処理について説明する。
[Step SC4a: Production plan F creation process]
First, the production plan F creation process will be described.

立案部102bは、ワークCにレコードがある場合、以下に示す手順(1)〜(4)で、製番的計画F作成処理を行う。   When there is a record in the work C, the planning unit 102b performs a production number plan F creation process in the following procedures (1) to (4).

(1)ワークCにおける複数のレコードについて下記ソートキーによりソート処理を行う。
ソートキー:品目コード>出荷予定日>内示データ区分>受注番号
(1) A plurality of records in the work C are subjected to sort processing using the following sort key.
Sort key: Item code> Scheduled shipment date> Internal data classification> Order number

(2)ワークCの複数のレコードのうち、未処理のレコードであって上記(1)のソート順の最上位のレコードをリードして、以下のように、プログラム内「計画立案必要数」を設定する。
プログラム内「計画立案必要数」←ワークC.計画立案必要数
(2) Among the plurality of records of work C, the unrecorded record and the top record in the sort order of (1) above are read, and the “planning required number” in the program is set as follows: Set.
“Required number of plans” ← Work C. Number required for planning

(3)計画引当ファイルをリードし、以下の条件に合致するレコードを抽出する。
<条件>
計画引当F「受注番号」=ワークC「受注番号」
&計画引当F「受入番号」=0
&計画引当F「振替計画番号」=0
ここで、バリット時には、生産計画ファイルにおいて再引当処理を実行するとともに、計画引当ファイルにおいて第1の更新処理を実行し、上記(2)に戻って、ワークCにおける次のレコードに対して製番的計画F作成処理を行う。生産計画ファイルにおける再引当処理の詳細は、図29に示されており、また、計画引当ファイルにおける第1の更新処理の詳細は、図30に示されている。これらにより、生産計画ファイル及び計画引当ファイルが更新される。
(3) Read the plan allocation file and extract records that meet the following conditions.
<Conditions>
Plan allocation F "Order number" = Work C "Order number"
& Plan Reserve F “Acceptance Number” = 0
& Plan Reserve F “Transfer Plan Number” = 0
Here, at the time of valid, the re-allocation process is executed in the production plan file, the first update process is executed in the plan allocation file, and the process returns to the above (2) to make the serial number for the next record in the work C. The target plan F creation process is performed. The details of the re-allocation process in the production plan file are shown in FIG. 29, and the details of the first update process in the plan allocation file are shown in FIG. As a result, the production plan file and the plan allocation file are updated.

(4)ワークCから生産計画Fのレコードをリードして、ワークC内「計画引当区分」の値を判別し、判別結果に応じて以下の処理(4−1)又は(4−2)を行う。 (4) The record of the production plan F is read from the workpiece C, the value of the “planned allocation category” in the workpiece C is determined, and the following processing (4-1) or (4-2) is performed according to the determination result. Do.

(4−1)ワークC内「計画引当区分」=0(分割引当しない)の場合には、まず、下記の条件に合致するレコードを生産計画Fから抽出する。
<条件>
ワークC「製造出荷日」≧生産計画F「納期」
&生産計画F「製造拠点コード」=画面「製造拠点CD」
&生産計画F「品目コード」=ワークC「品目CD」
&生産計画F「計画数」−同「計画引当数」−同「完成数」≧プログラム内「計画立案必要数」
&生産計画F「生産計画区分」=1、11
&生産計画F「完納区分」=0
なお、上記の抽出の結果、複数のレコードで納期が同じ場合は、生産計画F「生産計画区分」の優先度が高い方(1→11の順に優先度が下がる)のレコードを使用する。
(4-1) When “planned allocation category” in work C = 0 (not divided allocation), firstly, a record that satisfies the following conditions is extracted from the production plan F.
<Conditions>
Work C “Manufacturing Ship Date” ≧ Production Plan F “Delivery Date”
& Production Plan F “Manufacturing Base Code” = Screen “Manufacturing Base CD”
& Production Plan F “Item Code” = Work C “Item CD”
& Production Plan F “Number of Plans”-“Number of Planned Provisions”-“Number of Completed” ≧ “Number of Necessary for Planning” in Program
& Production Plan F “Production Plan Category” = 1,11
& Production Plan F “Complete Payment” = 0
As a result of the above extraction, if a plurality of records have the same delivery date, the record with the higher priority of the production plan F “production plan category” (priority decreases in the order of 1 → 11) is used.

続いて、抽出したレコードに対して、以下の手順A)〜E)で、処理を行う。
A)プログラム内「計画立案必要数」を、プログラム内「ワーク計画立案数」、プログラム内「ワーク計画数」、プログラム内「ワーク計画引当数」とする。
B)受注ファイルにおいて再引当処理を行う。この受注ファイルにおける再引当処理の詳細は、図31に示されている。これにより、受注ファイルが更新される。
C)生産計画ファイルにおいて、図29に示した再引当処理を行う。これにより、生産計画ファイルが更新される。
D)ワークC「完納区分」≠11(キャンセル)の場合、計画引当ファイルにおいて、図30に示した第1の更新処理を行う。これにより、計画引当ファイルが更新される。
E)ワークCにおける次のレコードに対して上述した処理を行う。
Subsequently, the extracted records are processed by the following procedures A) to E).
A) The “number of necessary plans” in the program is defined as “the number of work plans” in the program, “the number of work plans” in the program, and “the number of work plans allocated” in the program.
B) Re-allocation processing is performed in the order file. Details of the re-allocation process in the order file are shown in FIG. As a result, the order file is updated.
C) The re-allocation process shown in FIG. 29 is performed in the production plan file. Thereby, the production plan file is updated.
D) When work C “complete payment category” ≠ 11 (cancel), the first update process shown in FIG. 30 is performed in the plan allocation file. Thereby, the plan allocation file is updated.
E) The above-described processing is performed on the next record in the work C.

なお、上記(4−1)の抽出処理の結果、上記条件に合致するレコードがなかった場合には、以下の手順A)〜F)で、処理を行う。
A)プログラム内「計画立案必要数」を、プログラム内「ワーク計画立案数」、プログラム内「ワーク計画数」、プログラム内「ワーク計画引当数」とする。
B)ワークC「計画立案区分」≠1(自動立案)の場合、ワークCにおける次のレコードに対して上述した処理を行う。
C)受注ファイルにおいて、図31に示した再引当処理を行う。これにより、受注ファイルが更新される。
D)生産計画ファイルにおいて第1の追加処理を行う。この際に行われる生産計画ファイルにおける第1の追加処理の詳細は、図32に示されている。これにより、生産計画ファイルが更新される。
E)計画引当ファイルにおいて第1の追加処理を行う。この際に行われる計画引当ファイルにおける第1の追加処理の詳細は、図33に示されている。これにより、計画引当ファイルが更新される。
F)ワークCにおける次のレコードに対して上述した処理を行う。
If there is no record that satisfies the above condition as a result of the extraction process (4-1), the process is performed in the following procedures A) to F).
A) The “number of necessary plans” in the program is defined as “the number of work plans” in the program, “the number of work plans” in the program, and “the number of work plans allocated” in the program.
B) When work C “planning category” ≠ 1 (automatic planning), the above-described processing is performed on the next record in work C.
C) The re-allocation process shown in FIG. 31 is performed in the order file. As a result, the order file is updated.
D) Perform the first additional processing in the production plan file. Details of the first addition process in the production plan file performed at this time are shown in FIG. Thereby, the production plan file is updated.
E) The first additional processing is performed in the plan allocation file. Details of the first addition processing in the plan allocation file performed at this time are shown in FIG. Thereby, the plan allocation file is updated.
F) The above-described processing is performed on the next record in the work C.

(4−2)ワークC内「計画引当区分」=1(分割引当する)の場合には、まず、下記の条件に合致するレコードを生産計画Fから抽出する。
<条件>
ワークC「製造出荷日」≧生産計画F「納期」
&生産計画F「製造拠点コード」=画面「製造拠点CD」
&生産計画F「品目コード」=ワークC「品目CD」
&生産計画F「計画数」−同「計画引当数」−同「完成数」>0
&生産計画F「生産計画区分」=1or11
&生産計画F「完納区分」=0
なお、上記の抽出の結果、複数のレコードで納期が同じ場合は、生産計画F「生産計画区分」の優先度が高い方(1→11の順に優先度が下がる)のレコードを使用する。
(4-2) When “planned allocation category” in work C = 1 (divided allocation), firstly, a record that satisfies the following conditions is extracted from the production plan F.
<Conditions>
Work C “Manufacturing Ship Date” ≧ Production Plan F “Delivery Date”
& Production Plan F “Manufacturing Base Code” = Screen “Manufacturing Base CD”
& Production Plan F “Item Code” = Work C “Item CD”
& Production Plan F "Number of Plans"-"Number of Planned Provisions"-"Number of Completed"> 0
& Production Plan F “Production Plan Category” = 1 or 11
& Production Plan F “Complete Payment” = 0
As a result of the above extraction, if a plurality of records have the same delivery date, the record with the higher priority of the production plan F “production plan category” (priority decreases in the order of 1 → 11) is used.

続いて、抽出したレコードにおいて、生産計画F「計画数」−同「計画引当数」−同「完成数」の演算結果を取得し、取得した演算結果に応じて、以下の処理(A)又は処理(B)を行う。
(A)生産計画F「計画数」−同「計画引当数」−同「完成数」≧プログラム内「計画立案必要数」の場合には、以下の手順a)〜e)で処理を行う。
a)プログラム内「計画立案必要数」を、プログラム内「ワーク計画立案数」、プログラム内「ワーク計画数」、プログラム内「ワーク計画引当数」とする。
b)受注ファイルにおいて、図31に示した再引当処理を行う。これにより、受注ファイルが更新される。
c)生産計画ファイルにおいて第2の再引当処理を行う。この生産計画ファイルにおける第2の再引当処理の詳細は、図34に示されている。これにより、生産計画のファイルが更新される。
d)受注F「完納区分」≠11(キャンセル)の場合、計画引当ファイルにおいて、図30に示した第1の更新処理を行う。これにより、計画引当ファイルが更新される。
e)ワークCにおける次のレコードに対して上述した処理を行う。
(B)生産計画F「計画数」−同「計画引当数」−同「完成数」<プログラム内「計画立案必要数」の場合には、以下の手順a)〜f)で処理を行う。
a)生産計画F「計画数」−同「計画引当数」−同「完成数」を、プログラム内「ワーク計画立案数」、プログラム内「ワーク計画数」、プログラム内「ワーク計画引当数」とする。
b)受注ファイルにおいて、図31に示した再引当処理を行う。これにより、受注ファイルが更新される。
c)生産計画ファイルにおいて図34に示した第2の再引当処理を行う。これにより、生産計画のファイルが更新される。
d)受注F「完納区分」≠11(キャンセル)の場合、計画引当ファイルにおいて、図30に示した第1の更新処理を行う。これにより、計画引当ファイルが更新される。
e)プログラム内「計画立案必要数」−(生産計画F「計画数」−同「計画引当数」−同「完成数」)を、プログラム内「計画立案必要数」とする。
f)次の生産計画データに対して上述した処理を行う。
Subsequently, in the extracted record, the operation result of the production plan F “plan number” − “plan allocation number” − “completed number” is acquired, and depending on the acquired operation result, the following processing (A) or Process (B) is performed.
(A) When the production plan F “number of plans” − “number of planned allocations” − “number of completed” ≧ “number of required plans” in the program, processing is performed in the following procedures a) to e).
a) The “number of necessary plans” in the program is defined as “the number of work plans” in the program, “the number of work plans” in the program, and “the number of work plans allocated” in the program.
b) In the order file, the re-allocation process shown in FIG. 31 is performed. As a result, the order file is updated.
c) A second re-allocation process is performed in the production plan file. The details of the second re-allocation process in the production plan file are shown in FIG. As a result, the production plan file is updated.
d) When the order F “complete payment category” ≠ 11 (cancel), the first update process shown in FIG. 30 is performed in the plan allocation file. Thereby, the plan allocation file is updated.
e) The above-described processing is performed on the next record in the work C.
(B) In the case of production plan F “number of plans” − “number of planned allocations” − “number of completed” <number of “planning required” in the program, processing is performed in the following procedures a) to f).
a) Production Plan F “Number of Plans” — “Number of Planned Provisions” — “Number of Completed” is defined as “Number of Work Plans” in Program, “Number of Work Plans” in Program, “Number of Work Plans Provisioned” in Program To do.
b) In the order file, the re-allocation process shown in FIG. 31 is performed. As a result, the order file is updated.
c) The second re-allocation process shown in FIG. 34 is performed in the production plan file. As a result, the production plan file is updated.
d) When the order F “complete payment category” ≠ 11 (cancel), the first update process shown in FIG. 30 is performed in the plan allocation file. Thereby, the plan allocation file is updated.
e) The “plan required number” in the program− (production plan F “number of plans” − “number of planned allocations” − “number of completed”) is set as the “number of required plans” in the program.
f) The above-described processing is performed on the next production plan data.

なお、上記(4−2)の抽出処理の結果、生産計画データを全て読み終わっても、プログラム内「計画立案必要数」>0の場合、並びに、上記(4−2)の抽出処理の結果、上記条件に合致するレコードがなかった場合には、以下の手順A)〜F)で、処理を行う。
A)プログラム内「計画立案必要数」を、プログラム内「ワーク計画立案数」、プログラム内「ワーク計画数」、プログラム内「ワーク計画引当数」とする。
B)ワークC「計画立案区分」≠1(自動立案)の場合、ワークCにおける次のレコードに対して上述した処理を行う。
C)受注ファイルにおいて、図31に示した再引当処理を行う。これにより、受注ファイルが更新される。
D)生産計画ファイルにおいて、図32に示した第1の追加処理を行う。これにより、生産計画のファイルが更新される。
E)計画引当ファイルにおいて、第2の追加処理を行う。この計画引当ファイルにおける第2の追加処理の詳細は、図35に示されている。さらに、計画引当ファイルにおいて、図30に示した第1の更新処理を行う。これらにより、計画引当ファイルが更新される。
F)ワークCにおける次のレコードに対して上述した処理を行う。
As a result of the extraction process of (4-2) above, even if all of the production plan data has been read, the case where “planning required number”> 0 in the program, and the result of the extraction process of (4-2) above If there is no record that meets the above conditions, the following procedures A) to F) are performed.
A) The “number of necessary plans” in the program is defined as “the number of work plans” in the program, “the number of work plans” in the program, and “the number of work plans allocated” in the program.
B) When work C “planning category” ≠ 1 (automatic planning), the above-described processing is performed on the next record in work C.
C) The re-allocation process shown in FIG. 31 is performed in the order file. As a result, the order file is updated.
D) In the production plan file, the first addition process shown in FIG. 32 is performed. As a result, the production plan file is updated.
E) Perform a second additional process in the plan allocation file. Details of the second addition process in the plan allocation file are shown in FIG. Further, the first update process shown in FIG. 30 is performed in the plan allocation file. As a result, the plan allocation file is updated.
F) The above-described processing is performed on the next record in the work C.

上述したようにして、ステップSC4aの製番的計画F作成処理が行われる。   As described above, the production number plan F creation processing in step SC4a is performed.

[ステップSC4b:MRP的計画F作成処理]
次に、MRP的計画F作成処理について説明する。
[Step SC4b: MRP-like plan F creation process]
Next, the MRP plan F creation process will be described.

立案部102bは、ワークDにレコードがある場合、以下に示す手順(1)〜(6)で、MRP的計画F作成処理を行う。   When there is a record in the work D, the planning unit 102b performs MRP-like plan F creation processing in the following procedures (1) to (6).

(1)ワークDにおける複数のレコードについて下記ソートキーによりソート処理を行う。
ソートキー:品目コード>出荷予定日>内示データ区分>受注番号
(1) A plurality of records in the work D are sorted by the following sort key.
Sort key: Item code> Scheduled shipment date> Internal data classification> Order number

(2)ワークFを作成し、初期化して空ファイルにする。このワークFは、MRP用予定在庫ワークとして機能することとなる。 (2) Create work F, initialize it to an empty file. This work F functions as a planned stock work for MRP.

(3)ワークDにおける複数のレコードをリードし、ワークD「製造拠点コード」・「品目コード」がブレークする毎の初回に、以下の処理(3−1)〜(3−5)を行う。 (3) The following processes (3-1) to (3-5) are performed at the first time every time a plurality of records in the work D are read and the work D “manufacturing base code” / “item code” breaks.

(3−1)ワークF(MRP用予定在庫ワークF)をクリア(初期化)して、1レコード追加する。図36には、ワークFに1レコードを追加する処理が示されている。
(3−2)プログラム内「W計画必要数」に“0”をセットする。
(3-1) The work F (MRP scheduled stock work F) is cleared (initialized), and one record is added. FIG. 36 shows a process for adding one record to the work F.
(3-2) “0” is set in “W plan required number” in the program.

(3−3)プログラム内「現在在庫数」の値を、以下の手順(A)〜(C)にしたがって算出する。
(A)現在在庫ファイルから、下記の抽出条件にマッチするレコードを抽出し、抽出したすべてのレコードから取得される「現在庫数」の値を集計して、集計結果を「ワーク現在庫数」として取得する。
<抽出条件>
現在在庫F「品目コード」=ワークD.品目コード
&現在在庫F「工順」=“999”
&現在在庫F「拠点コード」=画面.拠点コード
&現在在庫F「資産区分」=“1”(自社資産)
&現在在庫F「在庫状態区分」=“0”(通常)or“1”(未検査)
&現在在庫F「現在庫数」≠“0”
(3-3) The value of “current stock quantity” in the program is calculated according to the following procedures (A) to (C).
(A) Extracts records that match the following extraction conditions from the current inventory file, totals the values of “current number of warehouses” acquired from all the extracted records, and displays the total result as “current number of workpieces” Get as.
<Extraction conditions>
Current stock F “item code” = work D. Item Code & Current Stock F “Routing” = “999”
& Current inventory F "Location code" = screen. Base code & current inventory F "Asset classification" = "1" (own asset)
& Current Stock F “Inventory Status” = “0” (Normal) or “1” (Unchecked)
& Current Stock F “Current Number” ≠ “0”

(B)受注引当在庫ファイルから、下記の抽出条件にマッチするレコードを抽出し、抽出したすべてのレコードから取得される「受注引当数」を集計して、集計結果を「ワーク受注引当数」として取得する。
<抽出条件>
受注引当在庫F「品目コード」=ワークD.品目コード
&受注引当在庫F「工順」=“999”
&受注引当在庫F「拠点コード」=画面.拠点コード
&受注引当在庫F「受注引当数」≠“0”
(B) Records that match the following extraction conditions are extracted from the order reservation inventory file, the number of “orders reserved” obtained from all the extracted records is totaled, and the total result is “number of work order reservations” get.
<Extraction conditions>
Order reserve inventory F “item code” = work D. Item Code & Order Reserve Inventory F “Routing” = “999”
& Order reservation inventory F “Location code” = screen. Base Code & Order Reserve Inventory F “Number of Order Reserves” ≠ “0”

(C)「ワーク現在庫数」−「ワーク受注引当数」の値を、プログラム内「現在庫数」とする。
(3−4)まず、手配ファイルから、下記の抽出条件にマッチするレコードを抽出する。
<抽出条件>
手配F「手配発生区分」≠“4”(直送受注)、“12”(計画外追加)、“13”(計画外分割)
&手配F「製造拠点コード」=ワークD「製造拠点コード」
&手配F「品目コード」=ワークD「品目コード」
&手配F「工順」=“999”
&手配F「完納区分」=“0”
&手配F(「手配数」−「受入数」)>“0”
&(手配F「内示区分」≠1 or 手配F「手配方式区分」≠1)
続いて、抽出した手配Fのレコードから、「手配納期」でワークFをリードし、バリッド時には、手配F「手配数」−「受入数」の値を、「手配数」に加算して更新する。なお、インバリッド時には、図37に示すような項目をセットして、追加出力する。
(C) The value of “current number of workpieces” − “number of work order reservations” is set as “current number of warehouses” in the program.
(3-4) First, a record that matches the following extraction condition is extracted from the arrangement file.
<Extraction conditions>
Arrangement F “Arrangement occurrence category” ≠ “4” (direct delivery order), “12” (unplanned addition), “13” (unplanned division)
& Arrangement F "Manufacturing base code" = Work D "Manufacturing base code"
& Arrangement F "Item code" = Work D "Item code"
& Arrangement F “Processing Order” = “999”
& Arrangement F "Complete payment category" = "0"
& Arrangement F ("Number of arrangements-Number of receipts")>"0"
& (Arrangement F “Indication division” ≠ 1 or Arrangement F “Arrangement method division” ≠ 1)
Subsequently, the work F is led by “arrangement delivery date” from the extracted record of the arrangement F, and when valid, the value of the arrangement F “number of arrangements” − “number of receipts” is added to the “number of arrangements” and updated. . During invalidation, items as shown in FIG. 37 are set and additionally output is performed.

(3−5)まず、生産計画ファイルから、下記の抽出条件にマッチするレコードを抽出する。
<抽出条件>
計画F「生産計画区分」≠“1”(見込計画)、“11”(自動立案計画)
&計画F「製造拠点コード」=ワークD「製造拠点コード」
&計画F「品目コード」=ワークD「品目コード」
&計画F「工順」=“999”
&計画F「完納区分」=“0”
&計画F(「計画数」−「完成数」)>“0”
&計画F「所要量計算日」=NULL
続いて、抽出した生産計画Fのレコードから、「納期」でワークFをリードし、バリッド時には、計画F「計画数」−「完成数」の値を、「手配数」に加算して更新する。なお、インバリッド時には、図38に示すような項目をセットして、追加出力する。
(3-5) First, a record that matches the following extraction condition is extracted from the production plan file.
<Extraction conditions>
Plan F “Production plan category” ≠ “1” (expected plan), “11” (automatic plan)
& Plan F “Manufacturing base code” = Work D “Manufacturing base code”
& Plan F "Item code" = Work D "Item code"
& Plan F “Work order” = “999”
& Plan F "Complete payment category" = "0"
& Plan F (“Number of Plans”-“Number of Completed”)> “0”
& Plan F “Requirement Calculation Date” = NULL
Subsequently, from the extracted record of the production plan F, the work F is led by “delivery date”, and when valid, the value of the plan F “number of plans” − “number of completed” is added to the “number of orders” and updated. . Note that, at the time of invalidation, items as shown in FIG. 38 are set and output additionally.

(4)上記(3)の処理の結果、ワークD「製造拠点コード」・「品目コード」・「工順」が同一のレコードが複数存在する場合には、まず、ワークD「出荷予定日」でワークFのレコードをリードし、バリッド時には、ワークD「計画立案必要数」の値を「必要数」に加算して更新する。なお、インバリッド時には、図39に示すような項目をセットして、追加出力する。続いて、ワークDのレコード内容をプログラム内項目(以下、「退避ワークD」ともいう)に退避する。ただし、「最小計画数」が“0”の時、及び、「増分計画数」が“0”の時は、在庫単位コードの小数有効桁数で最小値を求める。これらの処理が完了したら、上記(3)の処理に戻って、ワークDにおける次のレコードに対して処理を行う。 (4) As a result of the processing in (3) above, when there are a plurality of records having the same work D “production base code”, “item code”, and “route”, first, the work D “scheduled shipping date” Then, the record of the work F is read, and when valid, the value of the work D “necessary number of planning” is added to the “necessary number” and updated. Note that at the time of invalidation, items as shown in FIG. 39 are set and additionally output. Subsequently, the record content of the work D is saved in an item in the program (hereinafter also referred to as “evacuation work D”). However, when the “minimum plan number” is “0” and the “incremental plan number” is “0”, the minimum value is obtained by the decimal significant digits of the inventory unit code. When these processes are completed, the process returns to the process (3) and the next record in the work D is processed.

(5)ワークDにおける複数のレコードをリードし、ワークD「製造拠点コード」・「品目コード」・「工順」がブレークするたびに、以下の処理(5−1)〜(5−2)を行う。 (5) Each time a plurality of records in work D are read and work D “manufacturing base code”, “item code”, “route” breaks, the following processing (5-1) to (5-2) I do.

(5−1)プログラム内「現在在庫数」の値を、プログラム内「予定在庫数」にセットする。このとき、プログラム内「現在在庫数」には、受注引当F再生成処理について説明したとおり、在庫引当後の現在庫数が記録されている。 (5-1) The value of “current stock quantity” in the program is set to “scheduled stock quantity” in the program. At this time, in the “current stock quantity” in the program, as described for the order reservation F regeneration process, the current stock quantity after the stock reservation is recorded.

(5−2)ワークFのレコードをリードして、以下の処理(A)〜(E)を行う。 (5-2) The record of the workpiece F is read and the following processing (A) to (E) is performed.

(A)プログラム内「予定在庫数」−ワークF「必要数」+ワークF「手配数」の値を、プログラム内「予定在庫数」にセットする。 (A) The value of “scheduled inventory quantity” in the program−work F “necessary quantity” + work F “arranged quantity” is set in the “scheduled inventory quantity” in the program.

(B)プログラム内「予定在庫数」≧退避ワークD「発注点」の時、プログラム内「予定在庫数」を、ワークF「予定在庫数」にセットし、(A)の処理へ戻って、次のレコードに対する処理を行う。 (B) When “planned stock quantity” in the program ≧ evacuated work D “order point”, the “scheduled stock quantity” in the program is set to the work F “scheduled stock quantity”, and the processing returns to (A). Process the next record.

(C)リードしたレコードの「年月日」から、範囲内で最大の「予定在庫数」を取得する。この際、発注検討期間が考慮される。具体的には、まず、リードしたレコードの「年月日」に対して、退避ワークD「発注検討期間」に該当する日数分(稼働日ベースでの日数分)をプラスした日付(年月日)を算出し(GetLeadDay)、続いて、算出した日付の範囲内で最大値をとる「予定在庫数」を取得する。 (C) The maximum “planned stock quantity” within the range is acquired from the “date” of the read record. At this time, the order review period is considered. Specifically, first, the date (year / month / day) obtained by adding the number of days corresponding to the evacuation work D “order review period” (the number of days on an operating day basis) to the “year / month / day” of the lead record. ) Is calculated (GetLeadDay), and then the “planned inventory quantity” that takes the maximum value within the calculated date range is acquired.

(D)取得した「予定在庫数」の値に応じて、以下のようにして、手配必要数を求める。「予定在庫数」≧退避ワークD「発注点」の場合には、まず、プログラム内「予定在庫数」の値をチェックし、プログラム内「予定在庫数」≧退避ワークD「安全在庫数(下限)」のときは、プログラム内「予定在庫数」の値を、ワークF「予定在庫数」にセットし、(A)の処理へ戻って、次のレコードに対する処理を行い、一方、プログラム内「予定在庫数」<退避ワークD「安全在庫数(下限)」のときは、退避ワークD「安全在庫数(上限)」−プログラム内「予定在庫数」の値を、プログラム内「手配必要数」とする。他方で、「予定在庫数」<退避ワークD「発注点」の場合には、退避ワークD「安全在庫数(上限)」−プログラム内「予定在庫数」の値を、プログラム内「手配必要数」とする。 (D) In accordance with the acquired value of “planned stock quantity”, the necessary number of arrangements is obtained as follows. When “planned stock quantity” ≧ evacuation work D “order point”, first, the value of “scheduled stock quantity” in the program is checked, and “scheduled stock quantity” in the program ≧ evacuation work D “safety stock quantity (lower limit) ) ”, The value of“ scheduled stock quantity ”in the program is set to the work F“ scheduled stock quantity ”, the process returns to the process of (A), and the next record is processed. When “planned stock quantity” <evacuation work D “safety stock quantity (lower limit)”, the value of “evacuation work D“ safety stock quantity (upper limit) ”−“ planned stock quantity ”in the program is set as“ necessary number of arrangements ”in the program. And On the other hand, in the case of “planned stock quantity” <evacuation work D “order point”, the value of “evacuation work D“ safety stock quantity (upper limit) ”−“ planned stock quantity ”in the program is set to“ required quantity to be arranged ”in the program. "

(E)以下の処理(E−1)〜(E−3)で、数量まとめを行う。この処理により、ロット数を考慮した手配必要数を設定することが可能となる。 (E) The quantity is summarized by the following processes (E-1) to (E-3). By this process, it is possible to set the necessary number of arrangements considering the number of lots.

(E−1)プログラム内「手配必要数」≦退避ワークD「最小ロット数」の時、以下の処理(a)〜(e)を行う。
(a)退避ワークD「最小ロット数」の値を、プログラム内「W手配数」にセットする。
(b)生産計画ファイルにおいて、第2の追加処理を行う。この際に行われる生産計画ファイルにおける第2の追加処理の詳細は、図40に示されている。さらに、計画引当ファイルにおいて、第2の追加処理を行う。この際に行われる計画引当ファイルにおける第2の追加処理の詳細は、図41に示されている。これらにより、生産計画ファイル及び計画引当ファイルが更新される。
(c)プログラム内「W手配数」の値を、プログラム内「予定在庫数」に加算する。
(d)プログラム内「予定在庫数」の値を、ワークF「予定在庫数」にセットし、更新をする。
(e)(A)の処理へ戻って、次のレコードに対する処理を行う。
(E-1) The following processes (a) to (e) are performed when “required number of arrangements” ≦ saving work D “minimum lot number” in the program.
(A) The value of the evacuation workpiece D “minimum lot number” is set in the “number of W arrangements” in the program.
(B) A second additional process is performed in the production plan file. Details of the second addition process in the production plan file performed at this time are shown in FIG. Further, a second addition process is performed in the plan allocation file. Details of the second addition process in the plan allocation file performed at this time are shown in FIG. As a result, the production plan file and the plan allocation file are updated.
(C) The value of the “number of W arrangements” in the program is added to the “planned stock quantity” in the program.
(D) The value of “scheduled stock quantity” in the program is set to work F “scheduled stock quantity” and updated.
(E) Returning to the processing of (A), processing for the next record is performed.

(E−2)退避ワークD「最大ロット数」=“0”の時、以下の処理(a)〜(f)を行う。
(a)(プログラム内「手配必要数」−退避ワークD「最小ロット数」)÷退避ワークD「増分ロット数」の演算結果(切上げ)を、「WKA」とする。<「WKA」:9(9)>
(b)「WKA」×退避ワークD「増分ロット数」+退避ワークD「最小ロット数」の値を、プログラム内「W手配数」にセットする。
(c)生産計画ファイルにおいて、図40に示した第2の追加処理を行う。さらに、計画引当ファイルにおいて、図41に示した第2の追加処理を行う。これらにより、生産計画ファイル及び計画引当ファイルが更新される。
(d)プログラム内「W手配数」の値を、プログラム内「予定在庫数」に加算する。
(e)プログラム内「予定在庫数」の値を、ワークF「予定在庫数」にセットし、更新をする。
(f)(A)の処理へ戻って、次のレコードに対する処理を行う。
(E-2) When the evacuation workpiece D “maximum number of lots” = “0”, the following processes (a) to (f) are performed.
(A) The calculation result (rounded up) of “the number of arrangements required in the program” −evacuation work D “minimum lot number”) ÷ evacuation work D “increment lot number” is “WKA”. <"WKA": 9 (9)>
(B) The value of “WKA” × evacuation workpiece D “incremental lot number” + evacuation workpiece D “minimum lot number” is set in “W arrangement number” in the program.
(C) In the production plan file, the second addition process shown in FIG. 40 is performed. Furthermore, the second addition process shown in FIG. 41 is performed in the plan allocation file. As a result, the production plan file and the plan allocation file are updated.
(D) The value of “number of W arrangements” in the program is added to “planned stock quantity” in the program.
(E) The value of “scheduled stock quantity” in the program is set to work F “scheduled stock quantity” and updated.
(F) Returning to the processing of (A), processing for the next record is performed.

(E−3)退避ワークD「最大ロット数」≠“0”の時、以下の処理(a)〜(d)を行う。 (E-3) When the evacuation workpiece D “maximum number of lots” ≠ “0”, the following processes (a) to (d) are performed.

(a)プログラム内「手配必要数」÷退避ワークD「最大ロット数」の演算結果を、「WKN」余り「WKM」とする。 (A) The calculation result of “required number of arrangements” ÷ evacuation work D “maximum number of lots” in the program is “WKN” remainder “WKM”.

(b)以下の処理(b−1)〜(b−3)を「WKN」の値分繰り返し行う。
(b−1)退避ワークD「最大ロット数」の値を、プログラム内「W手配数」にセットする。
(b−2)生産計画ファイルにおいて、図40に示した第2の追加処理を行う。さらに、計画引当ファイルにおいて、図41に示した第2の追加処理を行う。これらにより、生産計画ファイル及び計画引当ファイルが更新される。
(b−3)プログラム内「W手配数」の値を、プログラム内「予定在庫数」に加算する。
(b−4)プログラム内「予定在庫数」の値を、ワークF「予定在庫数」にセットし、更新をする。
(B) The following processes (b-1) to (b-3) are repeated for the value of “WKN”.
(B-1) The value of the evacuation workpiece D “maximum number of lots” is set in the “number of W arrangements” in the program.
(B-2) In the production plan file, the second addition process shown in FIG. 40 is performed. Furthermore, the second addition process shown in FIG. 41 is performed in the plan allocation file. As a result, the production plan file and the plan allocation file are updated.
(B-3) The value of “W arrangement number” in the program is added to “scheduled stock quantity” in the program.
(B-4) The value of “scheduled stock quantity” in the program is set to work F “scheduled stock quantity” and updated.

(c)「WKM」≦退避ワークD「最小ロット数」の時、以下の処理(c−1)〜(c−4)を行う。
(c−1)退避ワークD「最小ロット数」の値を、プログラム内「W手配数」にセットする。
(c−2)生産計画ファイルにおいて、図40に示した第2の追加処理を行う。さらに、計画引当ファイルにおいて、図41に示した第2の追加処理を行う。これらにより、生産計画ファイル及び計画引当ファイルが更新される。
(c−3)プログラム内「W手配数」の値を、プログラム内「予定在庫数」に加算する。
(c−4)プログラム内「予定在庫数」の値を、ワークF「予定在庫数」にセットし、更新をする。
(C) When “WKM” ≦ saving work D “minimum lot number”, the following processes (c-1) to (c-4) are performed.
(C-1) The value of the evacuation work D “minimum lot number” is set in the “number of W arrangements” in the program.
(C-2) In the production plan file, the second addition process shown in FIG. 40 is performed. Furthermore, the second addition process shown in FIG. 41 is performed in the plan allocation file. As a result, the production plan file and the plan allocation file are updated.
(C-3) The value of “number of W arrangements” in the program is added to “planned stock quantity” in the program.
(C-4) The value of “scheduled stock quantity” in the program is set to work F “scheduled stock quantity” and updated.

(d)「WKM」>退避ワークD「最小ロット数」の時、以下の処理(d−1)〜(d−5)を行う。
(d−1){(「WKM」−退避ワークD「最小ロット数」)÷退避ワークD「増分ロット数」}の演算結果(切上げ)を、「WKA」とする。<「WKA」:9(9)>
(d−2)退避ワークD「最小ロット数」+退避ワークD「増分ロット数」×「WKA」の値を、プログラム内「W手配数」にセットする。
(d−3)生産計画ファイルにおいて、図40に示した第2の追加処理を行う。さらに、計画引当ファイルにおいて、図41に示した第2の追加処理を行う。これらにより、生産計画ファイル及び計画引当ファイルが更新される。
(d−4)プログラム内「W手配数」の値を、プログラム内「予定在庫数」に加算する。
(d−5)プログラム内「予定在庫数」の値を、ワークF「予定在庫数」にセットし、更新をする。
(D) When “WKM”> evacuation workpiece D “minimum number of lots”, the following processes (d-1) to (d-5) are performed.
(D-1) The calculation result (rounded up) of {(“WKM” −evacuation work D “minimum lot number”) ÷ evacuation work D “increment lot number”} is “WKA”. <"WKA": 9 (9)>
(D-2) The value of the saved work D “minimum lot number” + saved work D “incremental lot number” × “WKA” is set in the “number of W arrangements” in the program.
(D-3) In the production plan file, the second addition process shown in FIG. 40 is performed. Furthermore, the second addition process shown in FIG. 41 is performed in the plan allocation file. As a result, the production plan file and the plan allocation file are updated.
(D-4) The value of “number of W arrangements” in the program is added to “planned stock quantity” in the program.
(D-5) The value of “scheduled stock quantity” in the program is set to work F “scheduled stock quantity” and updated.

(F)上述した(A)の処理へ戻って、次のレコードに対する処理を行う。 (F) Returning to the process (A) described above, the process for the next record is performed.

(6)上述した(3)の処理へ戻って、ワークDにおける次のレコードに対する処理を行う。全てのレコードに対する処理が終了したら、本処理を完了する。 (6) Returning to the process of (3) described above, the process for the next record in the work D is performed. When the processing for all the records is completed, this processing is completed.

上述したようにして、ステップSC4bのMRP的計画F作成処理が行われる。   As described above, the MRP-like plan F creation process in step SC4b is performed.

なお、上述したステップSC4aの製番的計画F作成処理及びステップSC4bのMRP的計画F作成処理において、決定した計画数について所定の出力及び必要な更新処理が行われる。   In the above-described production plan F creation process in step SC4a and MRP plan F creation process in step SC4b, predetermined output and necessary update processing are performed for the determined number of plans.

以上で、[4−3.生産計画自動立案処理の詳細の詳細]の説明を終了する。   With the above, [4-3. [Details of Details of Automatic Production Planning Process] is finished.

[5.第2の実施形態]
次に、本発明の第2の実施形態について説明する。
[5. Second Embodiment]
Next, a second embodiment of the present invention will be described.

上述した第1の実施形態においては、生産計画自動立案方法を用いて、在庫管理方法に係る処理と、生産管理方法に係る処理とを実行して、製品を生産すべき計画数を決定したが、本実施形態においては、製品を生産すべき計画数を決定せずに、物品の在庫管理のみに着目して在庫の計画数を決定するものである。   In the first embodiment described above, the production plan automatic planning method is used to execute the process related to the inventory management method and the process related to the production management method to determine the number of plans for producing the product. In the present embodiment, the planned number of inventory is determined by noting the planned number of products to be produced but focusing only on inventory management of articles.

本実施形態に係る在庫管理方法は、上述した第1の実施形態に係る生産計画自動立案方法に含まれる在庫管理方法と同様にして実行することができる。ただし、本実施形態においては、生産管理の目的で、稼働日を考慮する必要はないので、これらに係る処理を省略又はスキップすればよい。このため、第1の実施形態において説明した生産計画自動立案装置100は、在庫管理装置としても機能させることができる。   The inventory management method according to the present embodiment can be executed in the same manner as the inventory management method included in the production plan automatic planning method according to the first embodiment described above. However, in the present embodiment, it is not necessary to consider the working day for the purpose of production management, and therefore the processing related to these may be omitted or skipped. For this reason, the production plan automatic planning apparatus 100 described in the first embodiment can also function as an inventory management apparatus.

本実施形態においては、物品の在庫の入庫及び出庫の数に関する増減数を増減数データとして用いればよい。ここで、在庫の増減としては、受注に応じた物品の入荷及び出荷の数が考慮され、より好ましくは、物品のイレギュラーな移動分(例えば、他の拠点への貸し借り分、返品若しくはキャンセルの受け入れ分、及び直送分)をも考慮することが好ましい。そして、本実施形態では、これらの増減数データを用いて第1の実施形態で説明したような処理を実行することにより、在庫の計画数が決定される。   In the present embodiment, an increase / decrease number related to the number of goods in and out of inventory of goods may be used as the increase / decrease data. Here, the increase / decrease in inventory takes into consideration the number of arrivals and shipments of goods according to orders, and more preferably, irregular movements of goods (for example, lending / borrowing to other bases, returns / cancellations) It is preferable to take into account the amount received and the portion directly sent. In the present embodiment, the planned number of inventory is determined by executing the process described in the first embodiment using these increase / decrease number data.

また、本実施形態において、より好ましくは、決定した在庫の計画数に応じて、物品の不足分(必要数)を生産現場又は卸業者へ発注するように装置を構成してもよく(発注手段)、この場合、より好ましくは、生産現場又は卸業者の稼働日や納期を考慮して発注する。同様に、物品の必要数(過剰分)については、得意先へ卸すか若しくは販売の申し出をしたり、買取業者へ買取依頼を出したり、他の拠点へ保管依頼を出したりするように構成してもよい。   In the present embodiment, more preferably, the apparatus may be configured to place an order for the shortage of goods (necessary number) from the production site or a wholesaler in accordance with the determined planned number of inventory (ordering means). In this case, it is more preferable to place an order in consideration of the working day or the delivery date of the production site or the wholesaler. Similarly, the necessary number (excess) of goods is configured so that it can be wholesaled or sold to customers, submitted to purchasers, and stored at other locations. May be.

[6.第3の実施形態]
次に、本発明の第3の実施形態について説明する。
[6. Third Embodiment]
Next, a third embodiment of the present invention will be described.

上述した第2の実施形態においては、物品の在庫管理について説明したが、本実施形態においては、第2の実施形態において決定された物品の必要数に関する情報を受け取り、受け取った情報に基づいて、生産に必要な必要数を計画数として決定する。これを実現するためには、第1の実施形態において説明した生産計画自動立案装置100を用いればよい。具体的には、第1の実施形態に係る生産計画自動立案方法に含まれる生産管理方法に係る処理を実行すればよい。   In the second embodiment described above, the inventory management of articles has been described. However, in the present embodiment, information on the required number of articles determined in the second embodiment is received, and based on the received information, The required number required for production is determined as the planned number. In order to realize this, the production plan automatic planning apparatus 100 described in the first embodiment may be used. Specifically, the process related to the production management method included in the production plan automatic planning method according to the first embodiment may be executed.

[7.第4の実施形態]
次に、本発明の第4の実施形態について説明する。
[7. Fourth Embodiment]
Next, a fourth embodiment of the present invention will be described.

上述した第1〜第3の実施形態では、物品の在庫管理や製品の生産管理に関して、必要数を計画数として決定しているが、これらに相応するプログラムを、本実施形態においては、過去の在庫実績や製品の生産実績の検証又はシミュレーションに用いる。具体的には、適用日(基準日付)と適用期間を変更することにより複数の演算結果が得られるので、過去の在庫実績が適切であったかどうか、又は、過去のどの時点から在庫数を調整するのが適切であったのか等についての検証材料を得ることができ、それにより、在庫スペースの広さの検討又は生産設備の生産能力の検討若しくは生産体制(生産設備の稼働時間や増員等)の検討に生かすことも可能となる。   In the first to third embodiments described above, the necessary number is determined as the planned number for the inventory management of products and the production management of products, but in this embodiment, a program corresponding to these is determined in the past. Used for verification or simulation of inventory results and product production results. Specifically, since multiple calculation results can be obtained by changing the application date (base date) and application period, whether or not the past inventory performance was appropriate or from what point in the past is adjusted. It is possible to obtain verification materials on whether or not it was appropriate, etc., thereby examining the extent of inventory space or the production capacity of production equipment or the production system (production equipment operation time, increase in personnel, etc.) It is also possible to make use of it for examination.

[8.他の実施形態]
本発明は、上述した実施形態以外にも、特許請求の範囲に記載した技術的思想の範囲内において種々の異なる実施形態にて実施されてよいものである。
[8. Other Embodiments]
In addition to the above-described embodiments, the present invention may be implemented in various different embodiments within the scope of the technical idea described in the claims.

例えば、実施形態において説明した各処理のうち、自動的に行われるものとして説明した処理の全部または一部を手動的に行うこともでき、あるいは、手動的に行われるものとして説明した処理の全部または一部を公知の方法で自動的に行うこともできる。   For example, among the processes described in the embodiments, all or part of the processes described as being automatically performed can be performed manually, or all of the processes described as being performed manually are all performed. Alternatively, a part can be automatically performed by a known method.

また、本明細書中や図面中で示した処理手順、制御手順、具体的名称、各処理の登録データや検索条件等のパラメータを含む情報、画面例、データベース構成については、特記する場合を除いて任意に変更することができる。   In addition, the processing procedures, control procedures, specific names, information including parameters such as registration data and search conditions for each processing, screen examples, and database configurations shown in the present specification and drawings, unless otherwise specified. Can be changed arbitrarily.

また、生産計画自動立案装置100及び生産計画自動立案システムに関して、図示の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。   In addition, regarding the production plan automatic planning apparatus 100 and the production plan automatic planning system, each illustrated component is functionally conceptual and does not necessarily need to be physically configured as illustrated.

例えば、生産計画自動立案装置100が備える処理機能、特に制御部102にて行われる各処理機能については、その全部または任意の一部を、CPU及び当該CPUにて解釈実行されるプログラムにて実現してもよく、また、ワイヤードロジックによるハードウェアとして実現してもよい。尚、プログラムは、本実施形態で説明した処理を情報処理装置に実行させるためのプログラム化された命令を含む一時的でないコンピュータ読み取り可能な記録媒体に記録されており、必要に応じて生産計画自動立案装置100に機械的に読み取られる。すなわち、ROMまたはHDD(Hard Disk Drive)などの記憶部などには、OSと協働してCPUに命令を与え、各種処理を行うためのコンピュータプログラムが記録されている。このコンピュータプログラムは、RAMにロードされることによって実行され、CPUと協働して制御部を構成する。   For example, all or some of the processing functions provided in the production plan automatic planning apparatus 100, particularly the processing functions performed by the control unit 102, are realized by the CPU and a program interpreted and executed by the CPU. Alternatively, it may be realized as hardware by wired logic. The program is recorded on a non-transitory computer-readable recording medium including programmed instructions for causing the information processing apparatus to execute the processing described in the present embodiment. It is mechanically read by the planning device 100. In other words, in a storage unit such as a ROM or a HDD (Hard Disk Drive), a computer program for giving instructions to the CPU in cooperation with the OS and performing various processes is recorded. This computer program is executed by being loaded into the RAM, and constitutes a control unit in cooperation with the CPU.

また、このコンピュータプログラムは、生産計画自動立案装置100に対して任意のネットワークを介して接続されたアプリケーションプログラムサーバ(例えば、ネットワーク300を介して接続されたサーバ200)に記憶されていてもよく、必要に応じてその全部または一部をダウンロードすることも可能である。   The computer program may be stored in an application program server (for example, a server 200 connected via the network 300) connected to the production plan automatic planning apparatus 100 via an arbitrary network. It is also possible to download all or part of it if necessary.

また、本実施形態で説明した処理を実行するためのプログラムを、一時的でないコンピュータ読み取り可能な記録媒体に格納してもよく、また、プログラム製品として構成することもできる。ここで、この「記録媒体」とは、メモリーカード、USB(Universal Serial Bus)メモリ、SD(Secure Digital)カード、フレキシブルディスク、光磁気ディスク、ROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable and Programmable Read Only Memory)、CD−ROM(Compact Disk Read Only Memory)、MO(Magneto−Optical disk)、DVD(Digital Versatile Disk)、及び、Blu−ray(登録商標) Disc等の任意の「可搬用の物理媒体」を含むものとする。したがって、本明細書で説明したような処理を実行するためのプログラムを格納した記録媒体もまた本発明を構成することとなる。   In addition, a program for executing the processing described in this embodiment may be stored in a non-temporary computer-readable recording medium, or may be configured as a program product. Here, the “recording medium” refers to a memory card, USB (Universal Serial Bus) memory, SD (Secure Digital) card, flexible disk, magneto-optical disk, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (registration). Trademark) (Electrically Erasable and Programmable Read Only Memory), CD-ROM (Compact Disk Read Only Memory), MO (Magneto-Optical disk, etc.), DVD (Digital Digital, Trademark) Any "portable physical medium" It is intended to include. Therefore, a recording medium storing a program for executing processing as described in this specification also constitutes the present invention.

また、「プログラム」とは、任意の言語または記述方法にて記述されたデータ処理方法であり、ソースコードまたはバイナリコード等の形式を問わない。なお、「プログラム」は必ずしも単一的に構成されるものに限られず、複数のモジュールやライブラリとして分散構成されるものや、OSに代表される別個のプログラムと協働してその機能を達成するものをも含む。なお、実施形態に示した各装置において記録媒体を読み取るための具体的な構成及び読み取り手順ならびに読み取り後のインストール手順等については、周知の構成や手順を用いることができる。   The “program” is a data processing method described in an arbitrary language or description method, and may be in any form such as source code or binary code. Note that the “program” is not necessarily limited to a single configuration, and functions are achieved in cooperation with a separate configuration such as a plurality of modules and libraries or a separate program represented by the OS. Including things. In addition, a well-known structure and procedure can be used about the specific structure and reading procedure for reading a recording medium in each apparatus shown to embodiment, the installation procedure after reading, etc.

記憶部106に格納される各種のデータベース等は、RAM、ROM等のメモリ装置、ハードディスク等の固定ディスク装置、フレキシブルディスク、及び、光ディスク等のストレージ手段であり、各種処理やウェブサイト提供に用いる各種のプログラム、テーブル、データベース、及び、ウェブページ用ファイル等を格納する。   Various databases and the like stored in the storage unit 106 are storage means such as a memory device such as a RAM and a ROM, a fixed disk device such as a hard disk, a flexible disk, and an optical disk. Programs, tables, databases, web page files, and the like.

また、生産計画自動立案装置100は、既知のパーソナルコンピュータまたはワークステーション等の情報処理装置として構成してもよく、また、任意の周辺装置が接続された当該情報処理装置として構成してもよい。また、生産計画自動立案装置100は、当該装置に本実施形態で説明した処理を実現させるソフトウェア(プログラムまたはデータ等を含む)を実装することにより実現してもよい。   Further, the production plan automatic planning apparatus 100 may be configured as an information processing apparatus such as a known personal computer or workstation, or may be configured as the information processing apparatus to which an arbitrary peripheral device is connected. Further, the production plan automatic planning apparatus 100 may be realized by mounting software (including a program or data) for realizing the processing described in the present embodiment in the apparatus.

更に、装置の分散・統合の具体的形態は図示するものに限られず、その全部または一部を、各種の付加等に応じてまたは機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。すなわち、上述した実施形態を任意に組み合わせて実施してもよく、実施形態を選択的に実施してもよい。   Furthermore, the specific form of distribution / integration of the devices is not limited to that shown in the figure, and all or a part of them may be functionally or physically in arbitrary units according to various additions or according to functional loads. It can be configured to be distributed and integrated. That is, the above-described embodiments may be arbitrarily combined and may be selectively implemented.

本発明は、特に、製造業における生産管理において有用であり、任意の業種における在庫管理及び販売管理にも有用である。   The present invention is particularly useful in production management in the manufacturing industry, and is also useful in inventory management and sales management in any industry.

100 生産計画自動立案装置
102 制御部
102a 日割り処理部
102b 立案部
104 通信インターフェース部
106 記憶部
106a 日別在庫計画マスタ
106b 手配条件マスタ
106c 品目マスタ
106d CSVデータマスタ
106e 受注データマスタ
106f 内示データマスタ
106g 在庫データマスタ
106h 計画データマスタ
108 入出力インターフェース部
112 入力装置
114 出力装置
200 サーバ
300 ネットワーク
DESCRIPTION OF SYMBOLS 100 Production plan automatic planning apparatus 102 Control part 102a Daily processing part 102b Planning part 104 Communication interface part 106 Storage part 106a Daily stock plan master 106b Arrangement condition master 106c Item master 106d CSV data master 106e Order received data master 106f Indication data master 106g Inventory Data master 106h Plan data master 108 Input / output interface unit 112 Input device 114 Output device 200 Server 300 Network

Claims (7)

製品を生産すべき計画数を立案するための、制御部を備えた生産計画自動立案装置において、
前記制御部は、
前記製品に対する需要予測を考慮して予め定められた、第1の周期における期末の在庫計画数に関する期末安全在庫数データを用いて、前記第1の周期に含まれかつ当該第1の周期よりも相対的に短い第2の周期における在庫計画数に関する短周期基準安全在庫数データを複数作成する作成手段と、
前記第1の周期における前記製品の増減分に関する増減数データを用いて、前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に、前記増減数データに対応する前記製品の増減分を割り当てることにより、前記作成手段で作成した前記短周期基準安全在庫数データを更新する更新手段と、
前記更新手段で得られた短周期基準安全在庫数データと、前記第1の周期における前記製品の引当数に関する引当数データとを用いて、前記第2の周期において前記製品を生産すべき計画数を決定する決定手段と
を備えた
ことを特徴とする生産計画自動立案装置。
In the production plan automatic planning device equipped with a control unit for planning the number of products to be produced,
The controller is
Using the end-of-period safety stock quantity data relating to the planned inventory quantity at the end of the first period, which is determined in consideration of the demand forecast for the product, it is included in the first period and is more than the first period. Creating means for creating a plurality of short cycle reference safety stock quantity data relating to the number of inventory plans in the relatively short second cycle;
Using the increase / decrease data related to the increase / decrease in the product in the first cycle, the increase / decrease in the product corresponding to the increase / decrease number data is added to each of the planned inventory numbers corresponding to the plurality of short cycle reference safety inventory number data. Updating means for updating the short cycle reference safety stock quantity data created by the creating means by allocating minutes;
The planned number of products to be produced in the second cycle by using the short cycle reference safety stock data obtained by the updating means and the allocation number data relating to the number of products to be allocated in the first cycle A production plan automatic planning apparatus comprising: a determination means for determining
前記制御部は、
前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に割り当てるべき前記製品の増減分の割当分を、前記第1の周期に属する日の数を用いて算出する算出手段をさらに含む
ことを特徴とする請求項1に記載の生産計画自動立案装置。
The controller is
A calculating means for calculating, using the number of days belonging to the first period, an allocation of the increase / decrease of the product to be allocated to each of the inventory plan numbers corresponding to the plurality of short cycle reference safety inventory number data The production planning automatic planning apparatus according to claim 1, comprising:
前記第1の周期に属する日の数は、前記製品の生産を行うことが可能な稼働日の数であり、
前記算出手段は、
前記稼働日の各々に、当該稼働日の前記第1の周期における順序に応じた係数を設定する係数設定手段を含み、かつ、
前記係数設定手段で設定した係数に対応する稼働日に対して、前記割当分として、前記製品の増減分を前記稼働日の数で除した値に、該稼働日に設定された係数を乗じた値を用いる
ことを特徴とする請求項2に記載の生産計画自動立案装置。
The number of days belonging to the first cycle is the number of working days on which the product can be produced,
The calculating means includes
Each of the working days includes coefficient setting means for setting a coefficient according to the order in the first cycle of the working day, and
For the working day corresponding to the coefficient set by the coefficient setting means, the value obtained by dividing the increase / decrease of the product by the number of working days is multiplied by the coefficient set for the working day as the allocated amount. 3. The production planning automatic planning apparatus according to claim 2, wherein a value is used.
前記第1の周期は、月を単位とする期間であり、かつ、
前記第2の周期は、日を単位とする期間であり、
前記制御部は、
前記製品を生産すべき計画数の立案対象となる適用期間の基準日付を設定する基準日付設定手段
を含み、かつ、
前記作成手段は、
前記基準日付設定手段で設定した基準日付を含む月の翌月の月末の在庫計画数に関する期末安全在庫数データを用いて、前記翌月に属する日の各々について前記短周期基準安全在庫数データを作成する
ことを特徴とする請求項1〜3のいずれか1項に記載の生産計画自動立案装置。
The first period is a period in units of months, and
The second cycle is a period in days.
The controller is
Including a reference date setting means for setting a reference date for an application period to be planned for the number of plans for producing the product, and
The creating means includes
Using the end-of-period safety stock quantity data relating to the inventory plan quantity at the end of the month following the month including the base date set by the base date setting means, the short cycle reference safety stock quantity data is created for each day belonging to the next month The production plan automatic planning apparatus according to any one of claims 1 to 3, wherein
前記制御手段は、
前記決定手段で決定した複数種類の製品の計画数についてまとめ処理を行うまとめ手段をさらに含む
ことを特徴とする請求項1〜4のいずれか1項に記載の生産計画自動立案装置。
The control means includes
The production plan automatic planning apparatus according to any one of claims 1 to 4, further comprising a summarizing unit that performs summarization processing on the planned number of products of a plurality of types determined by the determining unit.
制御部を備えた生産計画自動立案装置において実行される、製品を生産すべき計画数を立案するための生産計画自動立案方法であって、
前記制御部において実行される、
前記製品に対する需要予測を考慮して予め定められた、第1の周期における期末の在庫計画数に関する期末安全在庫数データを用いて、前記第1の周期に含まれかつ当該第1の周期よりも相対的に短い第2の周期における在庫計画数に関する短周期基準安全在庫数データを複数作成する作成ステップと、
前記第1の周期における前記製品の増減分に関する増減数データを用いて、前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に、前記増減数データに対応する前記製品の増減分を割り当てることにより、前記作成ステップで作成した前記短周期基準安全在庫数データを更新する更新ステップと、
前記更新ステップで得られた短周期基準安全在庫数データと、前記第1の周期における前記製品の引当数に関する引当数データとを用いて、前記第2の周期において前記製品を生産すべき計画数を決定する決定ステップと
を含む
ことを特徴とする生産計画自動立案方法。
A production plan automatic planning method for planning the number of plans to produce a product, which is executed in a production plan automatic planning apparatus having a control unit,
Executed in the control unit,
Using the end-of-period safety stock quantity data relating to the planned inventory quantity at the end of the first period, which is determined in consideration of the demand forecast for the product, it is included in the first period and is more than the first period. A creation step for creating a plurality of short cycle-based safety stock quantity data related to the number of inventory plans in a relatively short second cycle;
Using the increase / decrease data related to the increase / decrease in the product in the first cycle, the increase / decrease in the product corresponding to the increase / decrease number data is added to each of the planned inventory numbers corresponding to the plurality of short cycle reference safety inventory number data. An update step of updating the short cycle reference safety stock number data created in the creation step by assigning minutes;
The planned number of products to be produced in the second cycle by using the short cycle reference safety stock data obtained in the updating step and the allocation data regarding the number of products allocated in the first cycle. And a determination step for determining the production plan.
制御部を備えた生産計画自動立案装置において実行させるための、製品を生産すべき計画数を立案するための生産計画自動立案プログラムであって、
前記制御部において実行させるための、
前記製品に対する需要予測を考慮して予め定められた、第1の周期における期末の在庫計画数に関する期末安全在庫数データを用いて、前記第1の周期に含まれかつ当該第1の周期よりも相対的に短い第2の周期における在庫計画数に関する短周期基準安全在庫数データを複数作成する作成ステップと、
前記第1の周期における前記製品の増減分に関する増減数データを用いて、前記複数の短周期基準安全在庫数データに対応する在庫計画数の各々に、前記増減数データに対応する前記製品の増減分を割り当てることにより、前記作成ステップで作成した前記短周期基準安全在庫数データを更新する更新ステップと、
前記更新ステップで得られた短周期基準安全在庫数データと、前記第1の周期における前記製品の引当数に関する引当数データとを用いて、前記第2の周期において前記製品を生産すべき計画数を決定する決定ステップと
を含む
ことを特徴とする生産計画自動立案プログラム。
A production plan automatic planning program for planning the number of products to be produced for execution in a production plan automatic planning device having a control unit,
For executing in the control unit,
Using the end-of-period safety stock quantity data relating to the planned inventory quantity at the end of the first period, which is determined in consideration of the demand forecast for the product, it is included in the first period and is more than the first period. A creation step for creating a plurality of short cycle-based safety stock quantity data related to the number of inventory plans in a relatively short second cycle;
Using the increase / decrease data related to the increase / decrease in the product in the first cycle, the increase / decrease in the product corresponding to the increase / decrease number data is added to each of the planned inventory numbers corresponding to the plurality of short cycle reference safety inventory number data. An update step of updating the short cycle reference safety stock number data created in the creation step by assigning minutes;
The planned number of products to be produced in the second cycle by using the short cycle reference safety stock data obtained in the updating step and the allocation data regarding the number of products allocated in the first cycle. A production planning automatic planning program comprising: a decision step for determining the production plan.
JP2016013766A 2015-03-31 2016-01-27 Production schedule automatic planning device, production schedule automatic planning method and production schedule automatic planning program Pending JP2016194900A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015071270 2015-03-31
JP2015071270 2015-03-31

Publications (1)

Publication Number Publication Date
JP2016194900A true JP2016194900A (en) 2016-11-17

Family

ID=57322895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016013766A Pending JP2016194900A (en) 2015-03-31 2016-01-27 Production schedule automatic planning device, production schedule automatic planning method and production schedule automatic planning program

Country Status (1)

Country Link
JP (1) JP2016194900A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977812A (en) * 2017-11-23 2018-05-01 锋泾(中国)建材集团有限公司 The automatic row's folk prescription method of production, apparatus and system
JP2019045986A (en) * 2017-08-30 2019-03-22 株式会社オービック Production managing device, production managing method, and, production managing program
CN117910986A (en) * 2024-03-20 2024-04-19 通亿(泉州)轻工有限公司 Warehouse management method and related equipment based on ERP system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019045986A (en) * 2017-08-30 2019-03-22 株式会社オービック Production managing device, production managing method, and, production managing program
JP7042048B2 (en) 2017-08-30 2022-03-25 株式会社オービック Production control equipment, production control method, and production control program
CN107977812A (en) * 2017-11-23 2018-05-01 锋泾(中国)建材集团有限公司 The automatic row's folk prescription method of production, apparatus and system
CN117910986A (en) * 2024-03-20 2024-04-19 通亿(泉州)轻工有限公司 Warehouse management method and related equipment based on ERP system

Similar Documents

Publication Publication Date Title
EP3561749A1 (en) Inventory management apparatus, inventory management method, and storage medium
JP6031184B2 (en) Supply group determination support device and supply group determination support program
JP2012247964A (en) Progress management apparatus and progress management program
JP6997520B2 (en) Order information management device, order information management method and order information management program
JP2016194900A (en) Production schedule automatic planning device, production schedule automatic planning method and production schedule automatic planning program
JP6896453B2 (en) Inventory allocation order setting device, inventory allocation order setting method, and inventory allocation order setting program
US10222788B2 (en) Plan generating device and plan generating method
JP6896462B2 (en) Requirements calculation device, requirements calculation method, and requirements calculation program
WO2010018709A1 (en) Production plan making program, device, and method
JP7025854B2 (en) Gross profit calculator, gross profit calculation method and gross profit calculation program
JP2018136800A (en) Store ranking setting device, store ranking setting method, and store ranking setting program
JP4648013B2 (en) Production scheduling system
JP7104594B2 (en) Order / sales management device, order / sales management method and order / sales management program
JP2018106420A (en) Shipment deadline management apparatus, shipment deadline management method and shipment deadline management program
JP2022085264A (en) Inventory planning system and inventory planning method
JP2020201848A (en) Order reception input device, order reception input method, and order reception input program
JP7042048B2 (en) Production control equipment, production control method, and production control program
JP6744191B2 (en) Parts ordering method selecting device, parts ordering method selecting method and program
JP2020042623A (en) Parallel distributed processing control system, program, and parallel distributed processing control method
JP7324184B2 (en) Manufacturing instruction/order schedule creation device, manufacturing instruction/order schedule creation method, and manufacturing instruction/order schedule creation program
JP2003237946A (en) Inventory allocation method
JP2018120515A (en) Product management device, product management method, and product management program
JP6951066B2 (en) Allocation processing execution device, allocation processing execution method, and allocation processing execution program
JP2023123016A (en) Inventory management apparatus, inventory management method, and inventory management program
JP6347374B1 (en) Calendar providing system and calendar providing method