Application Development 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: 

How to call subscreens within tabstrip

Former Member
0 Kudos

Hi,

My program contains a tabstrip control with two subscreens loaded on it.The second subscreen of tabstrip contains ALV with event handling.

When iam triggering double click event on ALV it should call the first subscreen which is on the same tabstrip.

For this i have written the code

MYTAB-ACTIVETAB = 'PB1'.

LEAVE TO SCREEN '100'. (ITS THE MAIN SCREEN WITH TABSTRIP).

But for the first time when iam doing double click on alv it is only activating mytab-activetab but not loading the subscreen and for the second time when iam doing double click it is loading the subscreen.

What could be the problem? Why is it not loading for the first double click? Why is it loading for the second time double click event?

I have checked it in debugging mode, For the second time it is calling the PBO of first subscreen. For the first time it is not calling the PBO of first subscreen.

Please assist me at the earliest.

6 REPLIES 6

anversha_s
Active Contributor
0 Kudos

hi,

for examples on tab strip

demo_dynpro_tabstrip_local

demo_dynpro_tabstrip_server

Regards

Anver

Former Member
0 Kudos

hi,

Write the following in PAI & PBO :-

<b>process before output.</b>

*CALL SUBSCREEN SUB_DETAIL INCLUDING SY-REPID SCR.

module status_9001.

call subscreen sub_detail including sy-repid scr.

<b>process after input.</b>

call subscreen sub_detail.

module user_command_9001.

Also when u perform the double click event, u have to specify the sub-screen number to be activated i.e

MYTAB-ACTIVETAB = 'PB1'.

scr = '9001'.

Pls regard points if its useful to u..

0 Kudos

Still its not coming.

First the first time of double click event its not calling the screen, for the second time its calling.

And moreover when saying

MYTAB-ACTIVETAB = 'PB1'.

LEAVE TO SCREEN 100.

For the first time it is going in PBO of existing subscreen and from there its going to PAI of Screen 100.

Why So and how to get it solved. It should immediately go to PBO of Screen 100 and from there it should upload the first subscreen but thatz not happening

Former Member
0 Kudos

leave to screen '100' first

and inside the pbo of 100 screen say mytab-activetab = 'PB!'.

0 Kudos

Still its not coming.

First the first time of double click event its not calling the screen, for the second time its calling.

And moreover when saying

MYTAB-ACTIVETAB = 'PB1'.

LEAVE TO SCREEN 100.

In PBO of 100 and PAI of 100 iam calling the first subscreen only.

But still the problem persists.

For the first time it is going in PBO of existing subscreen and from there its going to PAI of Screen 100.

Why So and how to get it solved. It should immediately go to PBO of Screen 100 and from there it should upload the first subscreen but thatz not happening

Former Member
0 Kudos

Hello,

Check for the following programs in SE38

demo_dynpro_tabstrip*

Regards,

Shehryar Dahar