My repot out put:
Product Code | Des | Plant | Alternative | Base quantity | Base unit | Item | Item Category | Component Code | Quantity | UOM | Sort String | Itm Nmbr | Fix Num | M Group | C Desc | ||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 20 | L | 11000643 | SACCHARIN SODIUM | 4.5 | G | 2 | 110005 | Excipients | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 30 | L | 11000687 | SORBITOL SOLUTION 70% | 150 | KG | 3 | 110005 | Excipients | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 40 | L | 11000705 | SUCROSE | 1,500.00 | KG | 4 | 110005 | Excipients | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 60 | L | 11000455 | MENTHOL CRYSTAL | 0.375 | G | 6 | 110001 | Active Ingredients | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 70 | L | 11000547 | ORANGE RED COLOR | 0.231 | G | 7 | 110004 | Colour | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 80 | L | 11000659 | SODIUM BENZOATE | 6 | KG | C | 8 | 110005 | Excipients | ||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 90 | L | 11000243 | ETHANOL 96% | 48.75 | KG | 9 | 110005 | Excipients | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 100 | L | 11000303 | GLYCERINE | 150 | KG | 10 | 110005 | Excipients | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 110 | L | 11000541 | ORANGE FLAVOUR LIQUID | 3 | G | 11 | 110006 | Flavour | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 120 | L | 11000075 | BROMHEXINE HYDROCHLORIDE | 2.4 | KG | A | 12 | 110001 | Active Ingredients | ||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 130 | L | 11000026 | AMMONIUM CHLORIDE | 15 | KG | 13 | 110005 | Excipients | |||
13000357 | MUCOLYT SYRUP BLK | 1100 | 1 | 3,000.00 | L | 140 | T | Purified Water | 3,000.00 | L | 14 | X |
I used mast,stko,stpo tables. stko contain header data and stpo contains details data. relation with BOM(STLNR). in stko table there are 4 header data in same BOM(00000004) cause of alternative BOM and create on(ANDAT) field have 2 dates data. corresponding stpo table contain 23 details data with create on(ANDAT) fields contain 3 different dates data(2 date are same to stko table). and relation stablish with only STLNR field. if i use another relation create on(ANDAT) field its lost some data like catagory(T) data. but I need above all data.If stko have only 1 header data with no alternative BOM then reports OK..but if stko contain 4 header data report show 4*23=92 data. I need another relation to get master-details data like same heade BOM(4data) alternative BOM wise 23 details data.