Get BOM where Material is used

HI experts
I need a function (fm or class) to get all BOM's where a material is used.
The FM CS_WHERE_USED_MAT is very helpful, but it just works on the first level.
I need all levels. Like CS_BOM_EXPLOSION but the other way.
Thx in advance
Christian

We had a requirement to get the complete where used list for a material. We were not able to find any specific standard FM for it.
The FM CS_WHERE_USED_MAT was called in loop to achieve it. The logic is described below.....
1. APPEND the parent material to internal table.
2. LOOP on internal table
    CALL  FM CS_WHERE_USED_MAT for materials in internal table
    APPEND the child materials in the internal table deleting duplicates.....
    ENDLOOP

Similar Messages

  • GET BOM FOR MATERIAL

    Hello everybody.
    i want a program to get all bom for  raw and processed materials.
    input:
    a range of material, example material from 100005 to 100008
    output.
    all bom of material  100005 to 100008.
    in se37 i found function
    CP_BD_GET_BOM_FOR_MATERIAL
    but i don't know how to use it.and whether can get requirement output.
    help me.
    thanks.

    tables : mara,stpox.
    data : ibom1 like stpox occurs 0 with header line,
             ibom2 like stpox occurs 0 with header line,
             imatnr like mara occurs 0 with header line.
    select-options : s_matnr for mara-matnr.
    select matnr into corresponding fields of table imatnr from mara where matnr in s_matnr.
    loop at imatnr.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      FTREL                       = ' '
      ALEKZ                       = ' '
      ALTVO                       = ' '
      AUFSW                       = ' '
      AUMGB                       = ' '
      AUMNG                       = 0
      AUSKZ                       = ' '
      AMIND                       = ' '
      BAGRP                       = ' '
      BEIKZ                       = ' '
      BESSL                       = ' '
      BGIXO                       = ' '
      BREMS                       = ' '
       CAPID                       = 'PP01'
      CHLST                       = ' '
      COSPR                       = ' '
      CUOBJ                       = 000000000000000
      CUOVS                       = 0
      CUOLS                       = ' '
       DATUV                       = SY-DATUM
      DELNL                       = ' '
      DRLDT                       = ' '
      EHNDL                       = ' '
      EMENG                       = 0
      ERSKZ                       = ' '
      ERSSL                       = ' '
      FBSTP                       = ' '
      KNFBA                       = ' '
      KSBVO                       = ' '
      MBWLS                       = ' '
      MKTLS                       = 'X'
      MDMPS                       = ' '
       MEHRS                       = 'X'
      MKMAT                       = ' '
      MMAPS                       = ' '
      SALWW                       = ' '
      SPLWW                       = ' '
      MMORY                       = ' '
       MTNRV                       = IMATNR-MATNR
      NLINK                       = ' '
      POSTP                       = ' '
      RNDKZ                       = ' '
      RVREL                       = ' '
      SANFR                       = ' '
      SANIN                       = ' '
      SANKA                       = ' '
      SANKO                       = ' '
      SANVS                       = ' '
      SCHGT                       = ' '
      STKKZ                       = ' '
      STLAL                       = ' '
      STLAN                       = ' '
      STPST                       = 0
      SVWVO                       = 'X'
       WERKS                       = '1000' " PLANT NO
      NORVL                       = ' '
      MDNOT                       = ' '
      PANOT                       = ' '
      QVERW                       = ' '
      VERID                       = ' '
      VRSVO                       = 'X'
    IMPORTING
      TOPMAT                      =
      DSTST                       =
      TABLES
        STB                         = IBOM1
      MATCAT                      =
    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
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    APPEND LINES OF IBOM1 TO IBOM2.
    endloop.
    LOOP AT IBOM2.
    WRITE : / IBOM2-IDNRK.
    ENDLOOP.
    REGARDS
    SHIBA DUTTA

  • 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

  • Material BOMs with document items using RCSBI010

    Has anyone uploaded material BOMs with document items using RCSBI010?  I set the item category to D, but receive an error in LSMW when I attempt to convert the data.  The error specifies that the document items are not valid material numbers.  They are not material numbers.  They are document info records.

    Found the problem. The document number was being mapped to BOM Component IDNRK instead of document number DOKNR.

  • How to get the "where used" of a portal object.

    Hi folks!
    I'm coding a program to get the list of the portal objects where a specific portal object (an iView  for example) is used. I found the method getWhereUsedList from IPcdContext but I'm getting some errors.
    Is this the best/correct way to get a "where used list"?
    Does anyone have an example of how to use this method correctly?
    Thanks in advance.
    Geraldo.

    Hi Tanja, thank you very much for your attention.
    Following your tips I figured out that the error was occurring during the casting and not during the getWhereUsedList method call. Now, I'm casting to Object. I'd like to cast to a more proper class. During my tests I got an error that showed me that the cast should be to a PcdGlSearchResult class. I couldn't find any javadoc for this class and when I changed the cast to this class I started to get a execution class load  error. Please let me know if you have any advice regarding the casting.
    private void getWhereUsed1(IPortalComponentRequest request, String id, StringBuffer sb) {
    InitialContext iCtx = null;
    Object objectId = null;
    String tString = null;
    Hashtable env = null;
    IPcdContext result = null;
                         env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
    try {
    iCtx = new InitialContext(env);
    result = (IPcdContext) iCtx.lookup(id);
    for (NamingEnumeration ne = result.getWhereUsedList(""); ne.hasMoreElements();) {
    objectId = (Object) ne.nextElement();
    tString = objectId.toString();
    sb.append(tString + CR);
    } catch (Exception e) {
    StackTraceElement[] elements = e.getStackTrace();
    for (int i = 0; i < elements.length; i++)
    sb.append(elements<i> + CR);

  • Using PS CS1 & a Canon EOS Rebel T3i. Where to get the plug-in to use camera raw?

    Using PS CS1 & a Canon EOS Rebel T3i. Where to get the plug-in to use camera raw?

    Thank you.
    Windows 7 Starter
    on a Toshiba NB505
    Intel Atom CPU [email protected]
    This is my internet notebook access device.
    My primary system is MS Windows 5.1, with a flat screen crt.
    Does this help?
    Want to use RAW, can't afford to upgrade equipment just yet.
    Thanks again for any guidance offerer
    Michael
    Connected by DROID on Verizon Wireless

  • How do I get rid of the Not Using SoftArtisan File UP notice that is slowing down my uploads to class where I teach?

    How do I get rid of the Not Using SoftArtisan File UP notice that is slowing down my uploads to class where I teach? A notice now appears every time I upload an image to class as an attachment that says, Not Using SoftArtisan File UP, and this appears to be slowing down my uploads tremendously. I want to get rid of this. I never used it before and don't need it and don't want it. I just want the uploads to work like they did before this idiotic notice started slowing things down.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Get inbound delivery number by using material serial number

    is anyfuction module to get inbound delivery number by using material serial number?
    input---material serial number.
    output--inbound delivery number.

    Hi,
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_GOODSMVT_CREATE
    it's ok with the Function module
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
    EXPORTING
    VBKOK_WA = LWA_VBKOK
    SYNCHRON = ' '
    NO_MESSAGES_UPDATE = ' '
    COMMIT = 'X'
    DELIVERY = P_ITEM-VBELN
    IT_SERNR_UPDATE = LT_SERIALS
    IMPORTING
    EF_ERROR_SERNR_UPDATE = L_SERNR_UPDATE
    <b>Reward points</b>
    Regards

  • I have bought the Lightroom 5 disk last december but I mistakenly misplaced the case that had the serial number on it. I need that number to download it otherwise, the disk is no use. Is there any way I can get someone where else?

    I have bought the Light room 5 disk last December but I mistakenly misplaced the case that had the serial number on it. I need that number to download it otherwise, the disk is no use. Is there any way I can get someone where else?

    Please read this: Find your serial number quickly
    Also, please consider a safer method of retaining your serial numbers in the future (for all software, not just Lightroom)

  • The unit of issue cannot be changed because the material is used in BOM.

    Hi Pals
    Please could you help with the following:
    I have a request to change value in unit of issue field (Work Scheduling tab), current value if ZPC and i need to remove it and leave field blank.
    When i delete this value and press enter error message occurs: "The unit of issue cannot be changed because the material is used in a BOM" (Message no. M3214).
    I've removed this material from all BOMs at concerns plant level, but this doesn't help.
    Under cs15 tcode, SAP still sees deleted BOM history and probably this stops SAP to allow to change unit of issue.
    Do you know how to remove BOMs without history. And mainly, how to solve this problem.
    Thank you in advance
    Regards
    Andrey

    Hi R.Brahmankar
    thank you for support!
    you wrote:
    Dear,
    Please refer OSS note 215970 It will resolve this issue.
    Regards,
    R.Brahmankar
    I searched in note you gave: and there are 3 reports mentioned:
    1. ZZITMTC4 - selection report without update option
    2. ZZITMTD4 - selection report with update option
    3. ZZITMTD5 - selection report per each material with update option
    4. ZZITMTDOC - selection report with document entry and update option
    To be honest, i don't know how to use those reports...
    I searched in GRR3 tcode for such, but no such reports exist.
    Please could you advise how to use those reports.
    Thank you
    Best Regards
    Andrey

  • Want to get the where-used hitlist to an internal table

    hi everyone,
            while using where-used list we will get a hit list result. I want to take that hit list data to an internal table with out using any local file.
    Is anybody there to help me.
    regards,
    vijaya.

    Hi Lakshmikona,
    I had wrongly interpreted your question, as suggested by Thomas you can use RS_EU_CROSSREF to get the Where used list data in the internal table.
    Refer this SAP standard report RSHDCF00 for you detailed perusal.
    Regards
    Abhii
    Edited by: Abhii on Sep 3, 2010 12:08 PM

  • Material where it is used list,

    Hi All,
    how to create the material where used list ,
    i check CS15 transaction , but it display the assmy and the final product in which the material is used.
    i need the final product in the display. how can i do it.
    which FM is useful for this issue.
    pls reply
    thanks and regards
    VBakyaraj

    dear vivek,
    i used CS_WHERE_USED_MAT
    system is saying no transcation availble
    how to go further
    Plz explain in detail
    Regards
    kumar

  • HT5699 I contacted apple to get my security questions reset, but I didn't have a way to log on to my account at the time, so she gave me a nine digit pin and told me to use it when I got access to the internet. Where do I use this pin?

    Where do I use the nine digit pin?

    The nine-digit number is likely a case reference to speed up a new attempt to Contact Apple Support.
    Try entering this number and your e-mail address here: https://getsupport.apple.com/GetCaseDetails.action
    Cheers
    Chris

  • Material Creation Using BDCs.

    Hi all,
    I have developed a program for Material Creation using BDC.
    Material is Being created and that is working well and good.Here i have a Requirement to update the Newly creted material in Ztable.So when i use call transaction mathod,i have written code for updation under the line CALL TRANSACTION.where in iam getting newly creatde material from MARA table,and so it is working perfectly fine..
    But our requirement should be sessions method,so when i use sessions method and exeute the program..we face the problem of updation.
    the piece of code for updation is updating previously created material.
    Literally speaking only the sessions are created ,when the program is executed,material is not created when program is run.Material is only created when the sessions are processed using SM35,
    So how should i do here,where should be the updation code written and where will we get the newly created material in sessions method..
    Pls Help me in solving this problem

    hai priyanaka it might be due to configuration problem
    bcos manulay also ur gettign this , so just consult ur MM consultant for soem setting
    regards
    afzal

  • From a table how do u find whether a material is used in another material B

    hi,
    From a table how do u find whether a material is used in another material BOM
    thanks in advance

    Yes as Velu mentioned you can get the details from STPO.
    Note that you have to use field IDNRK in table STPO to check if the material is used as a BOM Component.
    Regards
    Eswar

Maybe you are looking for

  • Problems shutting down, starting up

    My IMac has been giving me several problems lately. It sometimes will not go to sleep, and when it does, will not wake up. I have to re-start the computer to wake it up. It often shuts down with no warning or the grey film comes over and says the Mac

  • I cannot find an option in iphone4s to lock on GSM (2g) network. Similar option is available in iPhone 4.

    I cannot find an option in iphone4s to lock on GSM (2g) network. Similar option is available in iPhone 4.

  • Getting MP3 comments tag to show in iTunes

    Hi It seems when writing an MP3 Comment tag that iTunes needs the language to be specified with the correct three character code, or else left unused. However Windows which I am also trying to support requires the language of the comment to be specif

  • Transparency settings in CMYK

    Hi Guys, I need this background in a print design. It was made in RGB mode by a vector seller but of course when I try to use it in CMYK it gives me the result as shown below. Who can help me to solve this? Many thanks! Bob

  • I can't see folders in my ipod notes

    I am having trouble seeing any folders within my notes folders. If a regular note is there, i can see that fine. It is the subfolders that i cant see. Anyone have any solutions to this problem? MacBook Pro   Mac OS X (10.4.8)   Ipod 5th generation