‎2007 Apr 24 7:28 AM
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.
‎2007 Apr 24 7:29 AM
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
‎2007 Apr 24 7:33 AM
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......
‎2007 Apr 24 7:34 AM
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
‎2007 Apr 24 7:38 AM
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.
‎2007 Apr 24 7:44 AM
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