Check a material is component of a bill of material itself

Dear All
I have to check whether a particular material is a component of Bill of material itself.
How is it possible.
Any pointers would be helpful.
Points for sure.
Thanks in advance.
Dinesh

Hi Dinesh,
HI,
BOM is stored in table MAST and its materials in STPO table.
Do the following,
Enter the BOM material Number in MAST for say plant 0001.
Now it will display the details with a BOM Number(Field STLNR).
Now go to STPO and enter this BOM Number got from the previous
table. It will display the materials which are available in
BOM under field IDNRK(Component
Write a simple ABAP program based on these 2 tables. Check the below code, where you can put the materials which you want to exclude in s_IDNRK and BOM in s_mATNR and plant in p_WERKS.
*& Report  ZTEST01
REPORT  ZTEST01.
TABLES: MAST, STPO.
DATA: BEGIN OF I_CS07_H OCCURS 0,
       MATNR LIKE MAST-MATNR,
       WERKS LIKE MAST-WERKS,
       STLAN LIKE MAST-STLAN,
       STLNR LIKE MAST-STLNR,
      END OF I_CS07_H.
DATA: BEGIN OF I_CS07_I OCCURS 0,
       STLNR LIKE STPO-STLNR,
       POSNR LIKE STPO-POSNR,
       IDNRK LIKE STPO-IDNRK,
       MENGE LIKE STPO-MENGE,
       MEINS LIKE STPO-MEINS,
      END OF I_CS07_I.
SELECTION-SCREEN: BEGIN OF BLOCK B1.
   SELECT-OPTIONS: S_MATNR FOR MAST-MATNR OBLIGATORY,
                   S_IDNRK FOR  STPO-IDNRK .
   PARAMETERS    : P_WERKS LIKE MAST-WERKS OBLIGATORY.
SELECTION-SCREEN : END OF BLOCK B1.
START-OF-SELECTION.
SELECT * FROM MAST INTO CORRESPONDING FIELDS OF TABLE I_CS07_H
                        WHERE MATNR IN S_MATNR
                        AND   WERKS EQ P_WERKS
                        AND   STLAN EQ '5'.
SELECT * FROM STPO INTO CORRESPONDING FIELDS OF TABLE I_CS07_I
                                    FOR ALL ENTRIES IN I_CS07_H
                                    WHERE STLNR EQ I_CS07_H-STLNR
                                    AND   STLTY EQ 'M'.
LOOP AT I_CS07_H.
  WRITE: /1 '|',
          2(20) I_CS07_H-MATNR COLOR 7,
          120 '|',
         /1(120) SY-ULINE.
LOOP AT I_CS07_I WHERE STLNR = I_CS07_H-STLNR.
  WRITE: /1   '|', 2(18)   I_CS07_I-POSNR COLOR 5,
          21  '|', 22(40)  I_CS07_I-IDNRK COLOR 5,
          63  '|', 64(20)  I_CS07_I-MENGE COLOR 5,
          85  '|', 86(24)  I_CS07_I-MEINS COLOR 5,
          120 '|',
         /1(120) SY-ULINE.
ENDLOOP.
ENDLOOP.
Thanks & Regards,
Nagaraj Kalbavi

Similar Messages

  • Component relationship in bill of material

    hi......
    what is the table to find out the parent and child component relation in bill of material ?

    Hi,
    You could query the table ALL_CONSTRAINTS. Please follow this link, it may help you:
    http://stackoverflow.com/questions/85978/query-a-tables-foreign-key-relationships
    Regards,
    Mario Alcaide
    http://marioalcaide.wordpress.com

  • Avaliability check and ATP check for material in CO02 tcode

    Hello All,
    I have a requirement where i am building a portal for WM pick list . The requirment is like i enter a production order number on the screen and gives me the material and it's corresponding components. Now the user has the option to select these components (more than one at a time ) . Now, i have provided few buttons like ATP Check, Pick component etc.
    I need to check the availabilty for the selected order components from the list. If the ATP check is successful and all the parts are available, then user can continue with the WM pick process and the Pick Component button becomes active.
    Does anyone has any idea on how to find the availability for the individual component and if yes please provide the steps to do it.
    Thanks & Regards,
    Ravi Aswani

    Hi ,
    You can check  the availability of material (component   ) via  the following function modules
    MD_STOCK_REQUIREMENTS_LIST_API  and BAPI_MATERIAL_STOCK_REQ_LIST
    Please  check the above  two function module  for your  requirement .
    you  can use this function module  in your customized progam  to  check the material  stock.
    Hope this information helpful.
    Best regards,
    Chithaanantham

  • How to check a material being blocked by system at current time?

    hi,
    is there a method to to check a material being blocked by system at current time?
    Thanks!

    Call the function module ENQUEUE_EMMARAE with the required material number. If sy-subrc is not 0, after the function module has executed completely then the material is locked by a different user.
    Please mark points if the solution was useful.
    Regards,
    Manoj

  • Did you know that Verizonwireless is saving your checking account information when you pay your bill by check and then making it part of your "MyVerizon"? This means of course if they get hacked that information could be compromised. What do you think of

    Did you know that Verizonwireless is saving your checking account information when you pay your bill by check and then making it part of your "MyVerizon"  without you adding it? This means of course if they get hacked that information could be compromised. What do you think of this?

    Credit card and debit card and checking and savings information is encrypted so it is possible to be hacked, but the odds are greater to get hit by the Love Boat then to have a wide scale hack.
    Oh yes they do happen, Bank of America, Chase, Citibank, Target and quite a few others. But in all the years I have paid my invoice with saved card information I never been hacked.
    You use good passwords and the risk is minimal.
    Good Luck

  • CIN: How to check the material document posted without excise invoice

    Hi Guru,
    Please advise how to check the material document posted without excise invoice.
    I have tried tcode J1I7 but it seems start to collect the excise invoice first and then material document.
    But my case is to find the material document WITHOUT excise invoice for internal tracking purpose.
    At the moment we start from tcode MB51 to get the list of material document and check in J_1IEXCHDR / J_1IEXCDTL
    Best regards,
    Pakorn

    Hi,
    Try creating a Query in Tcode SQVI by combining tables MKPF and J_1IEXCHDR/J_1IEXCDTL for your requirement.
    Check these threads how to create Query.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6018c1ae-8c44-2d10-6ea9-c3fad2c82880?QuickLink=index&…
    http://ptgmedia.pearsoncmg.com/images/9780672329029/samplechapter/0672329026_CH03.pdf
    Regards
    Binoy

  • Please help me how to check a material does existed group code in system (w

    Hi all,
    Please help me...
    I have inputted quantity for  tx MC 94  but when I input them into  tx MC94, I met  a message " Structure  not yet maintained for  this conbination characterstics". Step by step to show a error message as below:
    Step 1: Launch MC 94
    step 2: Enter Planning
    Step 3: Enter  Prod.Code. Material (ex: enter material code :0101010260008, this code is existed  Prod.Code )
    Step 4: Click on "Inactive Version " button
    ==> A error message is showed.
    Please help me how to check a material does existed group code in system (which table to  check  it)?
    How to record the message" Structure  not yet maintained for  this conbination characterstics" to catch up it in my program?
    Thank in advance.

    Karenloria,
    1. Check in MC8C, which Infostructure is used for Planning type "Planning" or the one you are entering in the intial screen of MC94.
    2. Using transaction MC63 for the infostructure identified in step 1, check the planning hierarchy maintained. If this product is not maintined maintain using MC62.
    You can also check using SE16 transction the current infostructe records(Plan) for the table name = infostructure identified in step 1.
    Regards,
    Prasobh

  • Availability Check for Material..

    Hi Experts,
    I got one critical issues in availabilty Check while creating the Sales Order. System is not checking availabilty of particular material in a plant, but for all others material it is checking.
    I have check the Material master of that material. and check the SPRO setting for availability check..
    Thanks and regards,
    Babarkhan

    Dear babarkhan ,
    Check wether checking group has been maintained for that material in material master -Availability check.
    Thanks&Regards
    Raghu.k

  • For a PR, check the material master

    Hi,
    I have a basic question.
    I have a requirement to check the material master to determine the existence of the material master after a PR is created. Can we create a PR without a material.
    What are the methods of creating PR apart from manual creation
    Thanks.

    > Hi,
    >
    > I have a basic question.
    > I have a requirement to check the material master to
    > determine the existence of the material master after
    > a PR is created. Can we create a PR without a
    > material.
    > What are the methods of creating PR apart from manual
    > creation
    >
    > Thanks.
    Hi,
    Here u can Extend the material master after creating PR,and u can create PR with Out Material master,but this is possible only with Consumable materials and services.
    Thanks & Regards
    suresh

  • Aavlaibility check for material and Substitution material

    Hi Gurus,
    I have a requirement where in I need to check the availability of a material and if there is not availability then I need to find out the substituted material maintained for the material.
    for example, Material M1 has no stock in ECC and Material M2 is maintained as substitution in the SCM system. I need to figure out the tables or any Function module that can fetch the Material M2 if I provide Material M1.
    I am able to check the material availability using the BAPI "BAPI_AVAILABILITY_CHECK". But I didnt find any FM or way to find the substituted material for a material.
    Please help me out.
    Thanks.
    Anand.

    I don't know about SCM, but in R/3, the material determination process is based on the standard procedure/access sequence setup.  If you trace the condition record maintenance, you will find your table name.  If the SCM setup doesn't work that way, there will still be a master data setup step that you can trace and find the table.

  • Availability check of material against sales order

    Dear All,
               Please let me know how to check the material availability against a sales order during despatch stage. We are following make-to-order scenario & do create order bom based on Customer requirement. in such case how to generate the list of material available against the sales order line item by entering the following parameters:
    1. plant
    2. sales order no.
    3. line item no.
    4. material group
    Please help me!!!
    Regards,
    Anil
    Edited by: anil pawar on Jul 30, 2010 11:40 AM

    Dear ,
    When system perform ATP  for any Sales Order , it checks the Total Replishment Lead Time-MRP3 .The total replenishment lead time is the time needed before the product is completely available again, that is, after all BOM levels have been procured or produced. It is not calculated by the system, but defined in this field as the total of the in-house production time(s) and/or the planned delivery time(s) of the longest production path.
    This time is necessary if, for materials produced in-house, the replenishment lead time is to be taken into consideration in the availability check.
    In an availability check where the system takes the replenishment lead time into consideration, it only checks whether there are sufficient incoming quantities and stocks available to cover the requirements within the replenishment lead time. Outside the replenishment lead time,the system assumes that the material is available in sufficient quantity.
    Therefore, in this situation, it is usually necessary to depict the product's total replenishment lead time with all BOM levels as the replenishment lead time.
    Now , unless the Requirement Pass through MRP , you can not have BOM explosion  at the lowest level and system will give you the result based on the MRP Net Requirement Calculation till the lowest level of BOM as dependent as well as FERT.
    At the Sales Order Stage it only checks the Availablility of FG with in RLT which can be proposed or committed but not confimred because BOM Lead Time for compoenets are differnet and it does not perform any requirement planning .
    But , you can check after MRP run , you can check the Material Availabity in MD4C , CO46 , MD04 etc where it will also give you a clear report on the Requirement Date , Committed Date , Qty to be procurede , Qty to in Stock all of them .
    Before MRP  if you want to check  the Order BOM , then you may have to go for Z-report based MARD , VBAK , MARC , STPO  etc .
    Please refer some of the beautiful threads on this topic :
    changing Availability Checks in Sales orders
    Sales Order - Availability check for components
    Hope it is clear
    Regards
    JH

  • Is ist possible to use an alternate bill as component of another bill?

    Hallo,
    Is ist possible to use an alternate bill as component of another bill?
    I want to image the following:
    Product A:
    -Component B , -Alternate 2
    -Component C
    -Component D
    Thanks a lot for your help in advance
    Best regards
    Oliver
    Edited by: 865015 on 06.12.2011 04:53

    Hi Sandeep,
    yes that helps. Thanks!
    But if I cannot use them in Bills (and in MRP and Order Management(for Models and Option classes) they are not used, too - only the parents as I read in the user guide), then I do not understand the idea of alternates?
    Do you have an explanation?
    Thanks a lot.
    Best regards
    Oliver

  • Query - Authorization Check for Material Details

    Hi Experts,
    I've got a requirement where I've to put authorization check in a number of transactions (standard as well as custom) which lead to material display some way or the other for specifc matarils (checking the authorization field). Few are for reports (may be interactive) as well. The need is to stop unauthorized people from getting access to the specifc material details such as dimensions (quantity,length, width, etc.).
    The first option would be to stop the user from viewing the material itself and showing some appropriate error message.
    The second option would be to make the above said details invisible in the screen for the specific matarials.
    The Authorization object is M_MATE_MAT.
    The Authorization field is BEGRU.
    The range of tcodes start from ME21, ME22, ME23, ME23N ...to MM01, MM02 etc. and a number of custom tcodes.
    What is the best way to achieve this? I guess I'd need to look for exits. Please suggest
    Thanks & Regards
    Pritam

    > I've got a requirement where I've to put authorization check in a number of transactions (standard as well as custom) which lead to material display some way or the other for specifc matarils (checking the authorization field). Few are for reports (may be interactive) as well. The need is to stop unauthorized people from getting access to the specifc material details such as dimensions (quantity,length, width, etc.).
    >
    > The first option would be to stop the user from viewing the material itself and showing some appropriate error message.
    >
    You can do this with authorization at transaction level.
    > The second option would be to make the above said details invisible in the screen for the specific matarials.
    >
    Invisible on the screen, you might need to consider the material screens user exit. I am not sure how your material master configured
    > The Authorization object is M_MATE_MAT.
    > The Authorization field is BEGRU.
    >
    > The range of tcodes start from ME21, ME22, ME23, ME23N ...to MM01, MM02 etc. and a number of custom tcodes.
    >
    > What is the best way to achieve this? I guess I'd need to look for exits. Please suggest
    All in all, you need user exits to have field level authorization and maintain authorizations at transaction level for the one you dont want to show anyone or to few

  • I m not able to find out where is check out and open component(WCM)

    hi everyone,
    i m not able to find out where is check out and open component and how it works. As m not able to open & edit the native document that m assigning.Plz help me in this ASAP

    Here's what I found. If you have a metalink login, try these links. Depends on what version of COAO you need.
    CheckoutAndOpenInNative
    Patch 6602355 Build version=2007-03-22 for 10.1.3.3.1
    http://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=6602355
    Version=2007-03-22 on edelivery in UCM Downloads
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:12648830947583585595::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,455524.1,1,1,0,helvetica#downloads
    Version=7.7.0.244-2006-07-31 on edelivery in UCM Downloads
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:12648830947583585595::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,455524.1,1,1,0,helvetica#downloads
    There's actually a mapping here to figure out what file these extras are in:
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:12648830947583585595::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,455524.1,1,1,0,helvetica

  • Today I was shopping and I went to check the time on my Iphone but it had shut itself off for no reason and now it won't turn back on. What should I do?

    Today I was shopping and I went to check the time on my Iphone but it had shut itself off for no reason and now it won't turn back on. What should I do?

    It could have powered off. Try holding the sleep button down for a few seconds until the apple logo appears to restart it

Maybe you are looking for

  • Unable to delete a file

    I'm unable to delete a a file from the filesystem. String fileName = "dummy.xml" boolean delete = (new File(fileName)).delete();It's not deleting this file from the filesystem.

  • List of names to scheduled email and events

    Hi everyone, honestly, this is my first time using Applescript. But after some research I thought that Applescript offers the nicest way to solve my problem. For our research group I'd like to set up a tool which automatically sends an email on a giv

  • Time Machine Freezes During Initial Backup

    I have a 500gb external Western Digital HDD I am trying to use as my Time Machine backup drive. The computer I'm using is a 24" iMac with about 250gb of data on it. The external drive is partitioned as a GUID / Mac OS Extended (Journaled). When I try

  • Living in a VW

    Perhaps I should know this, but I don't! I am going to be living in a VW van for 2 months with my MBP. Can I charge it with the 12 volt outlet in the van??? If not, is there some way I can charge it while I'm on the road?

  • Hyperion Planning dynamic forms based on start and end date across years

    Hi All, I have a requirement where i need to be able to view a form showing periods across years that are dynamically built depending on the start and end dates. If i have a start date of 01/11/2009 and an end date of 31/7/2013 i want to be able to v