What parts are in what "Carton" in a Phantom Packed shipment

Yes, that’s my dilemma. Even with a UD table, how do we determine which lines are in which box/pallet? I’m trying to avoid manually entry but I’m not seeing any other way.