Put your code in Page Init. Page load will not work.
google "Page init vs. Page load" for more details re. why / what / when.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter
Got Enhancement ideas? Use the SAP Idea Place