You're doing the correct process, and
@Sarah Gabriel is exactly correct. When you click "Cancel" button on the SO header, it tries to cancel all lines on the sales order. It obviously can't cancel lines that have shipped, but it does cancel lines that were not shipped / you have not started the shipping process against. So the info log is telling you this, it couldn't cancel the shipped lines, but it canceled everything it could and now the SO is in status "invoiced".
------------------------------
Colby Gallagher
Managed Application Services Supervisor
RSM
OH
------------------------------
Original Message:
Sent: Mar 03, 2021 12:00 AM
From: Abrar Ahamed
Subject: Sales order lines cancel issue
Hi Nicholas,
Thanks for your reply.
Your suggestion is our current practice but in a real scenario, we have orders of 300 lines and sometimes we delivering only 80 lines so now need to do the cancel delivery remainder for the remaining 220 lines. It's very difficult that's why am looking for a solution to cancel all remaining open sales order lines at the same time.
------------------------------
Abrar Ahamed
Arla Foods - Saudi Arabia
Original Message:
Sent: Mar 02, 2021 10:13 AM
From: Nicholas Villasenor
Subject: Sales order lines cancel issue
We had the same issue at one point and used the 'deliver remainder' option to resolve it.
Of the four lines you didn't ship, select one and then click the 'Update Line' button. Select 'deliver remainder' and then set it equal to zero. This is pretty much telling the system you don't want to ship these lines anymore.

You would have to do this for each individual line but once you do this the order status should go to invoiced. If you ever wanted to go back and ship those lines, I believe you can just click in to the deliver remainder option again and update to restore the original line quantity.
Hope this is helpful.
------------------------------
Nicholas Villasenor
V & V Supremo
Chicago IL
Original Message:
Sent: Mar 02, 2021 07:10 AM
From: Abrar Ahamed
Subject: Sales order lines cancel issue
Hi,
We have a sales order of 10 lines and out of 10 lines we delivered and invoiced 6 lines and now 4 lines status is Open order and Header status is Open Order.
Now I want to cancel all open order lines at the same time and make it header status is Invoiced.so I tried to cancel the option from the Action pane Sales order--> Cancel but its showing below message
You can cancel sales order lines only if the line quantity has not been processed for delivery. The sales order xxxxxxxxxxxxx is partially canceled and the status is Invoiced.

------------------------------
Abrar Ahamed
Arla Foods - Saudi Arabia
------------------------------