Please Give answer.
To include a field on your screen that is not in the ABAP Dictionary, which include program should contain the data declaration for the field?
A: PBO module include program
B: TOP include program
C: PAI module include program
😧 Subroutine include program
TOP inlcude is for Data Declaration.So the data will be globally accessible.It can be either from standard tables or custom tables.
PBO - include to handle output values and data can be declared here but will have access only in this include
PAI - include to handle events on the screen, data declaration will have local access other includes cannot access these variables/values
Subroutine - include for routines data declaration Local access same as PAI, PBO
So if your requirement is to access the data globally throughout all includes in the program then define the declarations in TOP Inlcude...
You can refer to any standard programs.
Ex: SAPLMEGUI - Purchase order display program