Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 


Former Member
0 Kudos


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


Prajwal K


Former Member
0 Kudos

TOP include

0 Kudos

Hi vasu

Can You Please Give me Example code for that.


Prajwal K.

Former Member
0 Kudos

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


Ravi K