SSRS Recursive Hierarchy for Bill of Material

OK, here we go. I have been absolutely unable to find an answer anywhere after extensive searching so I will ask this here.
First of all, I am trying to create an SSRS report for a Bill of Materials (product structure) with parent child recursive grouping to enable drill down to multiple levels. For the most part, I have achieved the goal of doing this with a proper CTE stored
procedure and including a parent recursive reference to the Child group. Here is my result set of the CTE and the grouping settings:
This produces a very pretty report that allows for drill down to levels with indents and levels and everything! Just one problem..... By grouping on the Component to get the recursive technology to work, the result set of my CTE which has 37 rows gets truncated
down to 32 due to multiple rows getting merged because part numbers can be the same while used on more than one part. In this case, see rows 30 and 34. The child (component) is PLA331. Because they are the same part number but used with different parents,
one of them gets eliminated and the result of my report looks like this:
PLA331 should be listed under SA-0482 but it is not due to the grouping of the part PLA331. How do I get all of the results to display even if I am grouping on the component? I have tried removing 'Hide Duplicates' and it does nothing.
BOMs are a very important part of a business so I am actually quite shocked that I am the only one having this structure issue. Perhaps everybody else doesn't have the same part listed on multiple levels of a BOM? Or a lot of people THINK they have the correct
BOM structure but are unaware of this little problem?
Thanks,
Sayslah

Hi Sayslah,
Based on your description, I create a similar report in my test environment. However, I cannot reproduce the same issue as your post.
Please refer to the steps below to check if there is something different. I create a dataset with three fields: Component, Parent, Qty.
1. Add a table in the report body.
2. In the Row Group dialog box, add Parent Group: [Component].
3. Setting Component Group with Recursive parent: Component.
4. Add Qty field in the table.
You can refer to the screenshot below:
If there are any misunderstanding, please feel free to let me know.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support

Similar Messages

  • WEB ADI INTEGRATOR FOR Bill of Material

    I am developing a WEB ADI integrator for Bill of material upload. The integrator will populate the data in a temporary table, validate it & write the error messages back to the table . On succesful validation the data will be sent to interface tables & then to base table.
    The integrator uses a procedure & sends data to the procedure. Procedure then loads data in temporary table & does the rest of work.
    To do this i need to know the following thinngs:
    1. How i can track the line no of Excel?
    2. How do I know that all data are loaded in temporaray table because the validation & rest of work will be done once all the rows of excel are transfered to temporaray table. i.e. How do i determine the End of File in Excel?
    3. How do i write error messages from the table to the excel in web adi?
    Any help will be appreciated. Please send me the sample scripts & web adi developer guide at [email protected],[email protected]

    If you check the XML that Web ADI generates to upload a document you will note that each row gets a row number. It would be a matter of being able to keep track of that number in your table so that when you are reporting the error back you can include that number in the message so the code in the Excel spreadsheet can assign it to the correct row.
    I would suggest trying to use even some of the basic validation mechanisms provided within Web ADI, as these will automatically return the error messages for bad data to the correct row in the spreadsheet.
    Web ADI will take the uploaded data, perform any validation check defined within meta-data then push the data to your Interface table. There are plenty of examples in th shipped code of product teams then using the Import phase of the upload to perform additional checks and then push the data further. But if you can utilize the existing Web ADI functionality. The data never ends up in the table in the first place to require any clean up on your part.

  • Hide all the components in bill of material for all the transaction

    Hi experts
    I have requirement where my client does not want to share the bill of material details across the organisation. Hence they would not like to see bill of materials components details for particular set of materials.
    Also, when any material documents or any other related transctions are posted in those production order, they want that only authorized user should view those components of BOM.
    Please help me in this regards
    Let me know if my question is unclear.
    Thanks

    yes.. particular set means a group of materials but they do not have a common material group assigned to them in the material master.
    And as you mention, i need to do something in the mentioned transaction. How to do that..
    because there should not be any loop holes for any users to get the information to identify BOM.
    Regards

  • Production - Multiple Bills of Material for a FG Product

    Hi,
    In SAP B1 - It is not possible to create multiple Bills of Materials for a FG product.
    Is there any workaround to address this issue?
    At our location we have multiple alternative combinations of components which can be used to create the same FG product.
    One alternative is to create Special Production Orders (but with no BOM). Is there a better option?
    Regards
    Manish
    Edited by: Manish Chaturvedi on Apr 1, 2009 12:51 PM

    HI  Manish,
    Your Bill of material is dynamic so just try to solve this by alternative items(Raw Material). i hope it will work.
    But in SAP B1 standard there is no work arround. you have to change the BIll of material every time. or make one udf in the title level with the name version 1,2,3 ..... and save it in the system. and pick the BOM which you will needed at the time of Production.
    I hope it will solve your question.
    Ashish Gupte

  • Material block for Billing

    Hi
    I need to block material for billing..how to go ahead?
    i have tried with sales org1 (dis channl status/ ex dis chall status)
    system did not allow me sales . its perfect but when i create STN from STO(UB/ LU) system did not allow me for NL delivery.
    but we want only sales part should be blocked.
    even i tried with MRP1 (Plant status) and MM06
    but system did not support me towards our requirement.
    Kindly revert  with required solution..
    Thanks in advance
    MK

    Hi,
    Use listing/Exlusion- option
    With exclusion we have standard table to use- combination with Sales org/Material or plant and material etc.
    Thanks
    Chidambaram

  • Share material for *Billing & invoicing & Device management*

    Hi Experts,
    Could you please share some material for Billing & invoicing & Device management(covering functional & technical both) for SAP-ISU ?
    Any book specially covering SAP-ISU above mentioned modules,which publication and from where I can place the order for the same.
    Thanks in advance!!!
    Warm Regards,
    Abhishek

    http://www.sapebooks.com/info/is-utility/sap-is-utility-billing-end-user-document-set/
    http://www.sapebooks.com/cms/Configuration-Documents/IS-Utility-Billing-and-Device-Management-Configuration-Document.html
    Please go through this link
    This will be helpful!
    Regards,
    Prajakta
    Edited by: Prajakta Shringarpure on Jul 15, 2009 2:12 PM

  • C2 223 A valid bill of material could not be found for material 5089

    Hi Experts
    I have Production orders that use a phantom material 63955 with Std costing control.  This material uses three materials (5089,5233 & 5235) of moving average control.
    Material 63955 is a HALB and uses all the numbers 5089,5233 and 5235 which are ROH.
    With costing material 63955 with CK11N or CK40N, the error is
    C2223 A valid bill of material could not be found for material 5089 and the same for 5233 and 5235
    Diagnosis
    Material 5233 is marked as a phantom assembly. When the system tried to explode a valid bill of material for material 5233, it could not find one.
    System Response
    The system generates a normal reservation for 5233.
    Procedure
    Check the bill of material for material 5233
    The 5* numbers do not have a bill of material and are purchased externally.
    What must I do now please?  These materials cannot be costed.
    Kind regards
    Dawn

    Hi..
    You  check whether material 5233 have procurement type ‘E’ or ‘X’ and
    special procurement type ‘50’ in MRP2 view of Material master.
    Material 5233 with the above conditions is Phantom assembly.
    If Material 5233 is material master for external purchasing, Material 5233
    should have procurement type ‘F’ and special procurement type  space.

  • A valid bill of material could not be found for material

    Hi,
    Our's is SAP release 605. While doing sales order cost estimate (CK51N) we are getting following error message:
    A valid bill of material could not be found for material 1000000012
    Message no. C2223
    Diagnosis
    Material 1000000012 is marked as a phantom assembly. When the system tried to explode a valid bill of material for material 1000000012, it could not find one.
    System Response
    The system generates a normal reservation for 1000000012.
    Procedure
    Check the bill of material for material 1000000012.
    We have checked BOM and everything seems correct. please suggest where I am doing mistake.
    Regards,
    Bijay

    Dear Bijay kumar,
    Material 1000000012 is marked as a phantom assembly,so it must be set with a procurement Type E and special procurement
    type 50 in the MRP2 view of the material master or else at BOM level.So as a standard behaviour the system is expecting a
    BOM for the phantom assembly 1000000012.Check in T.Code CS03 whether you are able to find the BOM components for this
    material 1000000012.If BOM is not found means you have to create a BOM for this pahantom assembly because during the GI
    for the main assembly/product the system consumes the components of the pahantom assembly and not the phantom assembly
    (as in general there wont be any stock maintained for this material 1000000012).
    So check with this and revert back.
    Regards
    Mangalraj.S

  • Is it possible to find out Available-To-Promise for Sales Bill of Material?

    Hi Forum,
    Items in Sales BOM are not inventory. How could we answer a sales call for how many can be delivered?
    Available to Promise works only for inventoried items (right?). So how could be know how many Sales BOM's cold be delivered?
    Does MRP work for how many can be sold immediately by looking into inventories BOM items?
    I am also testing, but any suggestions welcome please. Thank you.

    Hi,
    You probably need a query report to produce what you need. Sales Bill of Material is only a name to represent the bundles of inventory items. The answers rely on those components directly.
    Thanks,
    Gordon

  • Hierarchy for material types does not exist

    Hi,
    I am doing an intial configuration in SRM 7.0 we have actvated extended classic and PPS activated.
    In the first level of configuration ai heve set up the logical systems and the system landscape.
    when i am in R3AS
    DNL_CUST_BASIS3
    DNL_CUST_PROD0
    DNL_CUST_PROD1
    DNL_CUST_SRVMAS
    the above objects wre green when i executed
    For the object MATERIAL
    I am getting an error
    Hierarchy for material types does not exist
    Message no. COM_PRODUCT_API000
    Diagnosis
    Before materials are imported from the ERP system, the material types from the ERP system must exist as categories in CRM/EBP. When the Customizing object DNL_CUST_PROD1 is imported, the material types are imported automatically and created under the category MAT in the category hierarchy R3PRODSTYP (product subtype).
    Procedure
    Check whether the ERP system material types have been imported successfully and exist as categories.
    Proceed
    If necessary, import the Customizing object DNL_CUST_PROD1.
    Kindly guide me

    Hi,
    It looks you have not configured the middleware basic settings. Queue should be registered in SMQR transaction.
    Please follow the configuration guides in SAP Solution Manager or offline downloaded version in SAP Service Marketplace.
    http://service.sap.com/srm-inst
    Regards,
    Masa

  • End Routine to populate custom AFS field for Billing Item extractor

    I have the following scenario for Billing 2LIS_13_VDITM datasource
    Doc_No   Item  Material    Item_Categ   AFS_field
    2000        11     XYZ          123
    2000        12     XYZ          123                  US1
    3000        11     PQR          456                 
    3000        12     PQR          456                  CA1
    I need to populate the AFS_field in the first row also for all Doc Nos for certain Item categories (eg 123 & 456). I need to do this on the first transformation from PSA to DSO. I was planning to write a SELECT statement in the Start Routine with the PSA table as the reference as seen below and then write an End Routine calling this reference table. But the PSA table name is different in Dev, QA and Prod so I cannot use this.
    TYPES: BEGIN OF S_AFS,
    VBELN TYPE C LENGTH 10,
    PSTYV TYPE C LENGTH 4,
    MATNR TYPE C LENGTH 18,
    J_4KRCAT TYPE C LENGTH 16,
    J_4KSCAT TYPE C LENGTH 16,
    END OF S_AFS.
    DATA: LT_AFS TYPE STANDARD TABLE OF S_AFS,
          LS_AFS TYPE S_AFS.
    DATA: LT_DATA TYPE tyt_SC_1.
    LT_DATA[] = SOURCE_PACKAGE[].
    SORT LT_DATA DESCENDING BY VBELN MATNR J_4KRCAT.
    DELETE ADJACENT DUPLICATES FROM LT_DATA COMPARING VBELN MATNR.
    SELECT VBELN MATNR J_4KRCAT J_4KSCAT
    INTO CORRESPONDING FIELDS OF TABLE LT_AFS
    FROM /BIC/B0000777001
    FOR ALL ENTRIES IN LT_DATA WHERE VBELN = LT_DATA-VBELN AND MATNR =
    LT_DATA-MATNR.
    SORT LT_AFS BY VBELN MATNR.
    I am not an expert in writing ABAP code. Any suggestions are greatly appreciated and points will be assigned. Thank you.

    Hi
    why do want to select the data from PSA table ?Already your trying to load data from PSA to DSO.
    you want to populate the AFS field value in DSO right?
    1. First you have to add AFS field in ur DSO
    2. Write the Start routine based on ur scenario(select the data based on ur scenario and put into internal table).
    3. wirte AFS field leval  transfer routine(Read the corresponding record based on docu num,item num) pass into RESULT.
    Regards,
    GR

  • How to create BOM(Bill Of Material) item data from flat file?

    I have two flat files one is BOM(Bill Of Material) header data and BOM item data. BOM header is already created, now I want to create BOM item data with reference to the header data. Is there any standard direct batch input method in LSMW or Is there any standard BAPI or Is there any standard BDC report program to do the task? CS01 is the TCode to create BOM.

    Hi,
    The DI program works for create step CS01 and not for CS02.
    Perhaps this ( adding items in header by Tx: CS02 ) could be achieved by a Recording step in LSMW.
    Best Regards, Murugesh

  • KE30 report for a Configerable material.

    Hi all!
    Our client uses KE30 report regularly. But for a particular material the report is not giving the kind of output that is required.
    The follwing is the sales process.
    The material whcih is configuable ( with Item category group 002 and Item category TAC ) has components with customised Item category (ZZAE which is not relevent for billing). So the main material is flowing into the invoice and the components are not flowing into the invoice and the KE30 report.  
    Inorder to flow the components into the KE30 report we tried making changes in the components Item category ( ZZAE- making it "billing relevent). But the invoice gets disturbed. Can some one help ?
    regards,
    vijay v

    Hi
    We have recently had the same kind of requests from areas of the business. I found the easiest way was to use SE16N with table MSEG (Material document item level). With the required selections I was able to export over 600,000 lines of data. I then added other tables if required (MAKT - Material description, etc)
    You will not be able to export as a spreadsheet so instead export to Local File / unconverted as a text file. Then you will be able to open it in Excel (if you have the latest version of Office)
    It really depends on what material movement data you actually need. As I mentioned we found 99% of the data we needed for a report in one data table
    Hope this helps
    Darren

  • How to Block Bill of material.

    Dear  Sirs,
    Following is the scenario.
    Some of our Bill of materials are Imported.  These BOM are exclusively procured to manufacture certain Finished Products.  
    I would like to know how these BOM can be blocked or  how i can block the issue of these BOM other than those fixed to manufacture Finished produces.
    FOR EXAMPLE  : FINISHED PRODUCT CODE   : FG1234
                                BILL OF MATERIAL              : RMXYZ
    The above BOM is exclusively imported to manufacture FG1234.  This BOM may be used to manufacture other Finished products also,  but this should be allowed to Issue only for FG1234.  How to configure or should we have to changes in maerial master.
    Thanks in advance.

    These BOM are exclusively procured to manufacture certain Finished Products.
    If you use MTO, then it is possible.
    The above BOM is exclusively imported to manufacture FG1234. This BOM may be used to manufacture other Finished products also, but this should be allowed to Issue only for FG1234. How to configure or should we have to changes in maerial master.
    If you are using  MTO Scenario, then you can achieve your requirement.
    If you are using MTS Scenario, Then create a separate material code for each BOM, So that You can avoid using the other production order.
    Edited by: Sundaresan . E. V on Mar 16, 2011 3:34 PM

  • Document is not relevant for billing

    Dear All,
    We are implementing ECC 6 in one of our client.
    Our client manufacturer of x finished product, they want monitor the production process through Project system and deliver should be through project system,
    We did the complete configuration from Production order till delivery in PS is working fine.
    But when we try to post billing document from the delivery document, the system is showing the following error,
    Document is not relevant for billing: LP is not relevant for F2.
    Our doubt is in this process, whether excise invoice will be generated or not?
    this LP is hard coded in SAP, We are unable to rectify the error,
    our GO-LIVE date is 1st March
    can any one help us to solve this issue?
    Thanks in advance
    regards
    Elango

    LP is not relevant for F2
    What is LP ??  Is it Delivery type or Item Category ??  Nevertheless, copy control is missing in VTFL.
    whether excise invoice will be generated or not?
    If physical material movement is there from a manufacturing plant to outside, then definitely, you should generate an excise invoice
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • TS1538 My iPod isn't showing in itunes i have tried all the suggestions yet nothing is working

    The Windows 8 which I have recognizes that my iPod is connected however iTunes does not. I have tried all the things others have suggested as help guides but they are not  working or simply too complex to do myself. All I want to do is put more music

  • Photoshop CC 2014 and Indesign CC 2014 crash when printing

    Ever since I installed the CC 2014 versions of Indesign and Photoshop, I am absolutely incapable of printing. As soon as the print dialog comes up, the programs crash. (I don't have this issue with Illustrator CC 2014.) It's quite frustrating. Fortun

  • Problems with MySQL in Slave mode

    Hi erverybody!!! I have a problem with my IDM and mysql. This is my envioroment: I have installed one IDM and has a Database on Mysql. I have a DRP and i have other server of IDM an his database. The databases of mysql are replicated and are configur

  • UNICODE / non-UNICODE switch for interfaces ?

    Hello, after having migrated to UNICODE we face problems with file interfaces. Obviously, the output files are now in UNICODE format, because the other systems are no longer able to read them. How do we switch back the output format to single-byte mo

  • Exchange rate in service entry sheet

    Hi, Could someone tell me how the exchange rate gets determined in service entry sheet. I am facing a problem while doing ML81N. While doing so when I click on condition type, I see the exchange rate as INR to USD = 0.080, while for all the other ite