<?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 Re: code for subscreen elements of a tabstrip. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-subscreen-elements-of-a-tabstrip/m-p/1007999#M78251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit, hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The following link gives full details:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2005 11:42:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-04T11:42:10Z</dc:date>
    <item>
      <title>code for subscreen elements of a tabstrip.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-subscreen-elements-of-a-tabstrip/m-p/1007998#M78250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i want to know &lt;/P&gt;&lt;P&gt;what are the methods to code for subscreen elements of a tabstrip.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2005 10:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-subscreen-elements-of-a-tabstrip/m-p/1007998#M78250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-04T10:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: code for subscreen elements of a tabstrip.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-subscreen-elements-of-a-tabstrip/m-p/1007999#M78251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit, hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The following link gives full details:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2005 11:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-subscreen-elements-of-a-tabstrip/m-p/1007999#M78251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-04T11:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: code for subscreen elements of a tabstrip.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-subscreen-elements-of-a-tabstrip/m-p/1008000#M78252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the tab pressed,you can write the coding in PAI and display the output in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the sample code.I am using custom container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS:  main_tab TYPE TABSTRIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:      BEGIN OF i_main_tab,&lt;/P&gt;&lt;P&gt;             subscreen   LIKE sy-dynnr,&lt;/P&gt;&lt;P&gt;             prog        LIKE sy-repid VALUE&lt;/P&gt;&lt;P&gt;                              'ZZZ_TABSTRIP',&lt;/P&gt;&lt;P&gt;             pressed_tab LIKE sy-ucomm VALUE c_main_tab-tab1,&lt;/P&gt;&lt;P&gt;           END OF i_main_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_9001 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZSTATUS'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'ZTITLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  main_tab-activetab = i_main_tab-pressed_tab.&lt;/P&gt;&lt;P&gt;  CASE i_main_tab-pressed_tab.&lt;/P&gt;&lt;P&gt;    WHEN c_main_tab-tab1.&lt;/P&gt;&lt;P&gt;       IF o_custom_container1 IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creating Object&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         PERFORM f9000_objects_create.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Building the field catalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         PERFORM f9001_build_field_cat TABLES i_fcat&lt;/P&gt;&lt;P&gt;                                    USING 'ZZZ_GRID'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         PERFORM f9002_layout USING sy-title c_x c_a c_x.&lt;/P&gt;&lt;P&gt;         i_main_tab-subscreen = '9100'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Displaying data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          CALL METHOD o_alvgrid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;             is_variant                    = w_variant&lt;/P&gt;&lt;P&gt;             i_save                        = c_a&lt;/P&gt;&lt;P&gt;             is_layout                     = w_layout&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;             it_outtab                     = i_grid[]&lt;/P&gt;&lt;P&gt;             it_fieldcatalog               = i_fcat[]&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;             invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;             program_error                 = 2&lt;/P&gt;&lt;P&gt;             too_many_lines                = 3&lt;/P&gt;&lt;P&gt;             OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;          IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            MESSAGE i005 WITH text-009."Error in ALV report display&lt;/P&gt;&lt;P&gt;            LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;    when c_main_tab-tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if o_custom_container2 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        perform f9000_objects_create1 using:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  create custom container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    'o_custom_container2' '' '' '',&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  Create splitter container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    'o_splitter' o_custom_container2 '2' '1',&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  Create event reciever&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    'o_eventreceiver' '' '' ''.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Creating containers for the split grids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        call method o_splitter-&amp;gt;get_container exporting row      = 1&lt;/P&gt;&lt;P&gt;                                                        column   = 1&lt;/P&gt;&lt;P&gt;                                 receiving container = o_container1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call method o_splitter-&amp;gt;get_container exporting row      = 2&lt;/P&gt;&lt;P&gt;                                                        column   = 1&lt;/P&gt;&lt;P&gt;                                 receiving container = o_container2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Set where the splits on the screen comes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        call method o_splitter-&amp;gt;set_row_height&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;            id                = 1&lt;/P&gt;&lt;P&gt;            height            = 45&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;            cntl_error        = 1&lt;/P&gt;&lt;P&gt;            cntl_system_error = 2&lt;/P&gt;&lt;P&gt;            others            = 3.&lt;/P&gt;&lt;P&gt;       if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;        perform f9003_error_handle using text-E04.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;        perform f9000_objects_create1 using:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create the alv grids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    'o_alvgrid2' o_container1 '' '',&lt;/P&gt;&lt;P&gt;                    'o_alvgrid3' o_container2 '' ''.&lt;/P&gt;&lt;P&gt;        set handler o_eventreceiver-&amp;gt;handle_double_click for o_alvgrid2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        perform f9001_build_field_cat tables i_fcat1&lt;/P&gt;&lt;P&gt;                                using 'ZZZ_GRID1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        perform f9001_build_field_cat tables i_fcat2&lt;/P&gt;&lt;P&gt;                                using 'ZZZ_GRID2'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      For Layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        PERFORM f9002_layout USING sy-title c_x c_a c_x.&lt;/P&gt;&lt;P&gt;        i_main_tab-subscreen = '9200'.&lt;/P&gt;&lt;P&gt;        if not i_grid1[] is initial.&lt;/P&gt;&lt;P&gt;          call method o_alvgrid2-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;             is_variant                    = w_variant&lt;/P&gt;&lt;P&gt;             i_save                        = c_a&lt;/P&gt;&lt;P&gt;             is_layout                     = w_layout&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;             it_outtab                     = i_grid1[]&lt;/P&gt;&lt;P&gt;             it_fieldcatalog               = i_fcat1[]&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;             invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;             program_error                 = 2&lt;/P&gt;&lt;P&gt;             too_many_lines                = 3&lt;/P&gt;&lt;P&gt;             others                        = 4.&lt;/P&gt;&lt;P&gt;          if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            message i005 with text-009."Error in ALV report display&lt;/P&gt;&lt;P&gt;            leave list-processing.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Populate the GRID2 data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          read table i_grid1 into w_grid1 index 1.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;             if not i_grid2[] is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Generate the grid2 data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              call method o_alvgrid3-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;                 exporting&lt;/P&gt;&lt;P&gt;                     is_variant                    = w_variant&lt;/P&gt;&lt;P&gt;                     i_save                        = c_a&lt;/P&gt;&lt;P&gt;                     is_layout                     = w_layout&lt;/P&gt;&lt;P&gt;                  CHANGING&lt;/P&gt;&lt;P&gt;                     it_outtab                     = i_grid2[]&lt;/P&gt;&lt;P&gt;                     it_fieldcatalog               = i_fcat2[]&lt;/P&gt;&lt;P&gt;                exceptions&lt;/P&gt;&lt;P&gt;                   invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;                   program_error                 = 2&lt;/P&gt;&lt;P&gt;                   too_many_lines                = 3&lt;/P&gt;&lt;P&gt;                   others                        = 4.&lt;/P&gt;&lt;P&gt;             endif.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;No data for the entered selection criteria&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          message i005 with text-010.&lt;/P&gt;&lt;P&gt;          leave list-processing.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     DO NOTHING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_9001  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Module  MAIN_TAB_ACTIVE_TAB_GET  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  This is used to catch the pressed tab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE main_tab_active_tab_get INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN c_main_tab-tab1.&lt;/P&gt;&lt;P&gt;      i_main_tab-pressed_tab = c_main_tab-tab1.&lt;/P&gt;&lt;P&gt;      i_main_tab-subscreen = '9100'.&lt;/P&gt;&lt;P&gt;    WHEN c_main_tab-tab2.&lt;/P&gt;&lt;P&gt;      i_main_tab-pressed_tab = c_main_tab-tab2.&lt;/P&gt;&lt;P&gt;      i_main_tab-subscreen = '9200'.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     DO NOTHING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_GET  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Module  USER_COMMAND_9001  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  This is used for user command&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_9001 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      PERFORM exit_program.&lt;/P&gt;&lt;P&gt;      SET SCREEN '0'.&lt;/P&gt;&lt;P&gt;    WHEN 'EXIT' OR  'CANC'.&lt;/P&gt;&lt;P&gt;      PERFORM exit_program.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_9000  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For screen 9001 we need to write Flow logic as below. For subscreens, Flow logic is &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;not required.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE STATUS_9001.&lt;/P&gt;&lt;P&gt; CALL SUBSCREEN main_tab_sca&lt;/P&gt;&lt;P&gt;      INCLUDING i_main_tab-prog i_main_tab-subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE user_command_9001.&lt;/P&gt;&lt;P&gt;  MODULE main_tab_active_tab_get.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2005 12:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-subscreen-elements-of-a-tabstrip/m-p/1008000#M78252</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-07-04T12:35:06Z</dc:date>
    </item>
  </channel>
</rss>

