Find Invent Onhand by date [Dynamics AX , X++]

Friends, This code snippet will help us to get posted , deducted , received quantity on specific date.

static void SR_OnHandByDate(Args _args)
{
InventDimParm inventDimParm;
InventDim inventDimCriteria;
InventSumDateDim inventSumDateDim;
ItemId itemId = “1003”;
;

// Set the dimensions
inventDimCriteria.InventColorId = “02”;
inventDimParm.initFromInventDim(inventDimCriteria);
inventSumDateDim = inventSumDateDim::newParameters(mkdate(05,06,2007),itemId, inventDimCriteria, inventDimParm);
info(strfmt(‘Posted Quantity is %1’,inventSumDateDim.postedQty()));
info(strfmt(“Received Quantity is %1”,inventSumDateDim.receivedQty()));
info(strfmt(‘Deducted Quantity is %1’,inventSumDateDim.deductedQty()));
}

Advertisements

One Response to “Find Invent Onhand by date [Dynamics AX , X++]”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: