How to update child item expense account as master item expense account

Hi,
As my master item expense account is not as same as child item expense account, I want to update
child item through item import program, what should i do, please suggest
thanks in advance
Regards,
Dhananjay

Actually, here is a better way.
insert into mtl_system_items_interface
(process_flag
,set_process_id
,segment1 ,expense_account
,organization_code
,transaction_type
(select
1,67890
,msi.segment1 ,msi2.expense_account
,mp.organization_code
,'Update'
from mtl_system_items_b msi,mtl_parameters mp, mtl_system_items_b msi2, mtl_parameters mp2
where mp2.organization_id = mp2.master_organization_id
and mp2.organization_id = msi2.organization_id
and msi2.inventory_item_id = msi.inventory_item_id
and msi.organization_id != msi2.organization_id
and nvl(msi2.expense_account,0) != nvl(msi.expense_account,0)
--and msi.segment1 ='&item_num'
And then run item import for set_process_id=67890
Hope this answers your question
Sandeep Gandhi
Omkar Technologies Inc.
Independent Techno-functional Consultant

Similar Messages

  • How to make Buyer and Planner fields in Master Items Form Required without

    How to make Buyer and Planner fields in Master Items Form Required without using personalization?
    1) Steps to Reproduce
    Under Application Developer Common Modules responsibility,
    1) Query Region MTL_SYSTEM_ITEMS
    2) Click on Region Items
    3) Add Buyer Id and Planner Code attributes with Required checkbox checked.
    4) Bounce iAS server and JVM and clear java cache
    5) Changes not taking effect
    Current Application Release: 11.5.10.2 (3460000)
    Current INV Rollup: INV.J RUP22 (9878808)
    Current WMS Rollup: WMS RUP19 (9951502)
    Product Installation List :
    Product Installation: 11i.BOM.J: Installed
    Product Installation: 11i.EGO.E: Installed
    Product Installation: 11i.ENG.I: Installed
    Product Installation: 11i.INV.J: Installed
    Product Installation: 11i.PO.I: Installed
    Product Installation: 11i.WMS.G: Installed
    client needs to make the Buyer and Planner fields under Inventory->master Items form to be required.
    He tried using the Application Developer Common Modules responsibility, to find the Master Items Region and added the Buyer Id and Planner Code attributes with the Required check-box set to Yes. He bounced the iAS server and cleared java cache, but the changes do not take effect.
    client does not want to use form personalization.
    Can you please provide more assistance for using Application Developer Common Modules responsibility?
    Edited by: jemar98 on Aug 9, 2011 1:44 PM

    A forms developer could make those fields required with a CUSTOM.pll extension if you didn't want to use forms personalization. Both are considered customizations to standard functionality and may or may not require rework after patching or upgrades.

  • How to update storage location & batch split on delivery items?

    Any idea how to perform the following using a BAPI or function call with regards to updating a Delivery (VL02/VL02N)?
    1) Enter or update a storage location on a delivery item?
    2) Batch split a delivery item to give multiple batch    numbers. For example if delivery item is '101' then    after batch split additional delivery items with batch number assigned will appear as '900001', '900002', '900003', etc Entering a single batch number is straight forward and can be done using WS_DELIVERY_UPDATE/_2
    Do not wish to use BDC or call transaction. Any help appreciated.

    hi sailatha..
    im doing BDC for VL01N transaction.. how can i pass multiple storage locations for picking quantity..  my requirement is  if the material is not there in the specified storage location it should search in the other storage locations for delivery.
    how can i solve this issue bcoz in the VL01N screen i can pass only one storage location.
    this is urgent requirement..
    kindly revert me back if u can help.
    thankx
    helpful answer will be rewarded.

  • Trying to pull in Cost of Goods Sold Account from Master Items.

    Running Oracle EBS 11.5.10.2 on 10.2.0.4 database. I have written item master code and I am now trying to pull in the Cost of Goods Sold Account from the Costing Tab in the Master Items Screen. I was able to join MTL_SYSTEM_ITEMS to GL_CODE_COMBINATIONS. Some of the accounting segments are correct but others are not, which leads me to believe I may not be joining to the correct tables. Any suggestions or hints are appreciated.
    Thank you,
    SELECT MSI.INVENTORY_ITEM_ID                INVENTORY_ITEM_ID    
    , msi.segment1                              ITEM             
    , MSI.DESCRIPTION                           DESCRIPTION
    , msi.inventory_item_status_code            INVENTORY_ITEM_STATUS_CODE
    , msi.item_type                             ITEM_TYPE
    , max (mirb.revision)                       REVISION
    , MSI.PRIMARY_UOM_CODE                      PRIMARY_UOM_CODE
    , msi.shippable_item_flag                   SHIPPABLE_ITEM_FLAG
    , NVL (CIC.ORGANIZATION_ID, '0')            ORGANIZATION_ID
    , NVL (CIC.ITEM_COST, '0')                  ITEM_COST
    , NVL (CIC.MATERIAL_COST, '0')              MATERIAL_COST
    , cct.cost_type                             COST_TYPE
    , MCB.SEGMENT1
                        ,GCC.segment1
                        ,GCC.segment2
                        ,GCC.segment3
                        ,GCC.segment4
                        ,GCC.segment5
                        ,GCC.code_combination_id
    FROM CST_ITEM_COSTS CIC
    , CST_COST_TYPES CCT
    , CST_COST_TYPES CCT2
    , MTL_SYSTEM_ITEMS MSI
    , MTL_ITEM_CATEGORIES MIC
                ,gl_code_combinations GCC
    ,MTL_CATEGORIES_B MCB
    , MTL_DEFAULT_CATEGORY_SETS MDC
    , MFG_LOOKUPS LU1
    , mtl_item_revisions_b mirb
    WHERE CCT.COST_TYPE_ID(+) = CIC.COST_TYPE_ID
    AND CCT2.COST_TYPE_ID(+) = CCT.DEFAULT_COST_TYPE_ID
    AND MSI.INVENTORY_ITEM_ID = CIC.INVENTORY_ITEM_ID(+)
    AND MSI.ORGANIZATION_ID = CIC.ORGANIZATION_ID (+)
    AND MSI.COSTING_ENABLED_FLAG = 'Y'
    AND MIC.INVENTORY_ITEM_ID (+) = CIC.INVENTORY_ITEM_ID
    AND MIC.ORGANIZATION_ID (+) = CIC.ORGANIZATION_ID
    AND MIC.CATEGORY_ID = MCB.CATEGORY_ID (+)
    AND MCB.ENABLED_FLAG = 'Y'
    AND MIC.CATEGORY_SET_ID = 1
                        AND MSI.SALES_ACCOUNT(+) = GCC.CODE_COMBINATION_ID
    AND msi.inventory_item_id = mirb.inventory_item_id
    AND msi.organization_id = mirb.organization_id
    AND LU1.LOOKUP_CODE(+) = MSI.PLANNING_MAKE_BUY_CODE
    /* the outside join below, speeds up query, not sure why */
    AND LU1.LOOKUP_TYPE(+) = 'MTL_PLANNING_MAKE_BUY'
    and cct.cost_type = 'ACTUAL'
    AND msi.organization_id = 4
    group by CIC.ROWID, MSI.INVENTORY_ITEM_ID, MSI.SEGMENT1, MSI.DESCRIPTION, MSI.INVENTORY_ITEM_STATUS_CODE,
    MSI.PRIMARY_UOM_CODE, MSI.SHIPPABLE_ITEM_FLAG, CIC.ORGANIZATION_ID, MSI.ITEM_TYPE, CIC.ITEM_COST, CIC.MATERIAL_COST,
    cct.cost_type, MCB.SEGMENT1, GCC.segment1, GCC.segment2, GCC.segment3 , GCC.segment4, GCC.segment5, GCC.code_combination_id

    Hi,
    You need to replace the join MSI.SALES_ACCOUNT(+) = GCC.CODE_COMBINATION_ID with msi.cost_of_sales_account(+) = GCC.CODE_COMBINATION_ID to get the COGS account. Currently you are getting sales account not COGS.
    Thanks
    Vishalaksha

  • How to update child record when item from parent record changes

    Hi, I have a master and detail form with two regions on the same page.
    Region one references parent record, one of column in the parent record is also in the child record. And is one to many relation
    between parent record and child record. How can I have the column on the child record updated when the column of the parent record is being modified?
    For exemple; Parent record has two columns : ID and Program.
    Child record has Program, goal# and status. I have two pages established, page 27 and page 28.
    Page 27 list out all programs from parent record, by clicking on edit to a program, it braches to page 28 with program listed as editable field in region one, and mulitple records list in region two from the child record with the same program.
    The problem that I am having is once the program in region one got modified using ApplyMRU, the program in child record did not get updated with the new value and therefore those record become orphan records. I need a way to update all current child records with the new program value.
    Thanks in advance for anyone who can hlep out on this problem.
    Julie
    Edited by: JulieHP on May 24, 2012 4:57 PM

    One Idea is
    If possible create a after update database trigger on the parent table to update the relevant child record.
    Next one
    Create a PL/SQL process on the parent page with process sequence next to ApplyMRU, so when the ApplyMRU is seccessfull it goes not to your process where you can have your update statement

  • How to Update the Country Of Origin In delivery Item

    Hi All,
    Business Requirement at Present: in the idoc we are not passing the country of origin for updating the Delivery Item data .But Business requirement is now in such a way that the country of origin has to update the delivery item from the idoc.  when i look into the Process code function module i found this function Module Z_IDOC_INPUT_DESADV2. the i found one more function Module which will update the PICK/Packing WS_DELIVERY_UPDATE which is inside that. i am unnable to update the country of origin with this FM. so please send me the best soultion.
    way to see the country Of Origin :
    go to Delivery > Double click on the Delivery Item  > chose the Tab "Foreign Trade/Customs" > with in this Tab chose sub tab "Origin / Destination / Business">>  Ctry of origin , Dispatch ctry,Region of Origin                                                 
    with Regards
    Ram

    Country of Origin for a Delivery item is passed during the packing of the delivery before shipping .
    This is a mandatory field keeping the priority high.
    Actually this has to be done from one of your pack programs (A Z pack program i dont know the scenario of ur project )lets say .
    So u can see this Country of origin in the material views ..
    Goto MM03 and in this give the material item and check this.
    Check Sales: general/plant data and the strip as Origin.
    The field will be Marc-Herkl.
    Now u if want this to be populated then u need to write a query or logic to resemble the same in the delivery item.
    Now to get to your query now ..
    So if ur idoc will not be passing the country of origin .. then how was it doing earlier ?
    //But Business requirement is now in such a way that the country of origin has to update the delivery item <b>from the idoc</b>
    In order to do this we need to enhance the idoc with one more feature by picking thcountry of origin field say from MARC-HERKL and then updating the line item into the code of ur Z_idoc_input... or an user exit which can do the same ..
    Just check in ur idoc what are all the fields u r picking ..
    and what is the standard inound idoc you are referring to so that u can find the appropriate Customer exit which will be there to do the same ..
    The logic has to be written in one of the customer function .
    regards,
    VIjay

  • How to update the Customer field value of PO Item under the Delivery Address Tab?

    Hi Friends,
         i tried to update the Customer field Using Bapi_PO_change.I passed the PO Order no,POADDRDELIVERY data with Item no,Adrees no,Customer no.But i am getting no data changed message from return table.I attached the screen shots.So please suggest me the helpful information for resoving this issue.
    Thanks,
    Dinesh

    Thank you friends,
                My Problem was resolved.In my case i have passed the customer value in BAPI_PO_CHANGE POITEM Table with updated customer value.
    Thanks,
    Dinesh

  • How to update a parent (primary key) value?

    hello...can anybody give me a hint that how to update a primary key value in master table through forms as well as update all child records keeping in mind that "ALTER TABLE" and constraint disabling is not permitted by DBA. Parent Records are being displayed in form in a database block while child records are not displayed on form.

    See
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:914629004506
    and
    http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteupdatecascade.html
    cheers

  • How to update house bank in vendor master

    Dear Experts,
    Please suggest me how to update the house banks in vendor master?  and RTGS no. and IFSC code
    If i am having thousands of vendor  do i need to create thousands house banks?
    Regards
    chandu

    Hi Chandu,
    There is no need for you to create house banks for vendors, You need to directly do the assignment in the vendor master. You can run LSMW for updating all the vendors using XK02 (Change of Vendor Master) in that Bank Details.
    Coming to RTGS and IFSC code, there are no specific fields available for these two as they are only useful in INDIAN SCENARIO, you can use Bank Number field for updating either of RTGS or IFSC code and you need to decide to use another field which is not used by your client for updating the second one.
    Decide which fields are not used and update these RTGS and IFSC code in those.
    Hope u understood.
    Regards
    Srikanth

  • ESYU: MASTER ITEM ATTRIBUTE UPDATE시 발생하는 ERROR 해결

    PURPOSE
    Master Item Attribute Update 시 발생하는 문제를 Manual Fix 시킬 수 있다.
    Problem Description
    Master Item Setup 후 종종 Attribute 값을 Update 하는 경우가 발생한다.
    이때 특정 Item의 특정 Attribute를 Update시 'FRM-40654' error가 발생하는
    경우가 있다. 이는 item attribute 들의 앞이나 뒤에 blank가 들어가 있는
    경우 발생하는 문제이며 Regacy System에서 Item Import시 blank가 들어가는데
    이것이 문제의 원인이 된다.
    아래의 script를 돌려 Item Attribute에 들어가 있는 blank를 remove한다.
    Solution Description
    set serveroutput on size 1000000
    DECLARE
    len_var1 NUMBER;
    len_var2 NUMBER;
    sql_stmt VARCHAR2(450);
    ln_cursor INTEGER;
    ln_rows_proc INTEGER := 0;
    CURSOR mtl_system_columns_cur is
    SELECT column_name
    FROM all_tab_columns
    WHERE table_name = 'MTL_SYSTEM_ITEMS_B'
    AND DATA_TYPE = 'VARCHAR2';
    BEGIN
    for cur in mtl_system_columns_cur
    Loop
    sql_stmt := 'select nvl(length(' || cur.column_name || '),0),
    nvl(length(trim(' || cur.column_name || ')),0)';
    sql_stmt := sql_stmt || ' from mtl_system_items_b ';
    sql_stmt := sql_stmt || ' where inventory_item_id = ' || &inv_id ;
    sql_stmt := sql_stmt || ' and organization_id = ' || &org_id ;
    ln_cursor := dbms_sql.open_cursor;
    DBMS_SQL.PARSE(ln_cursor,sql_stmt,dbms_sql.native);
    DBMS_SQL.DEFINE_COLUMN(ln_cursor,1,len_var1);
    DBMS_SQL.DEFINE_COLUMN(ln_cursor,2,len_var2);
    ln_rows_proc := DBMS_SQL.EXECUTE(ln_cursor);
    IF DBMS_SQL.FETCH_ROWS(ln_cursor) > 0 then
    DBMS_SQL.COLUMN_VALUE(ln_cursor,1,len_var1);
    DBMS_SQL.COLUMN_VALUE(ln_cursor,2,len_var2);
    END IF;
    DBMS_SQL.CLOSE_CURSOR(ln_cursor);
    sql_stmt := '';
    IF (len_var1 != len_var2) then
    dbms_output.put_line('Bad Column: ' || cur.column_name);
    END IF;
    len_var1 := 0;
    len_var2 := 0;
    END LOOP;
    EXCEPTION
    when Others then
    dbms_output.put_line('Error is' || sqlerrm(sqlcode));
    end;
    commit;
    Update mtl_system_items_tl
    set description= trim(description - script 결과값);
    update mtl_system_items_b
    set description = trim(description - script 결과값);

  • Personalization of Master Items Form

    Good day!
    I would like to automatically pass a value in the 'Item' field of the Master Items form. The value of which is fetched from a sequence I created. I was adviced to use forms personalization. After briefly reading the guide from metalink. I came up with the following:
    Function Name: INV_INVIDITM
    Form Name: INVIDITM
    Debug Mode: Off
    Seq:90
    Description: Test
    Level: Function
    Condition:
    Trigger Event: WHEN-NEW-FORM-INSTANCE
    Trigger Object: (blank)
    Condition: (blank)
    Processing Mode: Not in Enter-Query Mode
    Actions:
    Seq: 10
    Type: Property
    Enabled: (checked)
    Object Type: Item
    Target Object: MTL_SYSTEM_ITEMS.INVENTORY_ITEM_MIR
    Value: =SELECT seq_name.nextval FROM DUAL
    However, I get the error 'The String =SELECT seq_name.nextval FROM DUAL could not be evaluated because of error ORA-02287: sequence number not allowed here' when I try to click on validate.
    Could someone kindly shed some light on how I can accomplish my task.
    Kindest regards,

    I forgot to lsit the 'Property Name' value is 'INITIAL_VALUE'
    thanks

  • How to update an existing item in a sharepoint list using the WSS adapter for Biztalk

    Is there a way that a record in SP list be updated using WSS adapter in biztalk ?
    BizTalk 2013 and SP 2013 ..
    Regards
    Ritu Raj
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    A ListItem has its own unique row id so in all likelihood, an insert with the same data will result in a new list entry. The Lists Web Service however, has an UpdateListItem method which will take an update request. [refer
    http://msdn.microsoft.com/en-us/library/office/websvclists.lists.updatelistitems(v=office.15).aspx ]
    There is another note in the conference (marked answered) to your List Item Update problem. Probably worth a try too. [refer
    http://social.msdn.microsoft.com/Forums/en-US/bee8f6c6-3259-4764-bafa-6689f5fd6ec9/how-to-update-an-existing-item-in-a-sharepoint-list-using-the-wss-adapter-for-biztalk?forum=biztalkgeneral ]
    Regards.

  • I am updating iphoto 9.1 to 9.3 and every time when I clicked for update aps store asked to open it in the account where you purchased. I am using the same account and its available in the purchased item of this account. Can someone resolve this problem.

    I am updating iphoto 9.1 to 9.3 and every time when I clicked for update aps store asked to open it in the account where you purchased. I am using the same account and its available in the purchased item of this account. But in my purchased item library it indicates that you update iPhoto. I am not sure which account the aps store asking. Can someone resolve this problem.

    Contact App Store support. They're the folks who can help with Account issues.
    Regards
    TD

  • How to update the condition price in the sales order for all the items

    Hi,
    How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
    Thanks,
    Balaram

    Hi,
    There is a change in the requirement.
    Scenario:
    I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
    For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
    Thanks.
    Balaram

  • How to update software on multiple iPhones using same iTunes account?

    How to update software on multiple iPhones using same iTunes account?

    SeanB15 wrote:
    Here are more details on my situation which should help clarify things...
    I purchased three iPhone 4 models back when they first came out (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library.  The problem is (as I understand it) that I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct without wiping out the separate contact lists, etc. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates and still be able to manage separate contact lists, etc. If I go this route, I assume we will lose all the apps on phones #2 and #3 that we have been "sharing"... correct? Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, one of you can help me??
    we have 2 iphone 4's synced to the same itunes account for apps and music since the day we bought them, but each has a different icloud acct. they have both been updated on the same itunes account with every update that has come out since we bought them in december of 2010. nothing on either phone has ever been lost or duplicated. having said all that, maybe i'm missing something here, but we have had no problems. we do have itunes setup to sync manually. i do believe i'm a piker compared to lawrence finch, but i'm just telling you what happens in my house. maybe check with apple? is there a store near you?

Maybe you are looking for