hello,
Instead of using the field names, make a group of the fields. i.e assign the group property of the fields. This way handling that set of fields becomes easy.
Also you need to code on enter event in PAI. Check your sy-ucomm for enter command and copy similar code in PAI where you handle the command button processing.
best regards,
swanand