Hi,
I have been working on a Module-Pool Development, in the header portion of the Screen, I have provided a Selection-Screen as a Sub-Screen because the requirement specifies to display a SELECT-OPTION in the Header Area.
Now the problem is that, when working with the Screen, as soon as I press <ENTER> the Main Screen re-calls the Selection-Screen in the Sub-Screen area and all the entries made in the Selection-Screen are reset/erased.
Kindly provide a solution either to stop the <ENTER> action to re-call the sub-screen. Or on any alternate method(s) to provide a SELECT-OPTION on a Module Pool based Screen UI.
-
MAIN SCREEN Code: ***************************************************************** * PROCESS BEFORE OUTPUT ***************************************************************** PROCESS BEFORE OUTPUT. *~ Set PF-STATUS and TiTLE for Screen 100 MODULE status_0100. *~ Call the Subscreen Dynamically CALL SUBSCREEN subscr1 INCLUDING sy-cprog gv_dynnr1. CALL SUBSCREEN subscr2 INCLUDING sy-cprog gv_dynnr2. ***************************************************************** * PROCESS AFTER INPUT ***************************************************************** PROCESS AFTER INPUT. *~ Handle the Exit Commands of Screen 100 MODULE user_command_0100 AT EXIT-COMMAND. *~ Handle the User Command(s) for screen 100 MODULE user_action_0100. CALL SUBSCREEN subscr1. CALL SUBSCREEN subscr2.
-
So whenever <ENTER> is pressed, the PBO re-calls:
CALL SUBSCREEN subscr1 INCLUDING sy-cprog gv_dynnr1.
and the Selection-Screen is reset.
Regards,
Nishant Nayyar.