When you have opened a POU body on your screen, the variables declared in the corresponding POU header can be monitored in the online mode at the same time.
Open POU body or header with double-click
Monitor > Monitor header
The same data monitor window as described in Monitor > Entry data monitor is displayed. The editing options remain identical as well.