Hi Sivajyoti,
If you debug once and see , it will be clear to you, once you press enter another operation is taking place in background, and thats why the screen fields are disappearing. The best solution is that you debug the code by yourself. In PAI you need to write code for ENTER command.