Hi
Try getting the screen elements using the function module RPY_DYNPRO_READ and modify the label parameter and insert it back using the fuction module RPY_DYNPRO_INSERT. From the table tstc you can get the name of the program by inputting the transaction code.
With regards
Suneesh Thampi