2023 Sep 28 8:33 AM
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?
2023 Sep 28 9:04 AM
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.
2023 Sep 28 9:15 AM
2023 Sep 28 11:07 AM
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 🙂
2023 Sep 28 2:49 PM
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.