Hello Igor,
As I can see , only the program name is changing while the rest of it remains the same.
If somehow you can read the program when it is generated, you can simply pass it to your SAPGUI recording.
What you can do is parameterize the program field in each of the SAPGUI interface where this is being called. Then assign the newly generated program name to this parameter.
Hope it answers your question.
Best Regards
Sheetal