How to Cancel the product receipt item wise..

Hi All,

I want to cancel the Product receipt item wise.
Suppose i have 5 items(Service and Item Type) i need to cancel only 3 items(Service) from the product receipt.
I saw the blogs where i can cancel the product receipts for all the items using Cancel button.
Kindly Suggest how can i cancel specific type of items


Use correct. Remove the other lines while correcting the product receipt.

Please always tag your AX version.

Moving to user forum (from developer forum)

Hi Kranthi,

Thanks for your reply,

I am using AX 2012 version.

I want to achieve this through code.

Why through code when the “Correct” option is already written for you?