We performed similar transfer of data from one planning model to another using DM package linked to BADI. In your scenario there is additional complexity of doing lookup from DSO and should be possible.
Also check these references for performing lookup in DSO.
abap code to populate data from DSO
something about SAP: How to look for DSO’s tables?