Update control of movement type is incorrect (entry 161 X X _ L)
Have a look into your OMJJ customizing for 161 movement type:
It probably looks like mine:
the error message has the info in exact the same sequence
161 X X _ L
this is 161, checkmark checkmark blank L in the table above.
L would mean reference to a delivery.
But as you can see here, there is no L, everything is B which means reference to purchase order.
It is not allowed to add items in a delivery without purchase order reference, it is technically possible, but it finally ends in the error you have.
The process has to start from the purchase order.