Application Development and Automation 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: 
Read only

dynamic sel. screen

Former Member
0 Likes
591

Hi

I want to display 2 parameters(not radio buttons )on selection screen lets say F1 ,F2.

Now If I selct F1 then F2 must b invisible and viceversa.

I need with code bcos i tried with SCREEN table and INVISIBLE field in it.

5 REPLIES 5
Read only

Former Member
0 Likes
549

I dont think u can do that dynamically..

Your parameters will be visible & invisble only if you press ENTER key button and then code it accordingly

Read only

Former Member
0 Likes
549

Hi...

try the following code..

PARAMETERS: P1 RADIOBUTTON GROUP G1 USER-COMMAND COM,

P2 RADIOBUTTON GROUP G1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF P1 EQ 'X'.

IF SCREEN-NAME EQ 'P2'.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

Regards,

Suresh......

Read only

Former Member
0 Likes
549

hi,

tyr like this

p_ekeh as checkbox user-command ucom.

IF p_ekeh = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'MOD'.

IF screen-name = 'R1'.

screen-input = '0'.

screen-active = '0'.

ENDIF.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ELSE.

  • Do nothing

ENDIF.

reward points if this helps u

ravi

Read only

Former Member
0 Likes
549
Take a help of this code:

Parameters: test1(10) modif id sc1,
            test2(10) modif id sc2,
            test3(10) modif id sc1,
            test4(10) modif id sc2.

At selection-screen output.

Loop at screen.
   if screen-group1 = 'SC1'.
      screen-intencified = '1'.
      modify screen.
      continue.
   endif.
   if screen-group1 = 'SC2'.
      screen-intencified = '0'.
      modify screen.
   endif.
endloop.
Read only

Former Member
0 Likes
549

Hi try like this

LOOP AT SCREEN.

If SCREEN-NAME = 'FIELD1'.

if flag_active = 'FIELD2'.

SCREEN-INVISIBLE = 1.

endif.

elseif SCREEN-NAME = 'FIELD2'.

if flag_active = 'FIELD1'.

SCREEN-INVISIBLE = 1.

endif.

MODIFY SCREEN.

ENDLOOP