Checking of parent item

Experts,
If I fetch items from OITM table, how to check if the item is having a parent item or not in BOM? Then again tht parent item is having parent or not...etc

While @Next<=ISNULL((select COUNT (Father) from @temp), 0)
          Begin
          select @fathercode = Father from @temp where (select ROW_NUMBER() over (order by Father)from @temp = @Next)
               select T1.Father , T1.Code  from ITT1 T1 where T1.Code=@fathercode
               set @Next = @Next + 1
               End
               insert into @temp select T1.Father from ITT1 T1 where T1.Code = @fathercode
select @fathercode = Father from @temp where (select ROW_NUMBER() over (order by Father)from @temp = @Next)
this line gives error...How can we get the row id in SQL server and put it in a condition?
plz help

Similar Messages

  • 57F4 challan print - getting parent item no and po number for child item

    Hi ,
    In 57F4 challan, Subcontract components - i.e Child items are used for creating the challans.
    However while printing needs the parent item no with the purchase order number for that child item number.
    It is getting stored in RM07M structure.
    Any inputs / suggestions how to retrive parent item number and purchase order number for child item i.e for subcontract items?
    Thank you .
    Prasad.

    Thank you for the reply. I checked the table RSEG table for material document and PO details, however the RSEG gets populated when there is credit or debit entries.
    In this 57F4 challan there is no credit or debit enteries hence would not get in RSEG table.
    Appreciate your inputs for any other alternative.
    OR is there any table or Function Module to get the enteries of the struture of RM07M .

  • Automatic status heritage from parent item to child item in Instal Base R12

    Hi,
    Do you know please how to deactive automatic heritage of status from parent item to all child items of instal base when updating parent item status in R12?
    When I update status of package in Instal Base, statuses of all child items are updated automatically with same value.
    I am using R12 standard API's and I don't see any parameter that can help ...
    Must I see the Ebs parameters ? Profile options?
    Thx

    Did you check if the serial ABN656 is the parent and has child components under it? Check the below query for the same. Additionally you can also navigate to Oracle Installed Base Agent User responsibility, search for ABN656, click on the record, navigate to Configuration tab and see if this serial has any child components.
    select *
    from csi_ii_relationships cir
    ,csi_item_instances cii
    where cii.serial_number = 'ABN656'
    and cii.instance_id = cir.object_id
    Thanks
    Shree

  • Print the Assembly Parent Item Code only on the AR Invoice

    Hi Experts,
    We have this scenario wherein for certain assembly items we want only the Parent Item code to appear on the AR Invoice; printed for the customer.
    How can we achieve this?
    Is it possible to specify particular field in the layout?
    As per our consultants, SAP B1 standard system does not have a default setup such that manufacturing items can be catered to...
    i.e.if CHILD 1 + CHILD2= PARENT
    In this case both CHILD 1 and 2 will be printed on the marketing document.
    Is there any other option by which this can be achieved?
    Please revert!
    Regards,
    SAP Version: SAP Business One 2005 B (7.40.253)  SP: 00  PL: 43

    Hi Vithal
    Are you maintaning sales BOM?
            If yes then you can achieve your requirement.
    When you define BOM then on top level of BOM one check box is there to hide the child component from printout
    you can use this option. It will hide the childs and only show the paremnt item.
    Regards,

  • How to identify parent item & child (component) item??

    Hi
    Plz let me know how we can identify parent item & component item in the same bom?? I am checking it in table STPO but not able to identify.
    Thnx
    Neel

    Hi,
    I hope there is no such indicator to differeciate parent material and child material in same BOM.
    i will explain one simple way to find out.
    Suppose you are  having three Material Number ex P1,C1,C2 .
    Suppose ur having three Material Number ex P1,C1,C2 .
    1.Use table MAST and give the Material List - It will give Parent Material list only(P1)  
    2.Give the BOM Number to table STPO -  It will give child material list of Parent Material BOM(C1,C2) with repect to BOM
    3. Use report CS15  to find out that Parent Material (P1 Material from MAST) material is being used as component in Some other BOM.
    regards
    pradeep

  • Parent Item/Componenet requirements not getting reflected in MRP

    Hi,
    I have attached a configurable parent item to Project Activity. It is having Bill of material.
    I have put some requirement for this parent item through Project Builder and also i have exploded the Bom for this parent Item.
    Now in MRP (MD02/MD04) it is showing requirements only for child items.But requirements for parent item are not visible in Planning.
    Can anyone guide as why is this happening ?
    Thanks and regards,
    Nitin Lavhe

    Hi,
    Please sit with your PP Consultant.
    Muzamil

  • How to get all items under a parent item in a tree control

    Hello,
    I have 2 questions regarding a tree control:
    1) Is there any way to specify a parent item tag and get an array of ALL its sub item tags? For example, in the attached vi, specify the Parent#2 parent tag and get an array containing Item#P21 and Item#P22
    2) Is there a way to specify a range to the ActiveCell property. For example, all items from line#1 to line number#3
    Any ideas?
    Attachments:
    Tree example.vi ‏6 KB

    Mentos wrote:
    1) Is there any way to specify a parent item tag and get an array of ALL its sub item tags? For example, in the attached vi, specify the Parent#2 parent tag and get an array containing Item#P21 and Item#P22
     Did you try a search? There's no direct way of doing this. You have to navigate the tree and build up an array. You can find an example here: http://forums.ni.com/t5/LabVIEW/get-all-children-o​f-a-parent-in-tree/td-p/729548
    2) Is there a way to specify a range to the ActiveCell property. For example, all items from line#1 to line number#3
    No. (It's called ActiveCell, not ActiveCells) Presumably you are trying to perform an operation on multiple items. Unfortunately, you need to use a loop. You should defer panel updates if you're doing this a lot.

  • Cannot secure delete items from trash: 180 items (pictures, files, folders) remain even if I check "remove all items"

    I cannot secure delete items from trash: 180 items (pictures, files, folders) remain even if I check "remove all items".  Macbook Pro, 10.6.8

    Maybe the items are locked.
    Mac OS X 10.6 Help: Shortcuts for working with items in the Finder
    Shortcuts for working with items in the Finder Command (⌘)-Shift-DeleteEmpty the Trash without any warning or when it contains locked filesCommand (⌘)-Shift-Option-Delete
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/cdb_cpmvfky.html

  • Check/Validate Line item Amount against Credit Balance of Customer in FBL5N

    Hi ,
    I need to Check/Validate Line item Amount BSEG -WRBTR (Screen 301, Prg. SAPMF05A ) in F-02 against Credit Balance of Customer in FBL5N.If amount entered in F-02 with posting key 01 and same company code is greater than total credit balance with customer ,then i need to pop up error message.
    I have tried this with GGB0 using my own exit incl & including ZRGGBR000 in neccesay customization.Still not working.
    Pls suggest a solutiion for this
    Regds,
    abhee
    Edited by: abheesawant on Jul 29, 2010 6:59 AM

    HI,
    To trigger user exit form pool (ZRGGBR000) you need to do setting in OB28 and activate it.
    Regards,
    Sri

  • How to only count parent items in a hierarchical query

    Hello,
    We have a query of Code Review Request and Code Review Responses and also a Query of PBI's and Tasks, each of which are pinned to the home page in TFS Web Access.  For the Code Review query we'd like to only show the count for parent items on the home
    page, and for the PBI/Task query we'd like to only show the count for the Tasks of a certain status.
    Is it possible to specify how the count is calculated, separate from the query filter(s)?

    Hi Burton,  
    Thanks for your post.
    No, there’s no default way to specify a calculated count for work item query in this scenario. If you want to show Code Review Request work items or Task work items in home age, you should try to create the separate queries for
     Code Review Request work items or Task work items, then pin that queries to home page.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • To check the Free item check box in PO number

    Hi All,
    In the Purchase Order at line item level we have the check box Free item to make Material qty as 0.
    Here my requirement is, to check the check box automatically when the order is created from ME58 transaction for particular vendor. When i checked the fields its showing UMSON but no where its storing the value in the database.
    Please suggest me any user exit or BADI for checking this check box by defualt. Please let me know if any table which holds this value.
    Thanks in advance..
    Regards,
    Sreekala

    hi,
    you can find the chnages made by selecting the condition type and going for the header menu environment--->Header changes.
    this will show the changes made at the header level.
    Regards,
    velu

  • Shipment of Free Item alongwith Parent Item (STO,Warehouse Picking and PGI)

    Hi Experts,
    In Retail industries Vendor/Company promote offers to customer free items along with Saleable Product so increase footfalls and basket value. In case there is free item with parent item, PO will be created accordingly as free item. Is there any standard method so that for certain period while creating STO/Picking/PGI when we select Parent Item automatically Free Item should be added and picking document contains the free item to pick.

    Hi Vijay
    By changing storage location you could do b'coz the new storage location is not maintained with warehouse, hence no need to perform warehouse transactions (TO creation and confirmation) before inventory mgmt transactions (PGI).
    For trying pick up with WH, first u should have enough stocks in approppriate storage bins and u should perform pick up by creation of TO and confirmation.
    warm regards
    sairam akundi

  • Problem with Checking In/Out Items in Content Area

    I've been reading the Portal On-Line help pages in regards to
    checking in/out items. The help states that when an item is
    checked out, the item is locked and a message "Checked out by:
    UserName" is displayed next to the item. When I check out an
    item, I do not see this "Checked out by" message. However, I do
    see the checkout icon. Note - I am doing this through the
    Content Area Navigation page. Is there something that I am
    missing? (I have seen other threads in regards to the
    checkin/checkout icons not displaying when the Content Area is
    published as a portlet. We are having this problem as well.)
    However, the lack of the "checked out" message happens in both
    the Content Area Navigator and the published portlet.
    Also, is there a way to get Portal to automatically generate
    version numbers when a new version of an item is created. I see
    that you can create a unique name or description .... but I'd
    like to have Portal generate the version number for me. This is
    done in the Application component section when you build forms,
    menus, or reports.
    Thank you for any assistance that you can provide.

    The "checked out by" message only appears to other users - you
    won't see it if you are the user who checked out the item.
    The version number is planned for a future release.
    Regards,
    Jerry

  • Re: Procurement of Parent item & Child item

    Dear Friends,
    I have a scenario, for Parent item & child item
    client is procuring a parent  material as Set, this comprises of child materials
    we have maintained material codes for Parent material and Child material
    For ex:
         Parent Material : XYZ
    Child MateriaL 1    : X
    Child MateriaL 2    : Y
    Child MateriaL 3    : Z
    maintained MAP in parent material as well as child material as below
    Child MateriaL 1    : X   100 Rs
    Child MateriaL 2    : Y   150 Rs
    Child MateriaL 3    : Z    200 Rs
    Total                              450
    Parent Material : XYZ = 450 ( the total of child materials is equal to Parent material)
    here is my query
    I raise PO for main material and GRN will done for material, and deplete the stock of main material through 201 and update the child materil through 202 mov type. so that stock will update accordingly
    but  when i Procures for main material for market price 600 Rs, it has to distribute apportionately to the child components but here the child material value updates based on the Old map but not updated MAP,
    Please guide how can i achieve this functionality in MM
    thanks in advance

    Hi,
    In your case of doing 201 to deplete the parent material and then doing the 202 to increase the stock of child materials, there is no linking between the two. So there will not be any change in the MAP of child material. It will always take the MAP while increasing the stock.
    The business requirement need come redefining. Do your client buy the Parent material as a set and dismantle it to individual child items?
    If that is the case, the best method to achieve this is through a production BOM. You have to create a BOM and routing and create a production order with negative qty for child items and once you confirm this order, the parent item will be consumed and child item will be increased in stock.
    Search the forum for more details about this.

  • I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    Are you using the Office for Mac 2011 version, as you need to do?  The Office for Mac 2004 is Not at all compatible with Mountain Lion, and the 2008 version has been noted to have some problems running with ML.
    Hope this helps

Maybe you are looking for

  • Splitting Message in ESB

    Hi All , I am facing a problem with spliiting message in ESB via transformation.I have this process which starts by 1. Polls for details from a single table for all customers .The polling is a logical delete on a status column only. 2.This message is

  • Macbook crashes after login, but fine in safe mode... please help!!

    So, out of nowhere my trusty macbook a few seconds after my desktop appears the computer needs to restart screen scrolls down, and that's pretty much it, as far as i'm aware I haven't changed any permissions and as far as i can see there isn't a prog

  • Loading external movies differently

    I am making a web site with several pages that the content will load as an external movie. Right now I have all loading with the nav buttons "on release". The first page loads through one blank clip and the rest in another. What I would like to do is

  • INST-6180:Error while retrieving OIM managed Server URL from the domain

    Hi All, 1). Getting the above error when running config.sh from MWHOME/Oracle_IDM1/bin/config.sh 2). I already ran the config.sh from COMMON/bin directory. 3). Extended the domain to support OIM and this ran fine. any suggestions?

  • Issues with Lion recognizing keyboard and mouse functions

    Hello everyone, I have read that there were issues with Lion so I waited for months before I upgraded hoping that there would be enough complaints to warrant a fix from the tech lords.  I decided to finally upgrade and the issues with incompatible so