<?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=523" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Produktionsauftrag per Code vorkalkulieren]]></title>
<description><![CDATA[
<p><img alt="Screenshot" height="114" src="http://www.schweda.net/pictures/blogpics/ax2012_prodtable_status_estimate.jpg" style="border-bottom:#cccccc 1px solid; border-left:#cccccc 1px solid; border-right:#cccccc 1px solid; border-top:#cccccc 1px solid" title="Screenshot" width="465" />
</p>


<p>Dynamics AX stellt ein Framework zur Verf&uuml;gung, mit dessen Hilfe man Produktionsauftr&auml;ge in einen bestimmten Status &uuml;berf&uuml;hren kann. Im Beispiel wird ein Produktionsauftrag vorkalkuliert.
</p>


<p>Wenn man mehrere Auftr&auml;ge gleichzeitig aktualisieren m&ouml;chte, muss man die Methode ProdMultiCostEstimation.insert() einfach entsprechend oft aufrufen und den jeweiligen Datensatz der ProdTable &uuml;bergeben.
</p>


<pre class="pre_blog_axcode">
static void prodCostEstimation(Args _args)
{
&nbsp;&nbsp;&nbsp; ProdTable prodTable;
&nbsp;&nbsp;&nbsp; ProdMultiCostEstimation prodMultiCostEstimation;

&nbsp;&nbsp;&nbsp; prodTable = ProdTable::find(&quot;P000160&quot;);

&nbsp;&nbsp;&nbsp; prodMultiCostEstimation =
&nbsp; &nbsp;&nbsp;ProdMultiCostEstimation::construct(new Args());

&nbsp;&nbsp;&nbsp; RunBaseMultiParm::initParm(prodMultiCostEstimation);
&nbsp;&nbsp;&nbsp; prodMultiCostEstimation.insert(
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;prodTable,
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;prodMultiCostEstimation.defaultParmBuffer());

&nbsp;&nbsp;&nbsp; prodMultiCostEstimation.run();
}
</pre>


<p>&nbsp;
</p>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Sat, 19 Jul 2014 19:27:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=523</link>
<comments>https://www.schweda.net/blog_ax.php?bid=523</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=523</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=523</wfw:commentRss>
</item>
<item>
<title>Kommentar von Peter</title>
<description><![CDATA[Thanks!]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Wed, 21 Mar 2018 17:19:00 +0100</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=523</link>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=523</guid>
<author>Peter</author>
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Heinz Schweda</dc:creator>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=523</wfw:commentRss>
</item>
<item>
<title>Kommentar von Matteo</title>
<description><![CDATA[Works like a charm also in AX2009. Thanks!]]></description>
<category></category>
<pubDate>Wed, 07 Nov 2018 12:00:00 +0100</pubDate>
<link>https://www.schweda.net/blog.php?bid=523</link>
<guid isPermaLink="true">https://www.schweda.net/blog.php?bid=523</guid>
<author>Matteo</author>
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Heinz Schweda</dc:creator>
<wfw:commentRss>https://www.schweda.net/blog.php?bid=523</wfw:commentRss>
</item>
</channel>
</rss>	
