Regarding fetching a BOM's top level material

Hi friends,
We have a requirement wherein we are supposed to fetch the top most level material of a component. I am aware that to do the reverse process i.e. to find the component BOMs for a material we have the FM "CS_BOM_EXPL_MAT_V2".
But here our input is the component number and its corresponding plant. For this component we need to fetch the top most level material by looping at stpo and mast tables.
Also I would like to know if there is a direct function module available to get the top most level materials.
If anybody has worked on this logic/requirement before kindly provide your valuable inputs.
Thank you all in advance.
Regards,
Gayathri N.

Hai Gayathri
Check the following Links
BOM Explosion
/people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap
BOM
http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm
http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
http://www.sap-basis-abap.com/sappp007.htm
Thanks  regards
Sreenivasulu P

Similar Messages

  • How to get first level BOM material if I know 4th level material code only?

    Dear all,
    I have 4th level BOM material only. How to find first level ( finish material) BOM material ?
    We can find bottom level material easily through CS11 if we know top level material.
    But how to find top material if we don't know ? we know only bottom most material.........
    Thanks....

    Kishore,
    Multiple runs of "CS15" will help you.
    Regards,
    Prasobh

  • FM to fetch the BOMs

    Hi ,
    I have requirement to fetch the BOMs for a particular material, plant, BOM usage, date range(valid from and valid to date), change number combination. I am using the FM CSAP_MAT_BOM_READ where i am able to give the above conditions but it is not considering the date range.
    Is there any other FM which i can use with these conditions???
    Regards,
    Shobana.K

    Hi Shobhana,
    CSAP_MAT_BOM_READ
    You can use this function module to display simple material BOMs. You cannot display BOM groups (for example, all variants of a variant BOM). as in transaction CS03. Current restrictions: You cannot display long texts. You cannot display sub-items. You cannot display classification data of BOM items for batches. You can only display one alternative or variant. You cannot enter an alternative for module CSAP_MAT_BOM_READ, so you always see alternative 01. The following example came from a posting on the SAP-R3-L mailing list.
    For Example.
    data: begin of tstk2 occurs 0.
              include structure stko_api02.
    data: end of tstk2.
    data: begin of tstp2 occurs 0.
              include structure stpo_api02.
    data: end of tstp2.
    data: begin of tdep_data occurs 0.
             include structure csdep_data.
    data: end of tdep_data.
    data: begin of tdep_descr occurs 0.
             include structure csdep_descr.
    data: end of tdep_descr.
    data: begin of tdep_source occurs 0.
             include structure csdep_source.
    data: end of tdep_source.
    data: begin of tdep_order occurs 0.
             include structure csdep_order.
    data: end of tdep_order.
    data: begin of tdep_doc occurs 0.
             include structure csdep_doc.
    data: end of tdep_doc.
    data: flg_warning like capiflag-flwarning.
       call function 'CSAP_MAT_BOM_READ'
            exporting
                 material   = 'MAT100'
                 plant      = '0001'
                 bom_usage  = '1'
                 valid_from = '20.12.1996'
               valid_to
            importing
                 fl_warning = flg_warning
            tables
                 t_stko       = tstk2
                 t_stpo       = tstp2
                 t_dep_data   = tdep_data
                 t_dep_descr  = tdep_descr
                 t_dep_source = tdep_source
                 t_dep_order  = tdep_order
                 t_dep_doc    = tdep_doc
            exceptions
                 error      = 1.
    Regards,
    Amit.

  • Dependent requirements for Top level materials planned in MRP

    Hey Gurus,
    A top level material 20350 has a component 30397 and both of these materials are planned in APO.  We have another top level material 30399 (but this material is planned in MRP) and the component 30397 (is planned in APO) will the dependent requirements from material 30399 be populated in APO for material 30397?
    Sincerely,
    Kris

    Kris
    As Datta has mentioned the dependent demand will not reflect for the component material in APO. We had the same scenario as yours and this is what we did
    We modified the Planned order integration model filter criteria by adding custom logic in the BAdI CIF_INT_MODEL. The logic was to query the BOM tables in R/3 and find out all parents that have SNP relevant materials as components and include these parents in the list of materials for which planned orders are to be CIF'ed from R/3 . The BAdI will be invoked when you run the IM generation .
    You also have to CIF the BOM to APO . Once the PDS and planned orders are available in APO , the dependent demand will be created automatically. ( If you do not want to modify the BAdI then you can write a query and identify the parents and add them to the integration model manually)
    Thanks
    Saradha

  • Budget Control at top level WBS only

    Hello All,
    I have a requirement from client where I need to activate the Budget control (90% warning and 100% error). I have done the setting accordingly.
    Now the scenario is such that when client is doing budgeting, they are allocating the budget only at top level WBS (they have a different legacy, where they are doing there detail planning n budgeting, but since they want the feature of budget control in PS, they will do minimal budgeting in PS). As per my settings when I budget top level WBS and save the availabity control is activated (with no budget on lower level WBS). Now when I try to do some postings/or assign that WBS to PO, even with a value of 1 USD, i am getting an error of budget exceeded, which is fine as per the settings as that WBS is having 0 budget.
    The requirement from client side is such that they want AVAC to be activated only at top WBS and do postings to lower WBS. But if the total of lower WBS exceed the budget of top WBS, they should get an warning or error. For example:
    WBS level  BUDGET ACTUALS
      1               100
      2                              50
      2                              50
    so as soon as the actuals touch 100, the system should give an error/warning. Note that the 2nd level WBS are not budgeted in SAP, so budget is 0 on them.
    I have 2 questions:
    1.Is it possible to activate AVAC only for top WBS ?(without any enhancement/development)
    2.How the AVAC will work, if the total of 2nd level WBS exceeds the budget of top WBS (as explained in example above)?
    Awating your replies.
    Thanks
    Sarang

    Thanks Virendra, it was useful.
    I tried other way round also i.e. by not marking the release tab in OPS9 and activating AVAC in CJ30.It works in that way too.
    For my other question, regarding activating AVAC only at top level, we can achiebve that by using transaction control in user status.
    Thanks
    Sarang

  • How to know the parent material in BOM  if we know the last level material

    Dear all,
    We have around 40000 material codes with 18 digits. We can't remember all these. If we know the material code, we can easily find out sublevel or downlevel material by CS03,CS11 ,.....
    But if we know the material code , how to find upper level material code in BOM ?
    How to know the parent material in BOM  if we know the last level material ?
    Pl' answer.

    Hi Kishore,
    Have u tried with report CS15.  Give last Level Material  ->goto nect Screen->select "Multi level " check box then excute.
    it will give All Parent material of Last material, u can indentify with BOM level NO.
    regards
    pradeep

  • Fetch Top level WBS elements for delivery type LP

    Hi everyone,
    we are working on a delivery analysis report and we are in progress of fetching sales order number for deliveries with delivery type LP.
    How we are doing?
    so we are fetch the UP values from PRHI table for the wbs elements in LIPS.
    Now we need to fetching the top level wbs elements from PRHI table by passing the UP values to the same table until the UP field value becomes initial.
    Then fetching the corresponding sales orders from the VMPA table for the wbs elements from PRHI table for the value of corresponding UP field is initial.
    So it is going through so many iteration to fetch the UP value again and again until it is initial.
    What we need?
    So if someone can suggest a FM or method to fetch the top level WBS element for the given WBS element from LIPS table will be of great help.

    Hi,
    Try FM
    'BBP_PS_PROJECT_GET_LIST
    'BAPI_PROJECT_GETINFO

  • How do we fetch the top-level users and groups for a particular resource

    Hi Experts,
    I need to fetch the top level users and groups (permissions) for a particular resource, Currently i am able to fetch the effective users list.
    Thanks.

    To elaborate...
    Here we need the users and groups who have direct access to the resource. We dont want to resolve groups.
    Please help us with the apis to use in our java code to fetch the users and groups.

  • Inactive component cost not rolled up to top level item

    Hi
    Our scenario is as follows: we have a top level item with a BOM. And some components of the BOM  are having material status u2018inactiveu2019. Inactive means materials will not procured and sold, however we could have inventory which can be consumed in production of other materials. In other words inactive items are like old items. These inactive items already have costing value. And we donu2019t want to recost inactive items.
    Having described above scenario, the requirement here is when we run costing for top level item, system should take costing value of inactive items  and roll up into top level item costing which is NOT happening now. Client donu2019t want to recost inactive items. The reason for not recosting inactive items is the recosting could change cost of inactive items significantly.  We are using 4.7 version and standard costing.
    Would appreciate any ideas or suggestions in this regard.
    thanx
    Sunil

    Thanks Young for the reply. 
    We already set 'do not cost' indicator for inactive components. And these inactive components do have standard costs valid up 10 12/31/2999.  It seems bom explosion is excluding these materials. it is ok to exclude. However the existing standard cost of these inactive components did not roll up in to top level. when I checked the costing status log, it says material ABCDF123 in plant 3344 has material status 40: Inactive.
    I checked BOM as well and inactive component is flagged as 'relevant for costing'.
    We are using following valuation varaiant
        Strategy Sequence ->  1. Planned Price 1    2.Standard Cost
        Transfer Control - Complete Transfer
    thnx

  • Bom Explosion first level, if first level having phanthom it has to explode

    Dear All,
    Kindly tell any function module is available for BOM explosion first level.
    if first level having any sub assembly part, bom not to explode below level.
    if first level having any phanthom material, it has to explode below level, in this phanthom material having any below phanthom material part of bom, it also explode below level.
    it means only phanthom material has explode below level, no sub assembly part.
    If any functional module is available for this bom explosion.
    i tried functional module - CS_BOM_EXPL_MAT_V2, but if i put "X" in field  - MEHRS, sub assembly part also exploding below level.
    kindly help on this.
    Regards,
    sakthi

    Hi,
    i tried functional module - CS_BOM_EXPL_MAT_V2, but if i put "X" in field - MEHRS, sub assembly part also exploding below level.
    Ans: Do not set this MEHRS indicator. This will explode the BOM to first level.
    Then add another loop on first level materials to check if any of them is phantom and explode the phantoms using same FM module in a loop. Follow this until all are done.
    Regards,
    Santosh Sarda

  • How to get bom application for a material

    hi abapers
              how can we get the bom application for a particular material.
              suggest me a suitable tables.
              thanks in advance.
    Regards
    Rajaram

    Hi,
    for BOM related tables are MAST+STPO.
    and for 1 st case
    Use the report CS15 - Where Used List: Material in BOM
    Give the material number for which you want to find where it is used.
    In the Type of Where Used List Check the Direct checkbox,
    and in Used in Check the Material BOM,
    Then Click on the Next Screen button available on the Top left cornerof the screen.
    Then in the next screen give the plant number and execute.
    This gives you the report of where ever this material is used.
    Regards
    Message was edited by:
            skk

  • Unable to set a top-level property object

    Hey guys
    I've made a little sequence to fetch data from a XML file. In that XML file, there is some informations (entries) (IP addresses, port numbers, etc) about 4 different types of devices(sections are the devices names). The first section of the XML tells me the NAMES of the devices I have to configure. The type of each device is located in the entries of each device. Each device has its own information and I can have more than one device of a type. In teststand, I've created custom data types (containers with empty fields) for each type of device I need.
    I want to dynamically create the devices that the XML file tells me to configure as fileglobal variables and populate them with their own config informations (entries of the XML file). I'm creating new fileglobal of the type I want using PropertyObject step and I'm creating an alias of that fileglobal that I'm passing in parameter to a subsequence who's getting infos from XML. Here, everything is OK.
    The problem occurs when I want to configure 2 or more objects of the same type. At the SetProperty step (where i'm creating the fileglobal variable) teststand gives me the error:
    "Unable to set a top-level property object to another object. Error accessing item 'Parameters.DeviceToInitStruct'."
    Is there any ways to avoid that problem and creating to variable of the same type ?
    thanks

    Hi
    I finally got rid of that problem.
    Instead of using a PropertyObject.Clone step, I used a statement who's just copy the "MasterObject" into a "CloneObject" and i'm working with that copy. So the sequence can now create devices of the same type without any conflict with the first device.
    i'll post here a short example to show how i did... maybe it'll be useful for someone...
    regards

  • A top level menu item should display its active state if any of its submenu items are active

    Example case: I'm designing a Muse site which is basically a portfolio of our work. We design books, doing page layout and covers. We have numerous book categories and sub categories which I put in a horizontal menu. When a given top level category menu item doesn't have a submenu, it is a hyperlink and it displays active state when the browser displays its linked page. But when a given page is displayed from a submenu link, its top level menu item does NOT display active state. I think it should.
    For example, we have a "Nostalgia" category which has "Film" and "TV" subcategories. Because the menu item, "Nostalgia" has a submenu containing "Film" and "TV", the label "Nostalgia" is not a hyperlink. The submenu attached to it has the two hyperlinked items "Film" and "TV". When the browser is displaying either linked page, the submenu is hidden. So it would be nice if the top level item, "Nostalgia" would display in an active state.

    Hello Daniel,
    As of now this feature is not there in Adobe Muse.
    I would suggest you to please log this as a feature request in our "Ideas for features in Adobe Muse" section. (http://forums.adobe.com/community/muse/ideas)
    Hope this helps.
    Regards,
    Sachin

  • Show a menu of roles in the Top Level Navigation

    Hello,
    Imagine a scenario where a user has many roles assigned to him (say 40 roles). In that case the user will have 40 tabs in the first level of the top level navigation and by default a horizontal scroller appears on the right part of the screen clicking on which the roles will scroll horizontally. If the user has to go to the 40th role he has to click quite a lot.
    Is it possible to have a menu option clciking on which we get the all the list of roles in the top level navigation in a vertical list and we can directly jump to any role clicking on the entry in the list ?
    Something like what we get in a tab strip in Web Dynpro.
    Thanks in advance for your valuable inputs.
    Sundeep
    Edited by: Sundeep Sethi on May 3, 2011 3:00 PM

    Hi,
    Yes it is possible to have menus as you wish .
    Look at the following links
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6066b302-09c8-2a10-a894-eb9fef30df85
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a1aea5-a2d1-2a10-c6bc-953bdadfdcb8?QuickLink=index&overridelayout=true
    You need to work on navigation tag libraries to extend number of levels .
    The above inks helps you only for single level of navigation.
    Regards
    Karthiheyan M

  • Top Level Navigation - Design bar borders

    SAP EP 6.0 SP9 on NW04
    We're using the top level navigation iview (TLN) out-of-the box and have configured the look and feel of TLN using the Theme Editor so that it follows the customer's corporate identity.
    However, we cannot remove the two white vertical borders around the design bar in top level navigation or change the color to the same color as the top level navigation. It is only possible for us to change the background color of the design bar but not the color of the design bar border. The marketing department thinks this is a huge issue, which must be fixed.
    We're almost certain that the problem cannot be solved by configuring the Theme Editor.
    Does anybody know whether it is easy to modify the code or css files to change the white borders of the design bar? Any idea of what is the best approach?
    Best regards
    Peter
    Can

    Hi,
    I have similar problem but there is no "Display of Design Bar Container" option in the Top Level Navigation section of the Theme editor.
    Thanks,
    MM

Maybe you are looking for

  • Excel automatically create .tmp file when open after close Excel, tmp file still there

    Anytime I save a change to one of my Excel files, the TMP file appears in the destination folder and remains.  The "main" Excel file saves the retains the changes that I made and after each subsequent change, a new TMP file is created...old TMP files

  • How do I transfer my iTunes library from old Vista computer to new Windows 8

    How do I transfer my iTunes library from an old vista PC to new Windows 8 computer, can I utilise my I pod 160Gb classic, any help would be appreciated.

  • Adobe flash player download error.

    Hello everyone. when i try to dowload adobe flash player from this site http://get.adobe.com/flashplayer/ it just goes to 0% and freeze nothing happens. is anyone else having same issue? what is the reason? thanks,

  • CR - Trial Balance creation

    Hi Experts I am wanting to create a Trial Balance in Crystal Reports, the Standard SAP Business One report will not fulfill the requirement, the same goes if I create one through the Financial Report Templates. The Trial Balance will be based off all

  • Guitar is recognised by Logic but there is no sound.

    I have a MacBook Air (I know). I'm using a thunderbolt to firewire adaptor to connect my Apogee Duet audio interface to the MacBoo\\\ The midi keyboard works and the sound is all working perfectly. However, When I try to record my guitar there is abs