‎2008 Apr 16 9:51 AM
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
‎2008 Apr 16 9:55 AM
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
‎2008 Apr 16 9:55 AM
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
‎2008 Apr 16 9:56 AM
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.
‎2008 Apr 16 10:01 AM
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
‎2008 Apr 16 10:01 AM
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