Hi Eyal,
Depends what DM package you are talking about!
1. If it's script logic package then look on the code of RUNLOGIC_PH BADI... everything is clear!
2. Some other chain - (like standard COPY chain) - look on the program UJD_TEST_PACKAGE.
Vadim