<?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: Module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048160#M421920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just go to PBO of the screen and write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if checkbox/radiobutton = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;IF screen-name = 'FIELD NAME'.&lt;/P&gt;&lt;P&gt;screen-input = '0'.&lt;/P&gt;&lt;P&gt;screen-output = '1'.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need to go through this much of lengthy sample codes,reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 14:12:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-12T14:12:48Z</dc:date>
    <item>
      <title>Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048157#M421917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having two buttons on selection screen(say button 1 and button2) .&lt;/P&gt;&lt;P&gt;if i press the button1 i need to display the text editor in display mode.&lt;/P&gt;&lt;P&gt;if i press the button2 i need to display the text editor in enable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions....... urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;P&gt;krish...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 08:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048157#M421917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T08:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048158#M421918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on SY-UCOMM, you need to set &lt;/P&gt;&lt;P&gt;read-only-mode = true or false in method &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET_READONLY_MODE&amp;lt;/b&amp;gt; of class &amp;lt;b&amp;gt;CL_GUI_TEXTEDIT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the following code for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
    gi_container  type ref to cl_gui_custom_container,
    gi_te_control type ref to cl_gui_textedit        ,
    gt_texttab    type table of tdline               .

constants:
    gc_container(13) value 'TEC_CONTAINER'           .
data lv_button(7).
at selection-screen.
     lv_button = sy-ucomm.
endcase.

start-of-selection.

  set pf-status '9000'.
  create object gi_container
  exporting
      container_name              = gc_container
  exceptions
      cntl_error                  = 1
      cntl_system_error           = 2
      create_error                = 3
      lifetime_error              = 4
      lifetime_dynpro_dynpro_link = 5
      others                      = 6     .
  if sy-subrc = 0.
      call method gi_container-&amp;gt;set_focus
      exporting
          control = gi_container.

      call method cl_gui_cfw=&amp;gt;flush
      exceptions
          others = 1.
      create object gi_te_control
      exporting
          parent                     = gi_container
          wordwrap_mode              = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
          wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true
      exceptions
          error_cntl_create      = 1
          error_cntl_init        = 2
          error_cntl_link        = 3
          error_dp_create        = 4
          gui_type_not_supported = 5
          others                 = 6        .
      if sy-subrc = 0.
          if lv_button = 'BUTTON1'.
                 call method gi_te_control-&amp;gt;set_readonly_mode
                 exporting
                       readonly_mode          = cl_gui_textedit=&amp;gt;true
                 exceptions
                       error_cntl_call_method = 1
                       invalid_parameter      = 2
                       others                 = 3                  .
          endif.
          call method gi_te_control-&amp;gt;set_text_as_r3table
            exporting
              table           = gt_texttab
            exceptions
              error_dp        = 1
              error_dp_create = 2
              others          = 3                  .
          if sy-subrc &amp;lt;&amp;gt; 0.
*           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          endif.
          call method cl_gui_cfw=&amp;gt;flush
          exceptions
              others = 1.
      endif.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 09:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048158#M421918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T09:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048159#M421919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;check with this example :&lt;/P&gt;&lt;P&gt; REPORT demo_sel_screen_pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA flag(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:&lt;/P&gt;&lt;P&gt;  BEGIN OF SCREEN 500 AS WINDOW TITLE tit,&lt;/P&gt;&lt;P&gt;    BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;      PUSHBUTTON 2(10) but1 USER-COMMAND cli1,&lt;/P&gt;&lt;P&gt;      PUSHBUTTON 12(10) text-020 USER-COMMAND cli2,&lt;/P&gt;&lt;P&gt;    END OF LINE,&lt;/P&gt;&lt;P&gt;    BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;      PUSHBUTTON 2(10) but3 USER-COMMAND cli3,&lt;/P&gt;&lt;P&gt;      PUSHBUTTON 12(10) text-040 USER-COMMAND cli4,&lt;/P&gt;&lt;P&gt;    END OF LINE,&lt;/P&gt;&lt;P&gt;  END OF SCREEN 500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;  CASE sscrfields-ucomm.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;here  u write the code for making the text editor enable or display mode, by *using the function modules :&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               call method gi_te_control-&amp;gt;set_readonly_mode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              exporting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   readonly_mode          = cl_gui_textedit=&amp;gt;true&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            exceptions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    error_cntl_call_method = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    invalid_parameter      = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      others                 = 3                  .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       call method gi_te_control-&amp;gt;set_text_as_r3table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            table           = gt_texttab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            error_dp        = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            error_dp_create = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            others          = 3                  .&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;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  tit  = 'Four Buttons'.&lt;/P&gt;&lt;P&gt;  but1 = 'Button 1'.&lt;/P&gt;&lt;P&gt;  but3 = 'Button 3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL SELECTION-SCREEN 500 STARTING AT 10 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE flag.&lt;/P&gt;&lt;P&gt;    WHEN '1'.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button 1 was clicked'.&lt;/P&gt;&lt;P&gt;    WHEN '2'.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button 2 was clicked'.&lt;/P&gt;&lt;P&gt;    WHEN '3'.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button 3 was clicked'.&lt;/P&gt;&lt;P&gt;    WHEN '4'.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button 4 was clicked'.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;      WRITE / 'No Button was clicked'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reward if it helps&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 06:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048159#M421919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T06:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048160#M421920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just go to PBO of the screen and write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if checkbox/radiobutton = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;IF screen-name = 'FIELD NAME'.&lt;/P&gt;&lt;P&gt;screen-input = '0'.&lt;/P&gt;&lt;P&gt;screen-output = '1'.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need to go through this much of lengthy sample codes,reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-programming/m-p/2048160#M421920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T14:12:48Z</dc:date>
    </item>
  </channel>
</rss>

