You might be able to use the UpdateExt method for UD01… UpdateExt does support datasets. If you run UpdateExt with UD01.RowMod = “D” on every record in the dataset, then it should delete all the records.
IF this works… then you would need to:
- do a line of code that extracts all the data, including modifying the RowMod to “D”
- call UpdateExt with that data that was extracted.
This would basically make this minimal lines of code with no looping (with additional lines for setting up the UpdateExt, and finalizing the work).