Dynamics Search Engine

Sunday, November 28, 2010

How to do Picking list for an invent transfer order through a job using X++ in Dynamics AX

This article explains:
How to picking list through a job using X++ in Dynamics AX.
Applied on:
Dynamics AX 2009 SP1

Create a job as mentioned below:

static void PickingListByCode(Args _args)
{
InventTransferParmTable inventTransferParmTable;
InventTransferMultiPick inventTransferMultiPick = InventTransferMultiPick::construct();

;
InventTransferParmTable.TransferId = "transferid" //Provide transferId
inventTransferParmTable.EditLines = true;
inventTransferParmTable.AutoReceiveQty = true;
inventTransferParmTable.UpdateType = InventTransferUpdateType::PickingList;
inventTransferParmTable.PickUpdateQty =InventTransferPickUpdateQty::All ;
inventTransferMultiPick.runUpdate(InventTransferParmTable);

}

NOTE: Use at your own risk. There is no warranty on this article.

How to create an invent transfer order through X++ code in Dynamics AX

This article explains:
How to create an Invent Transfer Order through a job using X++ code.

Applied on:
Dynamics AX 2009 SP1

Create a job as mentioned below:

static void CreateTransferOrderLine(Args _args)
{

    InventTransferTable inventTransFerTable;
    InventTransferLine inventTransFerLine;
    InventTable inventTable;
    NumberSeq numberSeq;
;

    numberSeq = NumberSeq::newGetNumFromCode(Inventparameters::numRefTransferId().NumberSequence);
    inventTransferTable.TransferId = NumberSeq.num();
    inventTransferTable.InventLocationIdFrom = "FromLocation";
    inventTransferTable.InventLocationIdTo = "ToLocation";
    inventTransferTable.initFromAddress();
    inventTransferTable.initValue();
    inventTransferTable.initDeliveryMode();
    inventTransferTable.initToAddress();
    inventTransferTable.insert();
    inventTransferLine.clear();

    inventTransferLine.initFromInventTransferTable(inventTransferTable,NoYes::Yes);
    inventTransferLine.ItemId = "ItemId";
    inventTransFerLine.LineNum = InventTransferLine::lastLineNum(inventTransferTable.TransferId) + 1;
    inventTable = InventTable::find(InventTransferLine.ItemId);
    inventTransferLine.initFromInventTable(InventTable);
    inventTransferLine.QtyTransfer = 1.0;
inventTransferLine.QtyRemainReceive = 1.0;
    inventTransferLine.QtyRemainShip = 1.0;
    inventTransferLine.insert();
}



NOTE: Use at your own risk. There is no warranty on this article.

Saturday, July 24, 2010

X++ Editor enhancement in Microsoft Dynamics AX 6.0 (2011)

I was surfing net and found an interesting thing in Microsoft Dynamics AX.
Click here to see the enhancement in X++ Editor.



Note: The above link can be removed at any point of time without any notice.

Thursday, May 13, 2010

New adventure in life

Hi Friends!
After a long interval I got some leisure time to write here.
Recently I joined Accenture India facility as a team lead.
I have number of things to share with you.
Tecture is the company previously I worked with. It's a good company.
I must say Accentue is a very big company & good too.
I will be back soon with lot of new things.
Thanks for keep watching this blog.