Try the following code :

void updateCostEstimation(ProdId prodId)
{
    ProdMultiCostEstimation     prodMultiCostEstimation;
    Args                        args;
    ProdParmCostEstimation      prodParmCostEstimation;
    ProdPurch                   prodPurch;
    ProdTable                   prodTable;
    ;

    prodTable = ProdTable::Find(prodId);
    prodMultiCostEstimation = new ProdMultiCostEstimation();
    prodPurch = prodPurch::newProd();

    RunBaseMultiParm::initFromForm( prodMultiCostEstimation, args );

    prodMultiCostEstimation.insert( prodTable, prodParmCostEstimation );

    prodTable.status().runCostEstimation( prodParmCostEstimation,
false, prodPurch );

}--- In [email protected], "Alfonso Collados Arroyo"
<[EMAIL PROTECTED]> wrote:
> Hi all.
>
> I need to estimate Production Orders by code. It seems I have to use the
> class ProdUpdCostEstimation or ProdMultiCostEstimation, but I am lost.
>
> Any idea or suggestion?
>
> Thanks very much
>

>
>
>
>
>
> --------------------------------------------------------------
>
> This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and
do not disclose the contents to any other person, use it for any
purpose or store or copy the information in any medium. Any
unauthorized disclosure, use or storage is prohibited and might be
unlawful.
>

>
>
> [Non-text portions of this message have been removed]






SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to