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: 

Calling a sub screen in an normal screen

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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..

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.