Supply Area-BOM Level by Level

Hi Folks,
I am having a problem in fetching the Supply area when a Component is having many sub-assemblies.
To be in detail,
I am fetching the  DISTINCT Production Order(AUFNR) from MSEG w.r.t to MBLNR and MJAHR.
Then w.r.t to this AUFNR I am fetching the BOM category(STLTY) and BOM (STLNR).
Then w.r.to this STLTY and STLNR I am fetching the Supply area(PRVBE).
If the supply area is maintained at this level,then fine.If this BOM is having many sub-Assemblies and the supply area is maintained at a different level then we need to explode that BOM step by step and fetch the Supply Area.
To be precise CS11 gives the Supply Area according to the BOM Level by Level.I just wanna fetch the Supply Area as per that.Do anyone here has an idea about how this functionality can be achieved.
I am trying to find by debugging CS11,any valuable inputs from experts here will be helpful.
Thanks,
K.Kiran.

Prabhu,
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
          EXPORTING
                CAPID                        = 'PI01'
                DATUV                       =  v_aufld
                MKTLS                       = 'X'
                MEHRS                      = 'X'
                MTNRV                      = wa_afko-plnbez
                STLAL                       = wa_afko-stlal
                STLAN                       = wa_afko-stlan
                STPST                       =  0
                SVWVO                     = 'X'
                WERKS                     = wa_afko-werks
                VRSVO                      = 'X'
            TABLES
                  stb                           = bom_exp
            EXCEPTIONS
                   ALT_NOT_FOUND               = 1
                   CALL_INVALID                    = 2
                   MATERIAL_NOT_FOUND     = 3
                   MISSING_AUTHORIZATION  = 4
                   NO_BOM_FOUND                = 5
                   NO_PLANT_DATA                = 6
                   NO_SUITABLE_BOM_FOUND      = 7
                   CONVERSION_ERROR               = 8
                   OTHERS                                     = 9.
Got it.We missed out DATUV,MEHRS fields while executing.
Thanks,
K.Kiran.

Similar Messages

  • Is there a way to "mix" the nodes and leaves of the tree so if they are at the same level, they will display in a specified order.

    Is there a way to "mix" the nodes and leaves of the tree so that even if they are at the same level (1,2,3...), they will display in a specified order (via sort sequence, alphabetical, etc.).
    History:
    We are using the Tree UI element to display/manage a material bom interface. We seem to be running into an issue with displaying the nodes/leaves of the tree.. regardless of the order that the context is built (which is currently the order of the exploded BOM from from CS_BOM_EXPL_MAT_V2), the bom is displayed with the nested boms at the top of each level and the single materials below them. For example. If  TK1 contains Material1, Material2, Material3, Kit1(containing component1, comp2, comp3), Material4, Kit2(containing comp4, comp5, comp6), and Material5 (in this order), the tree will display with the A level node as TK1, the next node as Kit1 (with its subleaves of comp1,comp2,comp3), Kit2(with subleaves of comp4,comp5,comp6), THEN Material1, material2, material3, material4, material5.  Our users are adamant about the items displaying in the correct order (which should be alphabetical based on the description for one report and by location for purposes of inventory for another). I've searched but not been able to locate a similar question. If I've missed it, please point me in the right direction. The users want the tree,  not a "tree" table.  This is our first attempt at the tree, so maybe we're missing something basic?
    TK1
    -Mat1
    -Mat2
    -Mat3
    -Kit1
    --Comp1
    --Comp2
    --Comp3
    -Mat4
    -Kit2
    --Comp4
    --comp5
    --comp6
    -Material5
    displays as
    TK1
    -Kit1
    --Comp1
    --Comp2
    --Comp3
    -Kit2
    --Comp4
    --Comp5
    --Comp6
    -Mat1
    -Mat2
    -Mat3
    -Mat4
    -Mat5

    co-workers said example picture is misleading.. we can make the order work if everything is a "folder" but not a mix of "folders" and "files" (if making a visual reference to the windows browser). i.e - a file is represented as an empty folder.
    TK1    
    . Mat1
    . Mat2
    . mat3
    > kit1   
    .. comp1
    .. comp2
    .. comp3
    . mat4
    > kit2
    .. comp4
    .. comp5
    .. comp6
    . mat5
    displays at
    TK1
    > kit1
    .. comp1
    .. comp2
    .. comp3
    > kit2
    .. comp4
    .. comp5
    .. comp6
    . mat1
    . mat2
    . mat3
    . mat4
    . mat5
    we can make it work if everything is a folder. This is our current workaround.
    TK1
    > mat1
    > mat2
    > mat3
    v kit1 (when expanded)
    .. comp1
    .. comp2
    .. comp3
    > mat4
    > kit2 (when not expanded)
    > mat5

  • Can PIR created at wbs element and MRP area of storage location level

    Hi,
    I tried to create an planned independent requirement at MRP area and WBS element level, but failed. The MRP area is not plant level, but storage location level.
    *When trying to create account assignment category Q for it, then there is an error message saying:*
    **only stock requirements are allowed when planning at MRP area level.**
    Does it mean it is not possible to create planned independent requirement for this case?
    Thanks!

    Select the "Issue storage location" as '2' here:
    spro -> production -> material requirement planning -> mrp groups -> overall maintenance of mrp groups -> overview -> mrp control parameters at material level -> (field) Issue storage location selection
    & make sure:
    1. In the BOM  issue storage location is blank for the components
    2. For the FG products , in mrp area prod.storage loc is maintained
    3. Components are extended to the mrp area.
    Pl. revert with the results

  • Adding alternate component in the same BOM for 2 level BOM setup

    Hello,
    I have a BOM with the following setups -
         BOM_A components are BOM_B, Comp_A1, Comp_A2
         BOM_B components are Comp_B1, Comp_B2
    The need is to have an a BOM with components Comp_B1, Comp_B2, Comp_C1. if I create this as an Alt of BOM_B, how can I use this alternate in BOM_A?
    Can anyone please let me know if there is a way to specify the alternate of BOM components in multi level BOM?
    Regards,
    Manju

    Hello Manju,
    Can you please specify the exact business requirement.
    Why this is required at BOM Level?
    If BOM_B (comp_B1,comp_B2 & comp_C1) is Alt. bom & WIP job completed using this Alt. BOM then syste will take care / consider valuation as per Alt. BOM for first level bom (BOM_A) WIP job.
    Thanks
    NS

  • 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

  • Valuation Area at Company Code level

    Hi,
    In what ideal business case/industry one should set valuation area at company code level when SAP recommends valuation area must be set at Plant level ? in other words..what is the practical purpose of Valuation area at company Code level?

    Hi
    Think that valuation area link with records in table MBEW. So, if you have a company with 3 plants, and you have a single valuation for all company, in 3 plants the valuation of materials are the same, with their implications in valuation of stock and valuation of margin in sales (remember that this value can flow -really, use to flow- to condition VPRS in SD, well see SAP Note 1365939 - VPRS logic and Customizing settings in SD and SAP Note 547570 - FAQ: VPRS in pricing for more details). If you do a valuation different by plant, stock and margin calculations are different.
    What are the elements that you must considerer?
    1. If the materials is purchased, think if the same material have different conditions (different conditions in MM, for instance, indirect costs as shipment costs, different vendor with meaningful differences in prices or discounts). It's indiferent that it is a raw material or a material that you can sell. The raw material will work in product costing as an item in BOM. First of all, considerer the impact in stock value, second think how is delivered the materials to customer from plants and their impact in profitability analysis. If there are meaningful differences for the same material between different plants and you give the same value in all company, depending of the mix perhaps your customer is fooling himself about this issue.
    2. If the material is manufactured, talk with your CO consultant and what kind of impact could have different routings, BOM and prices of raw materials between plants. Same considerations for valuation of stocks and margin.
    Finally, in the page 10 of the document you can read
    Valuation must be at Plant level in the following cases:
    u2022If you want to use the application component Production Planning (PP) or Costing
    u2022If your system is a SAP Retail system
    I hope this helps you
    Regards
    Eduardo
    PD: I forgot, talk this with the CFO of the company, taking in account the restrictions (when it must be plant level).
    Edited by: E_Hinojosa on Nov 23, 2011 9:23 AM
    Edited by: E_Hinojosa on Nov 23, 2011 9:24 AM

  • Bom- Multiple Revision level

    Hi,
    How to create and maintain a BOM with mulitple revision level.
    Thanks in Advance

    Dear Madhan,
    Do you mean to say you want alternative BOM's or else
    simple BOM,that's at one moment or one fixed point it should
    be having only one BOM ,with a revision level?
    See for deleting or modiying the BOM with revision level you
    need to use ECN - Engineering Change number.
    So whenever you are using an ECN for modifying the
    BOM,enter the revision level - in the field reason for change
    while creating the Change number in CC01 or using change -
    CC02.
    So this is one way of handling this issue.
    Please check & revert back if anymore help is needed.
    Regards
    Mangal

  • BOM at delivery level

    Hi all,
    I have an issue. Is it possible to explode the BOM at delivery level with getting it exploded at sales order level?
    Sudha

    not get nay response.
    Thanks

  • By default in BPC values are sum in node level, It does not make sense to sum averages on parent nodes.

    HI Guys
    we have an business requirement to store data in average figures ,
    The values  are entered on the base member level but in reports we need to show average values  on the parents level instead of sum
    ( by default in BPC values are sum in node level),it does not make sense to sum averages on parent nodes.
    we managed it with excel formulas ,but we r facing the problem with dimensions which are in context.
    (i tried using dim memeber formulas but AVG key word is not accepting the system in member formulas)
    at last by using formula we managed the report but im worried abt that if there is no formulas ,how we will manage
    pls suggest any solution to show average values on the node level in specific reports

    Hi Krao,
    Please define what do you mean by average - arithmetic average or weighted average (has more business sense to my mind).
    Also, please provide some samples, explaining dimensions used in average calculation.
    In our case we use dimension member formulas to show average prices, discounts etc. in the reports.
    B.R. Vadim

  • XML Error: Only segments are allowed on top level,found non-segment E1EDK03

    Hi,
    I have a problem in my senario of receiving XML files with a Business Connector (4.7), adding some data to certain segments and elements, do some mapping steps and then convert the XML file to SAP IDoc. Then the IDoc should be send to R/3 system via ALE.
    The senario works so far, if I test it with the "Send XML file.." option in the menu "Test" of the Business Connectior itself.
    If I try to send the XML data as string in my browser the following error always occurs:
    $localizedError:
    com.wm.lang.xml.WMDocumentException: Invalid IDocXML document: Only segments are allowed on top level, found non-segment E1EDK03
    $errorType:
    com.wm.util.coder.InvalidDatatypeException
    If I send send a string containing the XML data incl. the data I actually wanted to add in a flow step, it works.
    Can anybody help me?
    Thanks,
    Kai
    Message was edited by: Kai Lerch-Baier

    I had been using MC Internet Explorer until this . Have compared this one to functioning XML viewable with MS Internet explorer. Below is code I am using trying to resolve this problem.
    <?xml version="1.0"?>
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="ecrtas"/>
    <tt:template>
    <tt:loop ref="ecrtas">
    <ImportInstructions>
    <ProjectSponsorInstruction>
      <Instruction mode="Add">
       <SponsorName tt:value-ref="SPONME"/>
       <SponsorNumber>
         <IdValue name="Sponsor Number"><tt:value ref="SPONSOR"/></IdValue>
         </SponsorNumber>
        <SponsorType tt:value-ref="SPONTYP"/>
      </Instruction>
    </ProjectSponsorInstruction>
    </ImportInstructions>
    </tt:loop>
    </tt:template>
    </tt:transform>
    Thank you again

  • In future batches are maintained in plant level

    dear all,
    when i am doing MB1A ,MB1B,MB1C  after i save the document there is a message saying that in future the batches are maintained at plant level. I am not getting the document generated number. because of this i am unable to find whether the document generated or not. how to overcome this
    regards
    anup

    Some one has most likley changed the batch level.
    Please go to transaction OMCT and have a look around there to figure what has gone on
    http://help.sap.com/saphelp_46c/helpdata/en/25/283aac4f7811d18a150000e816ae6e/frameset.htm
    That will explain this transaction and settings in this,.
    Edited by: Adeel Sarwar on Sep 18, 2008 10:04 AM

  • Multiple discounts are given at different levels of sales cycle

    I have a requirement,
    Multiple discounts are given at different levels of sales cycle(like opportunity, quotation etc), interlinked with document flows.
    It must be assured that all the matchings must be taken into accounts and are displayed underneath each other.
    ex:
    discount simple : 15%
    discount simple : 12%
    special discount : 10%
    Is it a standard functionality in SAP CRM or should we do enhancement to cope the functionality, if it is an enhancement any idea how to do that.
    Regards,
    Venki

    For quick assistance post testable script.
    Tree processing examples using recursive CTE:
    http://www.sqlusa.com/bestpractices2005/organizationalchart/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • What are Header Level, Item Level and Schedule Level data?

    Hi ,
    Can anyone plz explain me what are Header Level, Item Level and Schedule Level Data in the R/3 system , means what actually is the data structure they contain. If is there any document or links available plz do send. Urgent.
    Thanks
    Prashant singhal

    Hi Prashant,
      check this link.
    [Extractors;
    Regards,
    Harold.

  • When instant streaming Netflix on my Macbook Pro, the sound is very very low even when sound controls are set at highest level.

    When instant streaming Netflix on my Macbook Pro, the sound is very very low even when sound controls are set at highest level.  I do not have this problem when listening to TV or watching movies streamed from DishNetwork.  I contacted Netflix and they had me install a newer version of their software Silverlight... this did nothing to resolve the issue.  They were not familiar with the issue.

    Well if your on 10.6.2, you need to software update to 10.6.8
    Perhaps you need to adjust the Silverlight (Microsoft DRM video plug-in) sound level itself too
    Run a check here to see if your current on your Silverlight (works for all browsers)
    https://www.mozilla.org/en-US/plugincheck/
    Use another browser like Firefox and see if it continues.
    Try another video file. They all have their own sound levels too.

  • Functional area change at WBS level

    Hi Experts,
    I just want know the possibility of functional area change at WBS level.
    If we assign Functional area at project level, can we change functional area of WBS?
    if it is possible then is it possible to assign/change functional area of WBS after releasing the same?
    Please update me.
    Thanks & Regards
    Suresh. J

    Hi Surej,
    FA in project is in Basic tab and FA in WBS is in Assignement tab. Both functional area for Project or WBSes could be different. All this functional area could be changed. However, please note if you changed the FA once the data is posted into the WBS, the system will give a warning message not to change the FA. This FA in master data is to ease data entry. The FA will be copied over to FA area field during data entry. In fact, you can change the FA during data entry.
    Hope this explains your query.
    Thanks.
    Regards
    Fauzi

Maybe you are looking for

  • HP Pavilion G6 2230SA Windows 7 64 bit \usb \controller driver

    Hi - I'm attempting to install Windows 7 (64Bit) on a HP Pavilion G6 2230SA Notebook which was originally delivered with Windows 8. I appreciate that this is not supported by HP but am simply hoping that someone could help me install the correct driv

  • Help CS3 isn't working correctly in my new computer

    I just bought a new computer...I had no choice..the other one was dying. I do basic photo editing, but I do it daily. I have loaded my CS 3 onto my new Asus, with Windows 7 and i5 processor. Before I bought I did a lot of asking of friends and comput

  • The error 16 when launching Photoshop elements 12

    Ok I keep getting the error 16 when launching Photoshop elements 12, 1) It says to re-install (did that and did not work twice), there is also the Cache.db unlock (did that - not a solution either)... I need more information on what the problem could

  • Adding custom field to VL01N

    Hi All,           I want to add one custom field  under <b>Shipment tab in header level</b> in transaction code VL01N. Could you please tell me how to add it.   Thanks balu

  • BI 7.0 Technical Content Activation

    We have performed the technical upgrade from 3.5 to 7.0 and are in the process of performing the Post Upgrade steps. We are currently updated to level: SAP_BW 7.00 SP15. One of the Post Upgrade steps referenced in the "How to ... Checklist: Rapid SAP