‎2008 Jun 05 7:57 AM
Hi
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
Regards
Prajwal K
‎2008 Jun 05 8:00 AM
‎2008 Jun 05 8:05 AM
Hi vasu
Can You Please Give me Example code for that.
Regards
Prajwal K.
‎2008 Jun 05 8:12 AM
Hi Prajwal,
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
Regards
Ravi K