Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

BOM Header and Component tables got crossed data

$
0
0

  My repot out put:

Product CodeDesPlantAlternativeBase quantityBase unitItemItem CategoryComponent Code  QuantityUOMSort StringItm NmbrFix NumM GroupC Desc
13000357MUCOLYT  SYRUP BLK110013,000.00L20L11000643SACCHARIN SODIUM4.5G2110005Excipients
13000357MUCOLYT  SYRUP BLK110013,000.00L30L11000687SORBITOL SOLUTION 70%150KG3110005Excipients
13000357MUCOLYT  SYRUP BLK110013,000.00L40L11000705SUCROSE1,500.00KG4110005Excipients
13000357MUCOLYT  SYRUP BLK110013,000.00L60L11000455MENTHOL CRYSTAL0.375G6110001Active Ingredients
13000357MUCOLYT  SYRUP BLK110013,000.00L70L11000547ORANGE RED COLOR0.231G7110004Colour
13000357MUCOLYT  SYRUP BLK110013,000.00L80L11000659SODIUM BENZOATE6KGC8110005Excipients
13000357MUCOLYT  SYRUP BLK110013,000.00L90L11000243ETHANOL 96%48.75KG9110005Excipients
13000357MUCOLYT  SYRUP BLK110013,000.00L100L11000303GLYCERINE150KG10110005Excipients
13000357MUCOLYT  SYRUP BLK110013,000.00L110L11000541ORANGE FLAVOUR LIQUID3G11110006Flavour
13000357MUCOLYT  SYRUP BLK110013,000.00L120L11000075BROMHEXINE HYDROCHLORIDE2.4KGA12110001Active Ingredients
13000357MUCOLYT  SYRUP BLK110013,000.00L130L11000026AMMONIUM CHLORIDE15KG13110005Excipients
13000357MUCOLYT  SYRUP BLK110013,000.00L140TPurified Water3,000.00L14X

 

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.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>