12-18-2006 5:27 AM
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.
12-18-2006 5:31 AM
hi,
for examples on tab strip
demo_dynpro_tabstrip_local
demo_dynpro_tabstrip_server
Regards
Anver
12-18-2006 5:39 AM
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..
12-18-2006 5:45 AM
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
12-18-2006 5:42 AM
leave to screen '100' first
and inside the pbo of 100 screen say mytab-activetab = 'PB!'.
12-18-2006 5:47 AM
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
12-18-2006 5:59 AM
Hello,
Check for the following programs in SE38
demo_dynpro_tabstrip*
Regards,
Shehryar Dahar