You are creating a movement based on salesLine which will result in an
instance of InventMov_sales. This class does not override the
insertChildBuffer(), hence you get the error (as designed).

If you want to test the InventUpd_ChildReference class, you need a
movement for a childbuffer, e.g InventMov_Sales_JournalPickingList . To
create this you need a childBuffer and pass that, along with the normal
buffer, to the movement construct().

Take a look at the SalesPickingListJournalLine to see how the
InventUpd_ChildReference is used. There is also some useful
documentation provided by Harry here
http://www.systomatics.biz/proj01.htm


/Lennart

-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Syner P
Sent: 1. maj 2006 15:48
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] InventUpd_ChildReference

Hi all,
  
  I wrote a job in order to analyse InventUpd_ChildReference class. But
I am receiving an error message : InventMovement.insertChildBuffer must
be overridden.
  
  Does somebody an advice to correct this error.
  
  BR
  
  static void Job1(Args _args)
{
    InventUpd_ChildReference    childReference;
    InventMovement                  movement;
    InventQty                           qty;
    UnitQty                              qtyUnit;
    SalesLine                          salesLine;
    InventTransChildRefId          inventTransChildRefId;
    ;
      select * from salesLine
        where salesLine.ItemId=='B-R14' &&
        salesLine.SalesId=='00025_036';
      ttsBegin;
      qty     = salesLine.SalesQty;
    qtyUnit = salesLine.salesQty;
      inventTransChildRefId  =
NumberSeq::newGetNum(InventParameters::numRefInventTransId()).num();
          movement = InventMovement::construct(salesLine);
        childReference =
InventUpd_ChildReference::newParameters(movement,-qty,-qtyUnit,false,
salesLine.InventDimId);
        childReference.updateNow();
      ttsCommit;
}

           
---------------------------------
How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call
rates.

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



Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
Yahoo! Groups Links








Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.




SPONSORED LINKS
Business finance course Business to business finance Small business finance
Business finance consultant Business finance magazine Business finance schools


YAHOO! GROUPS LINKS




Reply via email to