What is screen flow logic? What are the sections in it? Explain PAI and PBO. | ABAP Module Programing

The control statements that control the screen flow.
PBO - This event is triggered before the screen is displayed.
PAI - This event is responsible for processing of screen after the user enters the data and clicks the pushbutton.