How do I identify parent item in ADG

Hi All,
Is there any way to identify whether or not you are in a top level (parent) row when using HierarchicalData in an ADG?
Id like to have a checkbox in one of the columns but ONLY for the parent rows and can't seem to find a way to accomplish that. I have an itemRenderer for the checkbox now but it's showing in all the rows, parent and all children when opened.
Thanks in advance,
Rick

Chris,
Thanks, that worked. Now my issue is referencing the function I have for the click event of the checkbox since the code is now moved out of my equipment.mxml file. I've been working with flex for about 3 months now and I always have an issue with this. Here's what i tried:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        <![CDATA[
            import mx.core.Application;
        ]]>
    </mx:Script>
    <mx:CheckBox
            click="Application.application.equipment.toggleWorkOrder()"
            selected="false"
            toolTip="Click to create a work order."
            horizontalCenter="0" verticalCenter="0"/>
</mx:Canvas>
The toggleWorkOrder function is public but it's not being activated when I click the box.
Any Ideas?
Thanks again,
Rick

Similar Messages

  • 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

  • How do I identify parent/child relationship

    How do I identify parent/child relationship in Designer?

    turn your object into a symbol, and place multiple instances of it on the artboard, when you edit the symbol all instances will update.

  • 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.

  • How to connect  & display parent items to child items

    Hi,
    Can any body help me ,
    I have taken the pick list in PLD  that is  having child item , that child item ,i am trying to point Bill of material  item form which itself having child items I want to display that one .
    Thanks,
    Ruheena Tasneem.

    Hi Ruheena ,
    You have to use query or Crystal report to get that.  PLD has very limited function in SQL part.
    Thanks,
    Gordon

  • How to identify BOM items in the report

    Hi,
    I have a requirement from the user that they want to exclude all BOM items from the report which is showing all the Items.So how can i identify those items from the report query??
    Thanks

    SELECT DISTINCT
    DECODE (ooh.flow_status_code,
    'PENDING_CUSTOMER_ACCEPTANCE', NULL,
    'DRAFT', NULL,
    'DRAFT_CUSTOMER_REJECTED', NULL,
    'DRAFT_SUBMITTED', NULL,
    ooh.order_number)
    Ord,
    ottt.name ord_type,
    ooh.ordered_date Order_Date,
    ooh.quote_number quote_no,
    ool.line_number LNum,
    ooh.flow_status_code Order_status,
    -- hca.account_number Customer_number ,
    ool.flow_status_code line_status,
    PAB.PARTY_NAME bill_Customer_Name,
    ACB.ACCOUNT_NUMBER bill_Customer_number,
    PAS.PARTY_NAME ship_Customer_name,
    ACS.ACCOUNT_NUMBER ship_to_Customer_Number,
    ool.unit_selling_price selling_price,
    ool.unit_list_price list_price,
    ool.ORDERED_ITEM pNum,
    ooh.booked_date Date_booked,
    ool.Actual_shipment_date Ship_date,
    ooh.header_id header_id,
    mtl.description pDesc,
    gcc.segment4 Revenue_account,
    -- ooh.shipping_instructions,
    REPLACE (ooh.SHIPPING_INSTRUCTIONS, CHR (10), ',')
    shipping_instructions,
    ool.schedule_ship_date SSD,
    DECODE (ool.flow_status_code,
    'BOOKED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_FULFILLMENT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'ENTERED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RETURN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RECEIPT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SHIPPED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_SHIPPING', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'OFFER_EXPIRED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'XXMI_WAIT_MSA', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT_SUBMITTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'LOST', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'INTERNAL_REQ_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'PO_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
    NULL)
    Qty_Remning,
    DECODE (ool.flow_status_code,
    'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
    NULL)
    INV_AMOUNT,
    ool.ordered_quantity - NVL (ool.cancelled_quantity, 0) qua_ord,
    (NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0)
    Ext_value,
    -- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N') Credit_Hold ,
    ooh.cust_po_number PONUm
    FROM apps.oe_order_headers_all ooh,
    apps.oe_order_lines_all ool,
    apps.mtl_system_items_b mtl,
    apps.org_organization_definitions ood,
    apps.gl_code_combinations gcc,
    AR.HZ_PARTIES PAH,
    AR.HZ_CUST_ACCOUNTS ACH,
    AR.HZ_CUST_SITE_USES_ALL SUB,
    AR.HZ_CUST_ACCT_SITES_ALL STB,
    AR.HZ_CUST_ACCOUNTS ACB,
    AR.HZ_PARTIES PAB,
    AR.HZ_CUST_SITE_USES_ALL SUS,
    AR.HZ_CUST_ACCT_SITES_ALL STS,
    AR.HZ_CUST_ACCOUNTS ACS,
    AR.HZ_PARTIES PAS,
    apps.oe_transaction_types_tl ottt,
    apps.per_all_people_f papf
    -- apps.OE_ORDER_HOLDS_ALL ooha,
    -- apps.OE_HOLD_SOURCES_ALL ohsa
    -- ,apps.OE_HOLD_DEFINITIONS Hod_def
    WHERE ooh.header_id = ool.header_id
    AND ool.org_id = NVL (:p_org_id, ool.org_id)
    AND ool.flow_status_code != 'CLOSED'
    --and    ooha.header_id(+) = ooh.header_id
    --and ooha.line_id(+) = ool.line_id
    --and   ohsa.hold_source_id = ooha.hold_source_id
    --and ohsa.hold_id = Hod_def.hold_id
    --and ohsa.RELEASED_FLAG = 'N'
    AND ooh.attribute2 = papf.person_id(+)
    AND ottt.language = 'US'
    AND ooh.order_type_id = ottt.transaction_type_id(+)
    AND ooh.open_flag = 'Y'
    --and ooh.order_number = '40000791'
    AND ooh.SOLD_TO_ORG_ID = ACH.CUST_ACCOUNT_ID
    AND ACH.PARTY_ID = PAH.PARTY_ID
    AND oOH.INVOICE_TO_ORG_ID = SUB.SITE_USE_ID(+)
    AND SUB.CUST_ACCT_SITE_ID = STB.CUST_ACCT_SITE_ID(+)
    AND STB.CUST_ACCOUNT_ID = ACB.CUST_ACCOUNT_ID(+)
    AND ACB.PARTY_ID = PAB.PARTY_ID(+)
    AND oOH.SHIP_TO_ORG_ID = SUS.SITE_USE_ID
    AND SUS.CUST_ACCT_SITE_ID = STS.CUST_ACCT_SITE_ID
    AND STS.CUST_ACCOUNT_ID = ACS.CUST_ACCOUNT_ID
    AND ACS.PARTY_ID = PAS.PARTY_ID
    -- and SOH.CANCELLED_FLAG ='N'
    AND ool.inventory_item_id = mtl.inventory_item_id
    AND ool.org_id = mtl.organization_id
    AND mtl.sales_account = gcc.code_combination_id
    AND ool.org_id = ood.organization_id
    --and    ooh.salesrep_id       = jrs.salesrep_id
    --&LP_INCL_QUOTES
    GROUP BY DECODE (ooh.flow_status_code,
    'PENDING_CUSTOMER_ACCEPTANCE', NULL,
    'DRAFT', NULL,
    'DRAFT_CUSTOMER_REJECTED', NULL,
    'DRAFT_SUBMITTED', NULL,
    ooh.order_number),
    ottt.name,
    ooh.ordered_date,
    ooh.quote_number,
    ool.line_number,
    ooh.flow_status_code,
    --- hca.account_number ,
    ool.flow_status_code,
    PAB.PARTY_NAME,
    ACB.ACCOUNT_NUMBER,
    PAS.PARTY_NAME,
    ACS.ACCOUNT_NUMBER,
    ool.unit_selling_price,
    ool.unit_list_price,
    ooh.shipping_instructions,
    ool.ORDERED_ITEM,
    ooh.booked_date,
    ool.Actual_shipment_date,
    ooh.header_id,
    mtl.description,
    gcc.segment4,
    ooh.cust_po_number,
    (NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0),
    ool.schedule_ship_date,
    DECODE (ool.flow_status_code,
    'BOOKED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_FULFILLMENT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'ENTERED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RETURN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RECEIPT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SHIPPED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_SHIPPING', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'OFFER_EXPIRED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'XXMI_WAIT_MSA', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT_SUBMITTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'LOST', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'INTERNAL_REQ_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'PO_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
    NULL),
    DECODE (ool.flow_status_code,
    'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
    NULL),
    ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)
    -- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N')
    -- (hz_loc.Address1||','||hz_loc.Address2||','||hz_loc.City||','||hz_loc.State)
    HAVING (ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)) >
    SUM (NVL (ool.shipped_quantity, 0))
    ORDER BY 1, 2, 3;

  • How do I identify items purchased on iPad but not transferred to iTunes library?

    In attempting to update the iOS on my iPad from 4.3 to 4.3.2, I get a message that I have items purchased on my iPad that have not been transferred to my iTunes library. It asks me if I want to continue with the update, or cancel it and first transfer my items purchased to my iTunes library before updating my iOS.
    I have attempted to transfer these items in 2 ways. I have right-clicked my device in iTunes and selected "Transfer purchases", and a screen opens that tells me that it is transferring purchases to my iTunes library, but the sync completes very quickly and I suspect that nothing is synced. I also have used the File/Transfer Purchases from iPad menu in iTunes with the same result (message that it is transferring purchases, but the sync completes immediately). Yet every time I try to update to iOS 4.3.2 I get the same message that I have items purchased on my iPad that need to be transferred to my iTunes library.
    At this point in time, I am uncertain whether I really do have items purchased on my iPad that need to be transferred to my iTunes library. Or if in fact I do, how do I identify such items as the Transfer Purchases approaches I have used in iTunes isn't transferring those items?
    I could brute force it and maually compare every song and app I have purchased from iTunes to make sure they exist in my library, but with hundreds of apps and songs purchased, that could be a very time-consuming proposition. Ideas, anyone?

    I've gotten this message with the last two upgrades. After 'transferring' purchases, it continued to appear.
    I just disregarded the warning and everything seems fine now.

  • How to create multiple BOM of same parent item?

    Hi All,
    Please guide me, How to create multiple BOM of same parent item? I tried but system throws a message as same Parent Item already exist in the table. I am afraid if system supports this functionality or not?

    Hi,
    You are welcome.......
    Well the exact process would be as I mentioned in my previous post.
    1. Create the BOM for an item
    2. Choose this item in the Production Order
    3. Then in this Production order you can change/ delete/ add whichever item you want .
    OR
    If all the child items are completely different from the original BOM then you can use the Special Type BOM in which you can always create the BOM while creating the Production Order itself. There is no standard BOM here.
    J Nagesh

  • 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.

  • How to create child part from Parent Item - BLOW UP Master - Automatically

    Hi to All,
    Have any one defined this process?
    To create child part from Parent Item - BLOW UP Master - Automatically ie. we receive FG from customer which we need to blow up to its child part. In that case, FG should be consumed & child parts should be generated in stock.
    We tried with recursive, but the stock of FG was again generating with recursive.
    Ex. FG after receiving from customer in stock 1
    Child parts (with offtake 1) X1, X2, X3 in stock zero.
    After processing, FG stock should be zero & X1, X2, X3 = 1.
    Regards
    Nitin

    Create a BOM for one of the "child" parts that has the "FG from customer" as a component and all the other child parts are negative quantity components (by products).
    To make it simple have all the components backflushed and auto goods receipt the child in the BOM header.  Create a production order, then process the confirmation (this will auto goods receipt the 1st child, consume by backflush the "FG from customer" and put the other child parts into stock as by products.
    You will need to get your material prices correct first so that there is minimal variance in the production order.

  • Get Parent Item of AdvancedDataGrid selectedItem

    I have an AdvancedDataGrid (ADG) where the top level items
    are instances of my custom valueObject Class "State". The second
    level items are instances of another custom valueObject Class -
    "City". When I select an "City" item in the ADG, I want to find the
    parent item in the DataProvider for that City. I'm using
    HierarchicalData as my DataProvider. FYI, I'm not looking for how
    to capture the event, I'm wanting to find out if there is some
    function or utility for finding out the Class of an Object.

    Sorry I tried this, trying help from the macscripter site too.
    Thanks
    set openPanel to current application's NSOpenPanel's openPanel()
    openPanel's setMessage:"Please select images:"
    openPanel's setShowsHiddenFiles:false
    openPanel's setAllowsMultipleSelection:true
    set returnCode to openPanel's runModal() as integer
    if returnCode = (current application's NSFileHandlingPanelOKButton) as integer then
       set firstFile to openPanel's URLs()'s firstObject()'s |path|()
       set resultFilesFolder to firstFile's stringByDeletingLastPathComponent() as text
    end if

  • 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 .

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

  • 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.

  • How to update selected list items in SharePoint 2010?

    Hello All
    I have a list containing field named "Category". I want to develope a solution which will take two inputs: Old Category and New Category. The expected result is: all the list items will be fetched which have Old Category input value in
    their category field and the field is replaced with the input value New Category.
    I have a limitation that I can not use Visual Studio. So I am thinking to create aspx page with content editor webpart. But I am new to all these things. Could you please suggest the development approach for this?
    Thanks.

    Hello,
    I don't think CEWP can help you because you won't be able to find old and new category when there is any change in list. However you can identify the latest modified item from list but how will you identify whether category is old or new. If you have any
    other column in list which can tell you that category value has been updated then you can write ECMA or Jquery script to update other items.
    If have any column in list then see below jquery code, where you will see how to query the list: (In my case it is Active)
    var soapEnv = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'><soapenv:Body><GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>";
    soapEnv += "<listName>Highlights</listName>";
    soapEnv += "<query><Query><Where><Eq><FieldRef Name='Active' /><Value Type='Text'>Yes</Value></Eq></Where><OrderBy Override='TRUE'><FieldRef Name='Modified' Ascending='FALSE' /></OrderBy></Query></query>";
    soapEnv += "<viewFields><ViewFields><FieldRef Name='Title'/><FieldRef Name='ows_FileLeafRef'/><FieldRef Name='Links'/></ViewFields></viewFields><rowLimit></rowLimit>";
    soapEnv += "</GetListItems></soapenv:Body></soapenv:Envelope>";
    Please comment if i misunderstood you?
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for