Hello Walter,
Use class /SCWM/CL_DLV_MANAGEMENT_PRD. There is a query method which works like a magic. Don't bother trying to link delivery tables. This method searches memory buffer first which gives you performance advantages.
Best regards
Serhan