03-19-2007 1:00 PM
Hi,
In module pool program i am having a normal screen 9000.
In this normal screen i have call subscreens depending on the radio buttons the user selects.
can we do like that. that is if one radio button one sub screen should be triggered and remaining should be deactivated, and if another radio button relavent sub screen should be triggered.
please do help me its urgent.
replies with helpful code is much appreciated.
regards
Mac
03-19-2007 1:04 PM
ya,
we can do like that.
in PBO
CALL SUBSCREEN SUBA INCLUDING SY-CPROG SCRNO.
in PAI
CALL SUBSCREEN SUBA.
in the program u've to write:
DATA:SCRNO(4) TYPE N.
this scrno value should be assigned based on the radio button triggering before calling the screen.
regards,
bharat..
03-19-2007 1:11 PM
Hi,
What you have said is true, I know that.
But conditional triggerring is required here.
I have to call a subscreen after I have selected radio button and pressed any push button in the same normal screen below the radio buttons.
Pls do help me.
Mac
03-19-2007 1:17 PM
hi,
for this u need to change the the sub screen number in the PAI modules of the screen.
first u just create a module in the PAI.in that check whick radio button is selected.based on that change the number of the scrno.
03-20-2007 6:19 AM
Hi,
Try to use this...
First, put all the objects in the subscreen in the same group number with the same group name.
Then put a function code to the radio-button that you will use to hide the subscreen.
And into the PBO of the subscreen,
insert this code...
CASE sy-ucomm.
WHEN <function code>.
IF <radio_button> = 'X'.
LOOP AT SCREEN.
IF screen-group1 = '1'.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDCASE.
Hope this may help you..
Enjoy...
Salem_M
03-20-2007 6:33 AM
That one is what I used before in hiding a subscree.
But if you want the subscreen to be triggered or not, you should use
<b>screen-input = 0.</b>
instead of
screen-invisible = 1.