<?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: Screen Modification ; Shift screen to right on pressing button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930355#M1485681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use docking containers.......&lt;/P&gt;&lt;P&gt;Check this code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: it_sbook TYPE TABLE OF sbook,
      cont     TYPE REF TO cl_gui_docking_container,
      alv      TYPE REF TO cl_gui_alv_grid,
      wf_side  TYPE i.

START-OF-SELECTION.

  SELECT *
     FROM sbook
     INTO TABLE it_sbook
     UP TO 10 ROWS.

  CALL SCREEN 100.  "Create screen 100 with SAVE button active in PF Status

MODULE status_0100 OUTPUT.

  SET PF-STATUS 'STAT100'.

  CHECK cont IS INITIAL.

  CREATE OBJECT cont
    EXPORTING
      side                     = cl_gui_docking_container=&amp;gt;dock_at_right
      extension                = 600
      caption                  = 'Test'
    EXCEPTIONS
      OTHERS                  = 1.
  IF sy-subrc EQ 0.

    CALL METHOD cont-&amp;gt;set_adjust_design
      EXPORTING
        adjust_design     = 0.

    CREATE OBJECT alv
      EXPORTING
        i_parent          = cont
      EXCEPTIONS
        OTHERS            = 1.
    IF sy-subrc EQ 0.
      CALL METHOD alv-&amp;gt;set_table_for_first_display
        EXPORTING
          i_structure_name = 'SBOOK'
        CHANGING
          it_outtab        = it_sbook
        EXCEPTIONS
          OTHERS           = 1.
    ENDIF.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT

MODULE user_command_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'SAVE'.
      CALL METHOD cont-&amp;gt;get_docking_side
        RECEIVING
          docking_side = wf_side.

      IF wf_side EQ cl_gui_docking_container=&amp;gt;dock_at_right.
        CALL METHOD cont-&amp;gt;dock_at
          EXPORTING
            side = cl_gui_docking_container=&amp;gt;dock_at_left.

      ELSE.
        CALL METHOD cont-&amp;gt;dock_at
          EXPORTING
            side = cl_gui_docking_container=&amp;gt;dock_at_right.


      ENDIF.
  ENDCASE.

ENDMODULE.                 " USER_COMMAND_0100  INPUT


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 11:34:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-20T11:34:46Z</dc:date>
    <item>
      <title>Screen Modification ; Shift screen to right on pressing button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930351#M1485677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user presses any button i need to shift a screen from left to right.&lt;/P&gt;&lt;P&gt;I tried using LOOP AT SCREEN, but there existd no option to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have embedded that screen in a frame of name "control"&lt;/P&gt;&lt;P&gt;on any user action i should shift the screen which appears on left to some places on the right side.&lt;/P&gt;&lt;P&gt;on pressing back it should come back to original place .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please HELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 10:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930351#M1485677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T10:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Modification ; Shift screen to right on pressing button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930352#M1485678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these sample programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP_PICTURE_DEMO&lt;/P&gt;&lt;P&gt;RSDEMO_PICTURE_CONTROL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 10:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930352#M1485678</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-05-20T10:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Modification ; Shift screen to right on pressing button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930353#M1485679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesnt suffice my need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to shift the entire screen from left to right side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 10:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930353#M1485679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Modification ; Shift screen to right on pressing button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930354#M1485680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Have two screens (sharing the PBO and PAI modules) one with the fields on the left, the other with the same fields on the right&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2) Control where the screen is displayed by calling it as a modal dialog window using CALL SCREEN STARTING AT ... ENDING AT .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Others???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Che Eky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 11:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930354#M1485680</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2010-05-20T11:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Modification ; Shift screen to right on pressing button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930355#M1485681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use docking containers.......&lt;/P&gt;&lt;P&gt;Check this code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: it_sbook TYPE TABLE OF sbook,
      cont     TYPE REF TO cl_gui_docking_container,
      alv      TYPE REF TO cl_gui_alv_grid,
      wf_side  TYPE i.

START-OF-SELECTION.

  SELECT *
     FROM sbook
     INTO TABLE it_sbook
     UP TO 10 ROWS.

  CALL SCREEN 100.  "Create screen 100 with SAVE button active in PF Status

MODULE status_0100 OUTPUT.

  SET PF-STATUS 'STAT100'.

  CHECK cont IS INITIAL.

  CREATE OBJECT cont
    EXPORTING
      side                     = cl_gui_docking_container=&amp;gt;dock_at_right
      extension                = 600
      caption                  = 'Test'
    EXCEPTIONS
      OTHERS                  = 1.
  IF sy-subrc EQ 0.

    CALL METHOD cont-&amp;gt;set_adjust_design
      EXPORTING
        adjust_design     = 0.

    CREATE OBJECT alv
      EXPORTING
        i_parent          = cont
      EXCEPTIONS
        OTHERS            = 1.
    IF sy-subrc EQ 0.
      CALL METHOD alv-&amp;gt;set_table_for_first_display
        EXPORTING
          i_structure_name = 'SBOOK'
        CHANGING
          it_outtab        = it_sbook
        EXCEPTIONS
          OTHERS           = 1.
    ENDIF.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT

MODULE user_command_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'SAVE'.
      CALL METHOD cont-&amp;gt;get_docking_side
        RECEIVING
          docking_side = wf_side.

      IF wf_side EQ cl_gui_docking_container=&amp;gt;dock_at_right.
        CALL METHOD cont-&amp;gt;dock_at
          EXPORTING
            side = cl_gui_docking_container=&amp;gt;dock_at_left.

      ELSE.
        CALL METHOD cont-&amp;gt;dock_at
          EXPORTING
            side = cl_gui_docking_container=&amp;gt;dock_at_right.


      ENDIF.
  ENDCASE.

ENDMODULE.                 " USER_COMMAND_0100  INPUT


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 11:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-modification-shift-screen-to-right-on-pressing-button/m-p/6930355#M1485681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T11:34:46Z</dc:date>
    </item>
  </channel>
</rss>

