Hi Georgy,
We did not tried using xml files. May be it can work, but I am not sure.
For our case, we took the SQL trace of open timeperiod action and found in the trace that only prtimeperiod table is updated with the statement like:
update prtimeperiod set prisopen=1
where prid= ?
So, writing the SQL procedure was more easy for us than going for XOG. We are using this procedure from last 5 months and till now everything is fine.
With the help of this procedure we are also able to automated closing of timeperiods when extra timeperiods are opened for large editing and they are closed at a specific schedule.
Also, we open 11 timeperiods at a time (6-past, 1-current and 4-future) but the statment is same for updating the value of PRISOPEN field to 0 or 1.
Thanks,
Pragya Singh