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 display a specific tab in a screen after a popup message

Former Member
0 Kudos

Hi all,

I've a rewuirement where in i need to display a secific tab in a screen after popping up a warning message. To be specific, when i choose 'Yes' in the popup window, it shoud take me to a tab which is not active while displaying the warning popup.

Thanks in advance....

Anil Kumar Japa

6 REPLIES 6

Former Member
0 Kudos

IF <condition>.

tabstrip-activetab = 'XXX'.

ENDIF.

Hope this helps.

Sudha

0 Kudos

i tried doing it but the problem is i have this requirement in a User Exit. i changed the value of the active tab at runtime, (SAPLCOIH)TS_1100. but still it is displaying only the last active tab. Do i need to change the values in T185V and T185? if yes, give me a brief idea about it.

Thanks in advance,

Anil.

Former Member
0 Kudos

Hi,

use FM CALL FUNCTION 'POPUP_TO_CONFIRM_TERM'

EXPORTING

  • DEFAULTOPTION = 'Y'

TEXTLINE1 =

  • TEXTLINE2 = ' '

TITEL =

  • IMPORTING

  • ANSWER =

.

and then write

if Answer = 'YES'.

Ca CALL SUBSCREEN SUB1 INCLUDING SY-REPID W_DYNPRO.

Hope it helps.

Regards,

Santosh

Former Member
0 Kudos

Hi

U need to active the tab you want to show:

So you should set the ok_code (of the tab) value to field ACTIVETAB

<TABSTRIP>-activetab = <OK_CODE>.

And transfer the value of subscreen number to the subscreen area:

CALL SUBSCREEN SUBSCREEN1
             INCLUDING G_CTRL_TABSTRIP-PROG              
                       G_CTRL_TABSTRIP-SUBSCREEN.

Max

Former Member
0 Kudos

sorry guys i forgot to include some important information in this issue. i have this requirement in a User Exit. we can not call a screen or subscreen inside a User Exit.

Thanks in advance....

Anil.

Former Member
0 Kudos

you can write code outside and use SUBMIT command.

Reward if useful.