<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Tabstrip Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272343#M782265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a module pool application with tabstrip control. I have 10 tabs. If I click on the 9th or 10th tab and the user is not authorized to view those tabs, I have to display the first tab. I am able to do this. I am also setting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabstrip-activetab = c_first_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first tab does get activated but is not displayed on the screen. I mean that due to the large number of tabs in the application. When i click on the last two tabs, the first two move toward the left and are not shown. The first subscreen is displayed fine. The problem remains with the tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me solve this problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2008 16:56:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-09T16:56:20Z</dc:date>
    <item>
      <title>Tabstrip Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272343#M782265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a module pool application with tabstrip control. I have 10 tabs. If I click on the 9th or 10th tab and the user is not authorized to view those tabs, I have to display the first tab. I am able to do this. I am also setting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabstrip-activetab = c_first_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first tab does get activated but is not displayed on the screen. I mean that due to the large number of tabs in the application. When i click on the last two tabs, the first two move toward the left and are not shown. The first subscreen is displayed fine. The problem remains with the tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me solve this problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 16:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272343#M782265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T16:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tabstrip Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272344#M782266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdullah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the keyword documentation on Tabstrip Control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tabstrip Controls&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A tabstrip control is a screen element that consists of multiple tabstrip pages. Every tabstrip page contains a single-line tab title which is linked with a function code which makes it possible to access the tabstrip page with a double-click. Below the tab title, a tabstrip page consists of a subscreen area. A subscreen area must be assigned to every tab title. To do this, you have two options: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Scrolling in the SAP GUI&lt;/STRONG&gt;&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A tab title is assigned to each subscreen area and the function codes of the individual tab titles are defined with the function type "P". If the user selects a tab title, the event PAI is not raised. The corresponding subscreens are incorporated once into every individual subscreen area using the statement CALL SUBSCREEN of the flow logic. If the user selects a tab title, then the SAP GUI scrolls to the corresponding tabstrip page and displays its content. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Scrolling in the ABAP program&lt;/STRONG&gt;&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To each tab title, the same subscreen area is assigned and the function codes of the individual tab titles are defined without typing. If the user selects a tab title, then the event PAI is triggered. The corresponding subscreen is dynamically incorporated into the subscreen area CALL SUBSCREEN when scrolling using the statement CALL SUBSCREEN of the flow logic. In the ABAP program, you must activate the corresponding tabstrip title CONTROLS and the correct subscreen dynpro must be scheduled for the subscreen area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you scroll in the SAP GUI and select a tab title, then no input checks are carried out and no data is transported to the ABAP program. The entries are not checked and the data of all subscreens is not transported until a user action takes place that triggers the event PAI. When scrolling in the ABAP program, the entries are checked at every selection of a tab title and the data of the current tabstrip page is transported to the ABAP program of the subscreen dynpro&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on above tell us whether you are scrolling in GUI or in ABAP program? This will help us in addressing your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 19:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272344#M782266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T19:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tabstrip Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272345#M782267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdullah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to recreate your problem in my system assuming that you are scrolling in ABAP program (without waiting for your reply on my previous post).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one main screen on which I have one tabstrip control. There are 5 tabs in the tabstrip control. On tab5 I assume that user doesn't have authorization and I tried to show the tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deliberately reduced the size of tabstrip control so that I can see only 2 tabs at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this code, when I go to tab5, system shows tab1 with subcreen 110 for tab1. Tab1 was not visible on the screen but when I scrolled to left I could see it as active. This is as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CONTROLS tabstrip TYPE TABSTRIP.

  DATA: okcode      TYPE sy-ucomm,
        dynnr       TYPE sy-dynnr,
        flag        type flag,
        active like tabstrip-activetab .


call SCREEN 100.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0100 INPUT.
  data: lv_okcode type syucomm.

  lv_okcode = okcode.
  clear okcode.

  case lv_okcode.
    WHEN 'TAB1'.
      dynnr = '0110'.
    WHEN 'TAB2'.
      dynnr = '0120'.
    WHEN 'TAB3'.
      dynnr = '0130'.
    WHEN 'TAB4'.
      dynnr = '0140'.
    WHEN 'TAB5'.
     "check authorization, if authorization fails
      flag = 'X'.             "set the global flag
      active = 'TAB1'.    "store active tab in global variable
      dynnr = '0110'.     "set the screen number
    WHEN 'BACK' or 'EXIT'.
      leave program.
  ENDCASE.

  IF lv_okcode(3) = 'TAB'.
    tabstrip-activetab = lv_okcode.
  ENDIF.

ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'MAIN'.
*  SET TITLEBAR 'xxx'.
  IF tabstrip-activetab IS INITIAL OR
       dynnr IS INITIAL.
    tabstrip-activetab = 'TAB1'.
    dynnr = '0110'.
  ENDIF.
 "set the activetab explicilty here 
  if flag eq 'X'. "from authorization failure
    tabstrip-activetab = active. "'TAB1'
    clear flag.
  endif.

ENDMODULE.                 " STATUS_0100  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you need to do 2 things:&lt;/P&gt;&lt;P&gt;1. Define 2 global variables, one to set a flag if authorization fails; another for holding the active tab value that you want to show (tab1 in this case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In PBO Module, check the flag, if found set, set the &lt;STRONG&gt;activetab explicitly&lt;/STRONG&gt; from the global variable (active in this case) which was set in the PAI Module for tab5. Also, clear the flag. This is required to overcome your problem of right tab not showing up. In the PBO of the screen, when this module is called, tab will be set correctly as it is explicitly set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think a similar fix can be made if you are not scrolling in ABAP program and using scrolling in GUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sanjeev Kumar on Jan 9, 2008 5:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 21:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272345#M782267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T21:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tabstrip Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272346#M782268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have. I am doing the same as you said. I am setting the activetab explicitly. The tab becomes active also. But it is not visible. You need to go to the left to see it as active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdullah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 04:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabstrip-control/m-p/3272346#M782268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T04:56:46Z</dc:date>
    </item>
  </channel>
</rss>

