Tuesday, October 12, 2010

RegisterPickList from x++ code

static void RegisterPickList(Args _args)
{

//Transfer Order Shipment

InventDim _InventDim;
WmsOrdertrans _WmsOrdertrans;
WmsPickingRoute _WmsPickingRoute;
Map selectedLines = new Map(Types::Int64,Types::Container);

_InventDim.inventSiteId = "NAR";
_inventDim.inventBatchId = "000000428";
_inventDim.InventLocationId = "NARS1";
_inventDim.WmsLocationId = "Silo105";

_inventDim = InventDim::findOrCreate(_inventDim);

ttsbegin;

SELECT FORUPDATE _WmsOrdertrans WHERE _WmsOrdertrans.inventTransId == "000003231"
JOIN _WmsPickingRoute WHERE _WmsPickingRoute.pickingRouteID == _WmsOrdertrans.routeId;
//We have more available on line than needed

_WmsOrdertrans.qty = 1;
_wmsOrderTrans.inventDimId = _inventDim.inventDimId;
_WmsOrdertrans.update();

_WmsOrdertrans.qty = 9;
_wmsOrderTrans.inventDimId = _inventDim.inventDimId;
_WmsOrdertrans.update();
selectedLines.insert(_WmsOrdertrans.RecId,[_WmsOrdertrans.OrderId,_WmsOrdertrans.RecVersion]);

ttscommit;
WMSOrderTransType::finishPickingLinesMulti(selectedLines.pack(),_WMSPickingRoute.CurrentPickPalletId,_WMSPickingRoute.Operator);
}

Monday, October 11, 2010

Custom job to have the AIF run instantly at the click of a button,

static void runAIFReceive(Args _args)
{
AifGatewayReceiveService aifGatewayReceiveService;
AifInboundProcessingService aifInboundProcessingService;
;

aifGatewayReceiveService = new AifGatewayReceiveService();
aifGatewayReceiveService.run();
aifInboundProcessingService = new AifInboundProcessingService();
aifInboundProcessingService.run();
}

Monday, May 11, 2009

New Layers in Ax-2009


4 layers have been renamed in Dynamics AX 2009 . DIS / DIP / LOS / LOP have become HFX / SL1 / SL2 / SL3 respectively. HFX is reserved for releasing hot fixes, and the 3 new solution layers (SL1/SL2/SL3) will be used to release Microsoft Dynamics Industry Solutions.