Hello
Does anyone know how to (for an example) manually cancel ex 30 selected items out of 100 items ( with Delivery Remainder) on a Sales order in a fast way via a job in AOT (AX2012)?
I have this code ( left pic below) to cancel one "Order -row" at the time. In this ex, row "2" is about to be cancel.
But I need a code to cancel selected lines (rows) in an order ( for ex, see the yellow in the pic below to the right, and this code doesn´t work):
Note, I don´t want to cancel ALL the lines in the order that have Delivery Remainder, I only want to cancel the "order-rows" that I write in the code.
And I don´t want to Delete the lines either.
Does anyone have a good tip on how this could be possible?

We are starting to work with Backorders, and we need to cancel blocked articles that slip through, in a fast way.
regards / BCC