Q:

How to link ABAP Dynpro screen elements to program variables?

I am trying to use the elements I made in Screen Painter in my source code but I am not quite sure how to link them. Can you provide steps how I can link my elements in Screen Painter with ABAP variables?

A:

The connection is established via the name.
If you declare a variable in your report like this:
DATA foo TYPE c.

Then you can view it on your screen by adding a field called foo.
A useful feature of the screen painter is choosing dictionary/program fields. You can access it by pressing F6.

