Reports on Sales BOMS

Dear Experts,
I have a Sales BOM in the INV1, I would like to create stationary that groups the all the child items sums up the quantities to the parent item. I want to hide the child items and sum up the total quantity to the father item code. This report can only focus on the INV1 since on the OITT and ITT1 table the  child items can always be changed even though a transaction has been done against the BOM. Hence they cannot be relied on for historical data.
The challenge is creating a grouping mechanism to group the related parent and child since there is no obvious like between the parent and child in INV1.
Has any one ever come across this before ?

Dear Martin,
Try like below query...
select T0.Docentry,T0.Itemcode,T0.Quantity from inv1 T0
left outer join oitt T1 on T0.itemcode=T1.Code and T0.Treetype=T1.treetype
You cannot find direct any relationship in INV1 but you can go through OITT,ITT1 based on treetype.
Regards,
Sachin

Similar Messages

  • Sales Report by Sales BOM Wise

    Hi All,
    How to get a sales report which shows how many BOMs i have sold in a given period by customer wise and date wise?
    Thanks
    SV Reddy

    Hi Reddy,
    You have to analyse it in the sales analysis report based on the parent item or you want to know the child items qty as well. If yes then you need to customize your PLD for sales analysis report. Please assure me whether this sales BOM remains same or changes by time?
    Regards,
    /Siddiq

  • Sales BOM Report

    Dear Experts,
    I have a Sales BOM in the INV1, I would like to create stationary that groups the all the child items sums up the quantities to the parent item. I want to hide the child items and sum up the total quantity to the father item code. This report can only focus on the INV1 since on the OITT and ITT1 table the child items can always be changed even though a transaction has been done against the BOM. Hence they cannot be relied on for historical data.
    The challenge is creating a grouping mechanism to group the related parent and child since there is no obvious like between the parent and child in INV1.
    Has any one ever come across this before ?

    Hi Julie,
      I have tried grouping using the tree type but it does'nt do much. The report goes off.  You may try this on an invoice and you will have an idea of what am talking off. In the INV1 field there isn't a relation to distinguish father and child of one BOM.
    Could you direct me to a systems report that does this ? I have'nt seen any so far.

  • Purchase reports for components of production BOM Based on Its Sales BOM

    Hi all
    I have sales BOM and the components of Sales BOM are production items having Production BOM and the components of production BOM are purchase items
    My problem is when i create a sales order for my Sales BOM, i should be able to get a report for purchase items that is how much i have to purchase with out using MRP
    pls anyone help me with approbriate queries
    Thanks and Regards
    Boopathi.T

    Hi Boopathi,
    You may try this one:
    SELECT Distinct T1.Code, SUM(T0.Quantity * T1.Quantity) 'PO Qty', T2.DocNum
    FROM dbo.RDR1 T0
    INNER JOIN dbo.OITT T3 ON T3.TreeType = 'S' AND T3.Code = T0.ItemCode
    INNER JOIN dbo.ITT1 T1 ON T1.Father = T3.Code
    INNER JOIN dbo.ORDR T2 ON T2.DocEntry = T0.DocEntry
    WHERE T2.DocNum LIKE '[%0\]%'
    GROUP BY T1.Code, T2.DocNum
    Thanks,
    Gordon

  • 3rd Part Dropship Scenario with Sales BOM

    Hi
    We have a 3rd Party Dropshipment scenario with Sales BOM with susequent Debit
    Characteristics of Sales BOM
    Sales BOM is created
    Header Material is Valuated but non-inventorised (Accounting and costing view should exist)
    Component Material is Valuated and inventorised
    In Sales order, Pricing is done at the header material not at the components level
    During Billing we get the COGS for the header material (cost coming from VPRS)
    No VPRS exist at component level instead we have copy of VPRS just to capture the value in COPA for our reporting
    Process
    1. Sales Order created with Sales BOM exploded in sales order.
    2. At the Item level Purchase requisition is created.
    3. PR for the components is converted to PO
    4. Vendor Delivers the components to Customer.
    5. Statistical GR done in our system.
    6. Invoicing is done in MIRO
    7. We directly do the Billing. Billing is created at header level. Revenue and COGS is reported at Header level only.
    We are stuck when we are doing the Subsequent Debit (can be for any unplanned cost). For Susequent Debit we are not able to report differential COPA at header level.
    Normally whenever you do subsequent debit in case of 3rd party dropship for normal material, COPA document automatically attached to Billing. This is happening because of the behaviour of VPRS condition type. In our case VPRS only exists at header level and not at component level but replenishment is for components. Subsequent debit is also happening at component level. We need it to be reported at header level.
    We need some solution to this.
    Please advise
    Regards
    Neeraj
    Edited by: NEERAJ BHARDWAJ on Dec 2, 2011 5:12 AM

    Hi Raj,
    Please clarified your requirement here, you mention that you wanted to valuated COGS at actual cost of PO? That sound more like actual costing here and what is the reason for this requirement?
    Is this MTO with variant configuration?
    If this is MTO with VC, Yes - we do cost Sales Order and here is the brief steps:-
    Price Control S
    a) Sales Order Creation - Normally when you save this will be costed and marked automatically. Note that condition type EK02 will represent the cost here
    b) Run MRP based on Sales Order requirement which resulting planned orders, PR, etc
    c) Convert PR-PO, Planned Order -> Production Order
    d) Confirmations, GR on PO which valuated according to the SCE Costing in step a)
    e) PGI will be based on the GR value on step d) which is also your SCE Costing
    f) Any variance between PO and SCE need to be settle.
    Thanks,
    Ong Yang Lim

  • Sales BOM distribute header cost to the subitems in the invoice

    Hi all,
    I have next BOM scenario in the invoice:
    Header Item   Sales Price: 0     Cost: 20
    Subitem 1      Sales Price: 20   Cost: 0
    Subitem 2      Sales Price: 20   Cost: 0
    I can't move up the Sales Price of the subitems, because they are relevant for the pricing and the invoice.
    I'd like to distribute the cost of the header item to their subitems.
    It's possible? Perhaps with a routine in the copy control or an alternative calculation type in the Princing Procedure?
    What I'd like to get is:
    Header Item   Sales Price: 0     Cost: 0
    Subitem 1      Sales Price: 20   Cost: 10
    Subitem 2      Sales Price: 20   Cost: 10
    Thanks in advance

    You can use <b>T.code: COOIS </b> if Product Costing has been configured for MTO scenario whcih gives the costing details.
    You can also use To.code: <b>KE30</b> if CO-PA implemented.
    but if you want to link with billing, Please search for any reports in Sales information system.
    One more you can create a ABAP Query Report using T.code: <b>SQVI</b>
    Regards,
    Anbu

  • Reconfigure sales BOM deletes line item and creates new line item

    We are having issue with Sales BOM. Once sales BOM is reconfigure, line item is automatically deleted and creates new line item. These changes are not captured by reporting tool. Is it standard SAP behavior? if its not standard behavior, how to fix this issue?

    Hi,
    If i am not wrong, i assume you are using site instead of plant.   If it is plant , then "yes", we can have a order with same material being line item 10 and 20 with different plants.  Reg delivery, if the plants are configured to a same shipping point then you will have one delievery.  if the plants are configured for a different shipping point , then delivery will be split up.
    Reward if it helps,
    Thanks & regards,
    CLN

  • SD - Sales BOM unusual business scenario

    Hi Experts,
    I would like to know is that possible that in SAP to create the the BOM highlevel (mother) material number with no quantity needed (this particular material number always zero qty)? which means that the BOM highlevel material number used as a dummy material code for reporting purposes.
    1) created a sales BOM with material A and child materials are A1 and A2
    2) MM master MM01 already maintained item category to ERLA
    3) VA01 sales order creation BOM able to explode
    4) highlevel(mother A) line item with material number shown BUT without qty in order qty column.
    5) 2 sub items (child - A1 and A2) exploded A1 - order is qty 1 and A2 - order qty is 1
    6) SO document SAVED. SO number #123 created.
    7) VL01N with reference to the SO number #123.
    8) PGI done ,able to issue A1 and A2 respectively reduce the inventory with qty 1 each.
    Vice versa for return sales order
    1) user return the material A entered in SO. (regardless of return partial A1 only or A2 only / fully return A1 and A2 ) SO must able to be created #987.
    2) VL01N with reference to the RSO #987. Based on partial or full return, the inventory increase is based on sub item(child level - A1 / A2), the high item is ZERO.
    3) If child level sub item A1 return qty 1 then system increase the A1 qty balance.
    Thank you.
    Regards,
    Yong Kok Wah

    Hi Yong
    As you discribed scenario for BOM and returns.
    It is possible
    Create sales order BOM & explode in sales order
    Carry delivery & invoice creation.
    Now take this materials return.
    If any quiry revert back.
    Kapil

  • ODeliveryNotes serial nbr error when using sales BoM with DI server

    Hi all,
    we're trying to create a delivery note with DI server for items managed by serial number and sales bom.
    This is a sample xml:
    <?xml version="1.0" encoding="utf-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
    <SessionID>F6166595-C4E0-4B5E-B44C-85CB04FAA0C9</SessionID>
    </env:Header>
    <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="ConsegnaOpen">
    <BOM>
    <BO>
    <AdmInfo>
    <Object>oDeliveryNotes</Object>
    </AdmInfo>
    <Documents>
    <row>
    <CardCode>C9999</CardCode>
    </row>
    </Documents>
    <Document_Lines>
    <row>
    <ItemCode>S610STW-220</ItemCode>
    <Quantity>220</Quantity>
    </row>
    </Document_Lines>
    <SerialNumbers>
    <row>
    <InternalSerialNumber>AD00003</InternalSerialNumber>
    <SystemSerialNumber>3</SystemSerialNumber>
    <BaseLineNumber>1</BaseLineNumber>
    </row>
    </SerialNumbers>
    </BO>
    </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    And this is the returned error: "You should use existing serial/batch numbers for this document type [(----) 29-51]"
    Any idea why?
    Thanks
    Fabio

    Hello Fabio,
    I have tested your problem with DI API, and I got the same error you have.
    This is an uncovered system functionality or system limitation
    Report this issue to SAP Support.
    My DI API COde
    Dim oDN As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oDeliveryNotes)
            oDN.CardCode = "1013"
            oDN.DocDate = Date.Today()
            oDN.DocDueDate = Date.Today()
            oDN.VatDate = Date.Today()
            oDN.TaxDate = Date.Today()
            oDN.Lines.SetCurrentLine(0)
            oDN.Lines.ItemCode = "TBOM"
            oDN.Lines.WarehouseCode = "2"
            'oDN.Lines.SetCurrentLine(2)
            oDN.Lines.SerialNumbers.SetCurrentLine(0)
            oDN.Lines.SerialNumbers.ManufacturerSerialNumber = "1"
            oDN.Lines.SerialNumbers.InternalSerialNumber = "1"
            oDN.Lines.SerialNumbers.SystemSerialNumber = "1"
            oDN.SaveXML("c:TEMPDNWITHBOOM.xml")
            If oDN.Add <> 0 Then
                sbo_application.MessageBox(oCompany.GetLastErrorDescription)
            End If
    Where TBOM is a sales kit, for 12 peices, components TNM item no serial number 12 peice, TSN item using serial number 1 piece.
    Sales Factor 1 for TBOM is 12 piece
    This sample code results the same issue you hev reported.
    Edited by: János Nagy on Apr 14, 2010 4:49 PM

  • Sales BOM stock query

    Hello,
    I' am looking for a query wich gives me a report of the sales bom item with the total amount of stock of the salesbom item with the child items underneath it.
    Thanks
    Mark

    Sales BOM is not a stock item.  Therefore, there is no logic to count the Sales BOM stock.  However, if you like to know the virtual quantity of those quantities, you could try query like this:
    Select t1.Father, min(t2.onhand) 'On Hand'
    from dbo.oitt t0
    inner join dbo.itt1 t1 on t1.father = t0.code
    inner join dbo.oitm t2 on t2.itemcode = t1.code
    where t0.TreeType = 's' and t0.code like '[%0\]'
    group by t1.father
    Thanks,
    Gordon

  • Sales Order - Sales BOM Items To Parent Item Link

    I'm using sales boms and as you know, when a parent item is brought into a sales order, all the bom components are also are brought on the order (rdr1.treetype = 'I') and the component quantites are automatically adjusted when the parent item quantity changes. Works rather well.
    I'm trying to find  out which table.field holds the quantity per of the component to the parent and how the components are linked to the parent on the sales order. Meaning how does the system know to change the component quantities so quickly. Especially if there are 3-4 sales kit parent items and some of the components are common between the two?
    The real reason I need to know is that i'm trying to great a report that shows the sales kit parent item and all of it's components, with the components showing the quantity per kit.
    Thanks all.

    Hi,
    The details regarding the Parent Item and the
    Components which are part of the Parent Item
    in BOM can be obtained from table ITT1.
    The following fields can be taken from the table :
    Parent Item
    Component Element Number
    Component Item
    Quantity
    Cheers~
    Jitin

  • Delivery of Sales BOM Item

    Hi All,
    We are creating automatic delivery from Sales Order.Items in sales order is Sales BOM.quantity is calulated based on sales factors of item.,but when we change the quantity on sales order ,SAP automatically sets the factor values to 1.
    we are getting factors from item master on delivery document,but it is updatinng the quantity of parent item only i.e not updating the child item quantity.
    suppose parent item quantity i set to 5 it still show child item quantity as 1 on delivery.
    how to do this,
    thanks,
    neetu

    This is the bug in SAP B1,reported to SAP and will be fixed in future versions

  • Report on Sales Orders Cancelled

    Dear Experts,
    I have the following TWO Requirements.
    1) How to cancel Sales Orders.
    2) How to Generate a Report  on Sales Orders Cancelled during a given time. The details required in the Report are:
    Orders cancelled by an User, Depot and by the Region.
    Creation date of sale order.
    Cancellation date.
    Kindly give us your Detailed & Valuable solutions to proceed.
    Regards
    Hari

    Hi Lakshmipathi,
    I have been going through various Threads Posted in the Forum.
    In One of your Replies to a Question Posted "Re: Deletion indicator of sales order" the Solution given is "Execute TCode AUT10."
    When I had tried with the Transaction Code AUT10 on the SAP System, No Data is populated on the Screen. Any settings to be done on the System.
    You can suggest a possible solution to the Issue posted by me.
    Regards
    hari

  • Centralised Report for Sales/Purchase

    Hi guys,
    One of my client needs a Centralised report for Sales & Purchase for a particular period .
    Like we are mainting multiple taxcodes  like
    BED,eCess,HeCEss,
    VAT 4,VAT 2,VAT12.5,
    VAT10.3,TAXEXEMPTED,ETC...
    So every month they need to know total sales and purchase value in a single report to be displayed respective of each tax code
    lie
    Taxcode 1 = tax Value1,total value
    Taxcode 2 = tax value 2,total value
    Total Sales value = Sum of all tax values, sum of total values
    Total Purchase value = Sum of all tax values, sum of total values
    And  needs Item Wise Sales For Each customer.
    I tried in system defined Sales and Purchase analysis report but our client needs the above type of report..
    Pls give us some solution for this..
    Regards,
    Vams

    Hi VamSam......
    Try the below query for purchase details alongwith tax amt.....
    SELECT T0.[DocNum], T0.[DocDate], T0.NumAtCard As 'Bill No.', T0.[CardName], T1.[Dscription], T1.[Quantity], T1.Price As 'Rate', T1.[LineTotal] As 'Value', T0.[DocTotal] As 'Total Value', (ISNULL((SELECT SUM(T2.QUANTITY) FROM rpc1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetQTY, (ISNULL((SELECT SUM(T2.LineTotal) FROM RPC1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetValue, (isnull((SELECT SUM((case when upper(t4.STACode) like 'BED%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ExciseDuty,
         (isnull((SELECT SUM((case when upper(t4.STACode) like 'eCess%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ECess,
         (isnull((SELECT SUM((case when upper(t4.STACode) like 'hes%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) HEdCess, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'VAT12.5',
    (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT4, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT2, (isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST2',
    (isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST4', T2.TransCat As 'Form No.'  FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH12 T2 ON T0.DocEntry = T2.DocEntry WHERE (T0.[DocDate]>='[%0]' and T0.[DocDate]<='[%1]')
    Regards,
    Rahul

  • Crystal Report for Sales, Delivery and Payment.

    Hi Guys,
    Need some expert advice over here. Currently, our sales team are using 3 separate report, one report on sales per month for each specific customers, one report on delivered amount per month for specific customers again and the last one report on payment received per month for specific customers as well.
    We have the idea of joining this 3 report so that I can report on sales, delivery and payment all at once so that they can see the trend better. However, after trying for quite a few times, we fail to create a common joining between ORDR, ODLN and ORCT. Is there any possible way to work something out ?
    I have thought of using subreport, but I just cant find the way to plug in the figure correctly.
    Need some advice over there.
    Thank you.
    Best Regards,
    Alex

    Based on what you have told me, then you should then join Sales Order, Delivery, Invoice and Incoming Payments into one.
    The reason I say Invoice table also is because, you cannot directly link Delivery and Incoming Payments window.
    Also you it is not enough that you link the ORDR, ODLN and ORCT, you will need to get the details from RDR1 and DLN1.
    In SAP Business One, each line in SAP Business One can have a different Delivery documnet.
    The TrgetEntry, TargetType will give you this information. For example, if a line for Sales Order has TargetType 15, then TrgetEntry will be the DocEntry in the ODLN. But if it TargetType is 13 it means the Sales order was converted directly to and Invoice and bypassed the creation of Delivery step, which is possible in SAP.
    So here is how I think you will need to link Sales order and Delivery
    RDR1.TrgetEntry INNER JOIN DLN1.DocEntry AND
    RDR1.TargetType INNER JOIN DLN1.ObjType AND
    RDR1.LineNum INNER JOIN DLN1.BaseLine
    Now this could get a little more complicated if you do partial deliveries. For example if a line in your Sales Order has say 10 items and 6 of them are delivered using Delivery Note 123 and the remaining are delivered using Delivery Note 124, then the join will give you 2 different lines.
    So basically you will need to link the tables in this fashion
    ORDR <-> RDR1 <-> DLN1 <-> INV1 <-> RCT2 <-> ORCT
    Unfortunately, this linking process can get complicated if you do not follow certain steps, like for example if you do not create a Delivery Note and converted your Sales order to Invoice. Then the link would be
    ORDR <-> RDR1 <-> INV1 <-> RCT2 <-> ORCT
    I hope I didn't confuse you.
    Krishnan

Maybe you are looking for