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

UI Programming

sridhar_meesala
Active Contributor
0 Likes
684

Hi,

If there are two screens, how to call the next screen by clicking the push button in the first screen which is also having some mandatory fields.

Thanks

Sridhar.

5 REPLIES 5
Read only

Former Member
0 Likes
662

Hi,

use at user command.

at user-command .

case sy-ucomm.

when 'BUTTON'.

call screen 'SCRNO' starting at 5 10---->( U can use leave to screen 'SCRNO' )

ending at 10 10.

endcase.

Read only

Former Member
0 Likes
662

Hi,

Create a Pushbutton on the screen.

In the PAI EVENT write:

module user_command_0100 input.
  case sy-ucomm.
    when 'PUSHBUTTON'.
      leave to screen 110.
   or call screen 110.
  endcase.
endmodule.                             " MODULE USER_COMMAND_0100  INPUT

Regards,

GP

Read only

Former Member
0 Likes
662

Hi,

Its very simple, just write CALL SCREEN 'screen no'/LEAVE TO SCREEN 'screen no' in the PAI module of the first screen ,on the ocuurence of the Fcode of the button press.

Press F1 on both the command for better uderstanding or follow the below link

http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm

Pooja

Read only

Former Member
0 Likes
662

Hi sridhar,

In the ABAP Documentation and examples

refer this program : selection screens as subscreens.

In the command box : ABAPDOCU --> selection screens -->

subscreens and tabstrips --> selection screens as subscreens.

Regards,

Sravanthi

Read only

Former Member
0 Likes
662

Hi Sridhar,

Screen1 Screen No 200

Screen2 Screen No 500

Use the Following Code

in the main program

call screen 500 ( starting at 5 ) optional.

( The Control is returned back to the calling program )

or

Submit Screen 500

( The Ctrl doesn't return to the calling program )

or

Leave to screen <scr no>

Regards

Ravi