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

hide subscreen

Former Member
0 Likes
2,519

Hello everybody,

I've created a subscreen for insert in a screen.

SELECTION-SCREEN BEGIN OF SCREEN 9001 AS SUBSCREEN .

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

PARAMETERS: P_WERKS LIKE t001w-WERKS.

SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN END OF SCREEN 9001.

The way to create this subscreen has been as follows:

PROCESS BEFORE OUTPUT.

MODULE STATUS_0110.

CALL SUBSCREEN subscreen INCLUDING SY-REPID gv_dynpro.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0110.

CALL SUBSCREEN subscreen.

Now, I want to hide the subscreen in process when I push a botton. ¿Do you know the way to do it?

What I want to do now is that when press a button hiding all this subscreen.

I do a "LOOP AT SCREEN " in the PBO but I do not see the element subscreen (SCREEN-NAME).

I have also tried to delete the gv_dynpro field, but with this that it is a beautiful mistake.

thanks in advance

regards

1 ACCEPTED SOLUTION
Read only

Former Member
1,318

You have to create a blank subscreen and when you are pressing the button you can call this blank subscreen.

ie, if 9002 is a blank subscreen then

case ok_code.

when 'BUTTON'.

subscreen = '9002'.

Then in the next PBO ,the statement

'CALL SUBSCREEN subscreen INCLUDING SY-REPID gv_dynpro' calls the blank screen

Edited by: Rengith Skariah on Apr 16, 2008 10:56 AM

4 REPLIES 4
Read only

Former Member
1,319

You have to create a blank subscreen and when you are pressing the button you can call this blank subscreen.

ie, if 9002 is a blank subscreen then

case ok_code.

when 'BUTTON'.

subscreen = '9002'.

Then in the next PBO ,the statement

'CALL SUBSCREEN subscreen INCLUDING SY-REPID gv_dynpro' calls the blank screen

Edited by: Rengith Skariah on Apr 16, 2008 10:56 AM

Read only

Former Member
0 Likes
1,318

Hi,

create another sub screen (empty) and show it when a push button is selected instead of ur sub screen.

set the gv_dynpro = 9002 in the user-command event when the pushbutton is selected.

SELECTION-SCREEN BEGIN OF SCREEN 9002 AS SUBSCREEN .

SELECTION-SCREEN END OF SCREEN 9002.

rgds,

bharat.

Read only

Former Member
0 Likes
1,318

Hi,

Create a blank subscreen and when you are pressing the button you can call this blank subscreen.

ie, if 9002 is a blank subscreen then

case ok_code.

when 'BUTTON'.

subscreen = '9002'.

Then in the next PBO ,the statement

'CALL SUBSCREEN subscreen INCLUDING SY-REPID gv_dynpro' calls the blank screen

Read only

prasanth_kasturi
Active Contributor
0 Likes
1,318

pass a blank subscreen when you press the button it helps you.

in pai

case sy-ucomm.

when <fctcode>.

dynpro = <empty screen num>

endcase.

and in the pbo it will be passed

regards

prasanth