Remove document lines
I want to remove a Document Line using the DI API but there is no function to let me do it. I heard that it was impossible.
Can anybody help me?
Ad Kerremans replied
Deleting a line is NOT possible in 2004.
Deleting a line through SQL query is NOT allowed by SAP
If you delete a line through SQL you most likely forget to update a fields/tables that SBO does when you delete it through the UI.
I think there is only one solution, load the appropriate form, find the document, delete the line and update the document through code using the UI api.