<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.schweda.net/style_feed.css" ?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:atom="http://www.w3.org/2005/Atom"	
	xmlns:dc="http://purl.org/dc/elements/1.1/" > 
<channel>
    <title>schweda.net - Blog</title>
    <link>https://www.schweda.net/</link>
    <description>schweda.net - Blog - Blog-Beitraege</description>
    <language>de-at</language>
    <copyright>Copyright 2006-2026</copyright>
    <generator>schweda.net</generator>
    <managingEditor>heinz.schweda@schweda.net (Heinz Schweda)</managingEditor>
    <webMaster>heinz.schweda@schweda.net (Heinz Schweda)</webMaster>
    <category>Blog</category>
	<atom:link href="https://schweda.net/blog_rss.php?bid=381" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[AxInventTable: Artikel per Code anlegen in Dynamics AX 2009]]></title>
<description><![CDATA[
<p>Um einen Artikel in Dynamics AX 2009 anzulegen kann man sich - wie schon in <a title="AxInventTable" target="_self" href="http://www.schweda.net/blog_ax.php?bid=193">fr&uuml;heren Versionen</a> - der Klasse <strong>axInventTable</strong> bedienen. Dies Klasse hat den grossen Vorteil, da&szlig; sie sich auch um jene Tabellen k&uuml;mmert, die neben der <em>inventTable </em>bef&uuml;llt werden m&uuml;ssen, also die drei Datens&auml;tze in der <em>inventTableModule </em>und jenen in der <em>InventItemLocation</em>, soda&szlig; der Artikel sofort in der Form <em>InventTable </em>aufscheint.
</p>

<div class="div_blog_axcode"><span style="color: rgb(0,0,255)">static void</span> createItemUsingAxInventTable(Args _args)<br />
{<br />
&nbsp;&nbsp;&nbsp; axInventTable axInventTable;<br />
&nbsp;&nbsp;&nbsp; ;<br />
&nbsp;&nbsp;&nbsp; axInventTable = axInventTable::construct();<br />
&nbsp;&nbsp;&nbsp; axInventTable.parmItemId(<span style="color: rgb(255,0,0)">'NewItemId'</span>);<br />
&nbsp;&nbsp;&nbsp; axInventTable.save();<br />
}
</div>

<p>Etwas sollte man bei Verwendung der Klasse allerdings ber&uuml;cksichtigen: Obiger Job erstellt den Artikel, ohne eventuelle Pflichtfelder wie z.B. die Artikelgruppe zu bef&uuml;llen. Das aber auch nur, wenn es keine Datensatzvorlage vom Typ <strong>Unternehmensvorlage </strong>gibt. Gibt es eine solche Standardvorlage f&uuml;r den Artikelstamm, so nutzt AX diese!
</p>

<p>&nbsp;
</p>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Sat, 15 May 2010 20:10:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=381</link>
<comments>https://www.schweda.net/blog_ax.php?bid=381</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=381</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=381</wfw:commentRss>
</item>
</channel>
</rss>	
