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

Calling subscreen in tabstrip

Former Member
0 Likes
1,407

Hi all

I create a tabstrip contain 3 subscreen, which is 9000, 9001, 9002.

i got a button at screen 9002. when i press the button, i want to go to subscreen 9001 . How to call this sub screen 9001.

code please.

Thks.

Hi all

I create a tabstrip contain 3 subscreen, which is 9000, 9001, 9002.

i got a button at screen 9002. when i press the button, i want to go to subscreen 9001 . How to call this sub screen 9001.

code please.

Thks.

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
661

data: tab9001 like sy-dynnr value '9001',
      w_screen     like sy-dynnr. 

controls: maintab type tabstrip.    

in user command


when '9001'.
 w_screen = tab9001. 
 maintab-activetab = < give you tabstrip name of 9001>.

then in PBO


  call subscreen <your subscreen name>  including sy-cprog w_screen.

Read only

Former Member
0 Likes
661

gary,

This code in Flow logic editor

PROCESS BEFORE OUTPUT.

MODULE status_100.

CALL SUBSCREEN: area1 INCLUDING sy-repid

number1.

PROCESS AFTER INPUT.

MODULE cancel AT EXIT-COMMAND.

MODULE save_ok.

CALL SUBSCREEN: area1.

MODULE user_command_100.

********************************************

THIS IS IN ABAP EDITOR:

MODULE user_command_100 INPUT.

IF sy-ucomm EQ 'your button functin code'

number1 = '9001'

ENDMODULE.

Don't forget to reward if useful....