I made a recording for PFCG.
The idea is:
1. Copy a template role to a new role
2. Edit the new role
You don't have to exit PFCG to do that, so the recording is easy to complete.
However when you execute the code, it ends after phase 1. and messages "Dynpro is not required" appear in SM35 log, for all the rest of the steps. There are no errors on the screen, it just processes with the next record.
Here are some steps:
After step 3 I get: