I am using Bapi
BAPI_SALESORDER_CHANGE to remove delivery block from schedule lines of a sales order.
If I pass ony editable schedule line data to BAPI then it removes other schedule line (past receipts created automatically after running availability check ).
If I pass all schedule lines of an item to remove delivery block I get error V1 335 ie.schedule line does not exist.
I want to retain past receipts schedule line.