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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynpro Screen-Active

0 Kudos

Hi,

i have an Dynpor with three Frames, field with differnet Input Field. some of the Elements are grouped in two different Screen-group1 Value

In the PBO both Screengroups are not active, which works fine.

After a Input in Field, I switch one Screengroup to active.

LOOP AT SCREEN.
* Detailrahmen einblenden
IF screen-group1 = 'DET'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

My Problem is that the second Screengroup appears as active, which is in that moment not correct.

Any help?

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

You have to loop in the PBO for the three groups and define/set/use some variable/attributes to memorize which groups are arctive

LOOP AT SCREEN.
  CASE screen-group1.
    WHEN 'DET'
      IF main_class=>det_active = abap_true.
        screen-active = 1.
      ELSE.
        screen-active = 0.
      ENDIF.
    WHEN 'XYZ'
  "...
  ENDCASE.
ENDLOOP.

0 Kudos

active = 1 is the default value 🙂

0 Kudos

The default value is the value defined in the dynpro definition, also active isn't an actual field.

We can technically add a field in dynpro painter with input and output unchecked and invisible checked - very rare, I did it twice in the last 20+ years, two and three fields were defined at the same location, but only one active at a time of course 🙂

Sandra_Rossi
Active Contributor
0 Kudos

It's active by default. You must deactivate explicitly (screen-active = '0').

Use the backend ABAP Debugger > Dynpro tool to see the exact SCREEN values of each field.