This X++ Code Snippet post describes how you can easily copy records by running over all of the fields of the from-record. During this looping over all the fields, you can exclude some fields if needed.Create following method in a class:Jimmy_GlobalstaticvoidJimmy_CopyoingField(Common_from,Common_to Read More
staticvoidJimmy_InventOnHandPhysical(Args_args){InventOnHandinventOnHand=newInventOnHand();InventDimParminventDimParm;ItemId_ItemId="10-1000";;inventDimParm.initFromInventDim(InventDim::findOrCreateBlank());inventOnHand.parmInventDimParm(inventDimParm);inventOnHand.parmItemId(_itemId);inve Read More
Business requirement: update planned order upon modification of a salesline without master scheduling.Sometimes you want to see changes made on a SalesLine immediately on the reference Planned Order, without Master Scheduling. This post describes how you can make a little code adaptation to achieve Read More