{"id":24,"date":"2008-01-28T22:39:38","date_gmt":"2008-01-28T21:39:38","guid":{"rendered":"http:\/\/mibuso.com\/blogs\/alexchow\/2008\/01\/28\/sharing-the-item-table-in-version-50\/"},"modified":"2008-01-28T22:39:38","modified_gmt":"2008-01-28T21:39:38","slug":"sharing-the-item-table-in-version-50","status":"publish","type":"post","link":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/","title":{"rendered":"Sharing the Item table in version 5.0"},"content":{"rendered":"<p>If you&#8217;re in an environment where you have multiple companies setup and each company uses the same items, you might be tempted to share the item table across all companies.<\/p>\n<p>In versions prior to 5.0, you can get away with this since the Adjust Cost process are done using the Item Ledger and Item Application Entry table. When inventory is taken out, it&#8217;ll use the proper average cost when the Adjust Cost process is ran.<\/p>\n<p>However, in version 5.0, they introduced the Avg. Cost Adjmt. Entry Point table and the Cost is Adjust field on the item card. This means that if if you just share the tables and adjust cost is ran for Company A, it&#8217;ll mark the Cost Is Adjusted to true. This means that the Adjust Cost process will never be ran for Company B. In addition, when transactions are posted for Company B, it&#8217;ll look at the Avg. Cost Adjmt. Entry Point table and detect that the cost has not been adjusted and mark it for adjustment again.<\/p>\n<p>The best solution to this problem is to suggest the users to update item information for both companies. However, if the business requirement is to share the Item table, it&#8217;s recommended that you keep the tables separate. And write a batch process to update items\u00a0at the end of day or if it needs to be real time, write code to something like:<\/p>\n<p>\u00a0 ItemCompanyB.CHANGECOMPANY(&#8216;Company B&#8217;);<br \/>\n\u00a0 IF ItemCompanyB.GET(&#8220;No.&#8221;) THEN BEGIN<br \/>\n\u00a0\u00a0\u00a0 CostPostedGL := ItemCompanyB.&#8221;Cost is Posted to G\/L&#8221;;<br \/>\n\u00a0\u00a0\u00a0 CostAdj := ItemCompanyB.&#8221;Cost is Adjusted&#8221;;<br \/>\n\u00a0\u00a0\u00a0 UnitCost := ItemCompanyB.&#8221;Unit Cost&#8221;;<br \/>\n\u00a0\u00a0\u00a0 ItemCompanyB.TRANSFERFIELDS(Rec);<br \/>\n\u00a0\u00a0\u00a0 ItemCompanyB.&#8221;Cost is Posted to G\/L&#8221; := CostPostedGL;<br \/>\n\u00a0\u00a0\u00a0 ItemCompanyB.&#8221;Cost is Adjusted&#8221; := CostAdj;<br \/>\n\u00a0\u00a0\u00a0 ItemCompanyB.&#8221;Unit Cost&#8221; := UnitCost;<br \/>\n\u00a0\u00a0\u00a0 IF NOT ItemCompanyB.INSERT THEN<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0 ItemCompanyB.MODIFY;<br \/>\n\u00a0 END;<\/p>\n<p>You can probably write a better code, but you should be able to get the idea. This will also require that all the item master information be entered into one company.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re in an environment where you have multiple companies setup and each company uses the same items, you might be tempted to share the item table across all companies. In versions prior to 5.0, you can get away with this since the Adjust Cost process are done using the Item Ledger and Item ApplicationRead more<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[33,55],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-inventory-costing","tag-share-tables"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sharing the Item table in version 5.0 | Confessions of a Dynamics 365 Business Central Consultant<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex Chow\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/\"},\"author\":{\"name\":\"Alex Chow\",\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#\\\/schema\\\/person\\\/3213720f9affa9b5be0511da90c51c0d\"},\"headline\":\"Sharing the Item table in version 5.0\",\"datePublished\":\"2008-01-28T21:39:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/\"},\"wordCount\":330,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#organization\"},\"keywords\":[\"inventory costing\",\"Share Tables\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/\",\"url\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/\",\"name\":\"Sharing the Item table in version 5.0 | Confessions of a Dynamics 365 Business Central Consultant\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#website\"},\"datePublished\":\"2008-01-28T21:39:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/sharing-the-item-table-in-version-50\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Uncategorized\",\"item\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/category\\\/uncategorized\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Sharing the Item table in version 5.0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#website\",\"url\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/\",\"name\":\"APC Dynamics | Dynamics 365 Business Central Consultant\",\"description\":\"Dynamics 365 Business Central experts. Less Talk. More Results.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#organization\",\"name\":\"APC Dynamics\",\"url\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/APCLogo216.png\",\"contentUrl\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/APCLogo216.png\",\"width\":216,\"height\":216,\"caption\":\"APC Dynamics\"},\"image\":{\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/APCommerceInc\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/ap-commerce-inc-\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCkM_LLmB4333D4Arjk0knyw\\\/about\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/#\\\/schema\\\/person\\\/3213720f9affa9b5be0511da90c51c0d\",\"name\":\"Alex Chow\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"Alex Chow\"},\"url\":\"https:\\\/\\\/www.apcdynamics.com\\\/articles\\\/author\\\/alex-chow\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sharing the Item table in version 5.0 | Confessions of a Dynamics 365 Business Central Consultant","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/","twitter_misc":{"Written by":"Alex Chow","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/#article","isPartOf":{"@id":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/"},"author":{"name":"Alex Chow","@id":"https:\/\/www.apcdynamics.com\/articles\/#\/schema\/person\/3213720f9affa9b5be0511da90c51c0d"},"headline":"Sharing the Item table in version 5.0","datePublished":"2008-01-28T21:39:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/"},"wordCount":330,"commentCount":0,"publisher":{"@id":"https:\/\/www.apcdynamics.com\/articles\/#organization"},"keywords":["inventory costing","Share Tables"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/","url":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/","name":"Sharing the Item table in version 5.0 | Confessions of a Dynamics 365 Business Central Consultant","isPartOf":{"@id":"https:\/\/www.apcdynamics.com\/articles\/#website"},"datePublished":"2008-01-28T21:39:38+00:00","breadcrumb":{"@id":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.apcdynamics.com\/articles\/sharing-the-item-table-in-version-50\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.apcdynamics.com\/articles\/"},{"@type":"ListItem","position":2,"name":"Uncategorized","item":"https:\/\/www.apcdynamics.com\/articles\/category\/uncategorized\/"},{"@type":"ListItem","position":3,"name":"Sharing the Item table in version 5.0"}]},{"@type":"WebSite","@id":"https:\/\/www.apcdynamics.com\/articles\/#website","url":"https:\/\/www.apcdynamics.com\/articles\/","name":"APC Dynamics | Dynamics 365 Business Central Consultant","description":"Dynamics 365 Business Central experts. Less Talk. More Results.","publisher":{"@id":"https:\/\/www.apcdynamics.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.apcdynamics.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.apcdynamics.com\/articles\/#organization","name":"APC Dynamics","url":"https:\/\/www.apcdynamics.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.apcdynamics.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/www.apcdynamics.com\/articles\/wp-content\/uploads\/2025\/05\/APCLogo216.png","contentUrl":"https:\/\/www.apcdynamics.com\/articles\/wp-content\/uploads\/2025\/05\/APCLogo216.png","width":216,"height":216,"caption":"APC Dynamics"},"image":{"@id":"https:\/\/www.apcdynamics.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/APCommerceInc\/","https:\/\/www.linkedin.com\/company\/ap-commerce-inc-\/","https:\/\/www.youtube.com\/channel\/UCkM_LLmB4333D4Arjk0knyw\/about"]},{"@type":"Person","@id":"https:\/\/www.apcdynamics.com\/articles\/#\/schema\/person\/3213720f9affa9b5be0511da90c51c0d","name":"Alex Chow","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Alex Chow"},"url":"https:\/\/www.apcdynamics.com\/articles\/author\/alex-chow\/"}]}},"_links":{"self":[{"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apcdynamics.com\/articles\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}