Sei sulla pagina 1di 3

MBML88 IIML01 CICL01 ABO001

Parameter
ACO010B Item number A(35)
Facilty A(3)
Control date 9(8,0)
Summary F/G A(1)

ACO002

Device File ID File description I/O

Disk MBML88 Bill of Materials File I


Disk IIM Item Master File I
Disk CIC Item Planning/Costing File I
Disk ABO001 EXTRA ITEM INFORMATION FILE I
Disk ACO002 After BOM-FORMULA-RECIPE file O

Overview
This PGM get Item No and Facility from parameter.

33308332.doc Page 1 of 3
This PGM get Parent Item No from MBM (Bill of Materials File) and get data from IIM (Item master
file),CIC (Item Planning/Costing File),ABO001(EXTRA ITEM INFORMATION FILE).
Set data to ACO002.
We want to get indented Inplosion fromula /recipe.
We can get same function from COSLIB/QCPYSRC CPY009.So you research this PGM.
Detail
1. Get parameter
PINO: Item No A(35)
PFAC: Facilty A(3)
PDAT: Control date 9(8,0)
*Check Effective Date(BDEFF) and Discontinue Date(BDDIS) of MBM.
If this parameter is ‘ ‘,then We indented all.
PSUM: Summary F/G.
*If PSUM =1,then we get only top level data .
If PSUM = 1,we gat only data of D,E,F,G. we don’t need data of B,C
D E F G

B C

2.Request Item No. :Parameter(PINO)


(1) Chain CICL01 by PINO + PFAC
Not Success - End PGM
(2) Chain IIML01 by PINO
(3) Chain ABO001 by PINO + PFAC
(4) Set data to ACO002(After BOM-FORMULA-RECIPE file)

3. Parent Item
(1) Setll& read MBML88(Bill of Materials File) by Child Item NO + Facility
Not Success GOTO(8).
(2) Check Effective Date & Discontinue Date
If PDAT < Effective Date(BDEFF),then GOTO(1).
If PDAT >= Discontinue Date(BDDIS),then GOTO(1).
(3) Chain IIML01 by Parent Item NO(BCHLD)
(4) Chain ABO001(EXTRA ITEM INFORMATION FILE) by Parent Item NO(BCHLD)
(5) Set data to ACO002(After BOM-FORMULA-RECIPE file)
(6) Level = Level - 1
(7) Setll MBML88 by Parent Item NO(BCHLD) + Facility(PFAC) and GOTO (1)
(8) If level <>1, Chain MBML88 by Chid Item no + facility no(1 level down) and goto (1)

33308332.doc Page 2 of 3
4.SET DATA TO 部品表展開後データファイル(ACO002)
TO FROM
CO0201 LEVEL PGM
CO0202 Item No PGM
CO0203 Facility Parameter
CO0204 Description IDESC IIM
CO0205 Type IITYP IIM
CO0206 Class ICLAS IIM
CO0207 Stocking UOM IUMS IIM
CO0208 Group CD BO0104 ABO001
CO0209 BOM Quantity Required BQREQ MBM
CO0210 Quantity *zero
CO0211 Total BOM Quantity required PGM
CO0212 Total Quantity *zero
CO0213 BOM Scrap Factor BMSCP MBM

5. EXIT PROGRAM

33308332.doc Page 3 of 3

Potrebbero piacerti anche