<?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: When clicked on button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320108#M509229</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;U need to use LOOP AT SCREEN statament in PBO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PBO.

 MODULE LOOP_SCREEN.

PROCESS PAI.
 
 MODULE USER_COMMAND.

MODULE USER_COMMAND.
   CASE OK_CODE.
     WHEN 'EDIT'. FL_EDIT = 'X'.
     ........................................
   ENDCASE.
ENDMODULE.

MODULE LOOP_SCREEN.
 CHECK FL_EDIT = 'X'.
 LOOP AT SCREEN.
   IF SCREEN-NAME = &amp;lt;FIELD NAME&amp;gt;
      SCREEN-INPUT = 1.
      MODIFY SCREEN.
   ENDIF.
ENDLOOP.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway you have to change the attribute of that field because if RED-ONLY can't be changed at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2007 08:14:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-25T08:14:21Z</dc:date>
    <item>
      <title>When clicked on button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320106#M509227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to enable the textboxes to enter values.&lt;/P&gt;&lt;P&gt;At the beginning they are only for output purpose, however I want them to be enabled to enter values in them if the user wants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen has two pushbuttons, 'BACK' and 'EDIT'. The data is displayed as read only in textboxes. If the user just wants to see the data, he/she has the option to go back. However if they want to edit, I have put another button 'EDIT' and when it is clicked the textboxes should be writable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? Can I change the properties(which has been assigned at design time) of the textboxes at runtime.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Deniz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320106#M509227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: When clicked on button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320107#M509228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this program "demo_dynpro_modify_simple". this shows how you can enable the text on click of command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320107#M509228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: When clicked on button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320108#M509229</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;U need to use LOOP AT SCREEN statament in PBO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PBO.

 MODULE LOOP_SCREEN.

PROCESS PAI.
 
 MODULE USER_COMMAND.

MODULE USER_COMMAND.
   CASE OK_CODE.
     WHEN 'EDIT'. FL_EDIT = 'X'.
     ........................................
   ENDCASE.
ENDMODULE.

MODULE LOOP_SCREEN.
 CHECK FL_EDIT = 'X'.
 LOOP AT SCREEN.
   IF SCREEN-NAME = &amp;lt;FIELD NAME&amp;gt;
      SCREEN-INPUT = 1.
      MODIFY SCREEN.
   ENDIF.
ENDLOOP.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway you have to change the attribute of that field because if RED-ONLY can't be changed at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320108#M509229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: When clicked on button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320109#M509230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you max.&lt;/P&gt;&lt;P&gt;You have understood me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to ask a new question to you. How can I handle context menu?&lt;/P&gt;&lt;P&gt;It is there, on properties form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a class having on_context_menu method and implementation also it has.&lt;/P&gt;&lt;P&gt;But when I will use its function code I do not know.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Deniz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320109#M509230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: When clicked on button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320110#M509231</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;in pbo module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'txtbox1'&lt;/P&gt;&lt;P&gt;     screen-input = 0.&lt;/P&gt;&lt;P&gt;  modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-name = 'txtbox2'&lt;/P&gt;&lt;P&gt;     screen-input = 0.&lt;/P&gt;&lt;P&gt;  modify screen.&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pai event.&lt;/P&gt;&lt;P&gt;data: ok_code like sy-ucomm.&lt;/P&gt;&lt;P&gt;ok_code = sy-ucomm.&lt;/P&gt;&lt;P&gt;at line selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'back'&lt;/P&gt;&lt;P&gt;loop  at screen.       &lt;/P&gt;&lt;P&gt;if screen-name = 'txtbox1'.&lt;/P&gt;&lt;P&gt;          screen-input = 1.&lt;/P&gt;&lt;P&gt;          modify screen.       &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-name = 'txtbox2'.&lt;/P&gt;&lt;P&gt;          screen-input = 1.&lt;/P&gt;&lt;P&gt;          modify screen.       &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'EDIT'.&lt;/P&gt;&lt;P&gt;loop  at screen.       &lt;/P&gt;&lt;P&gt;if screen-name = 'txtbox1'.&lt;/P&gt;&lt;P&gt;          screen-input = 1.&lt;/P&gt;&lt;P&gt;          modify screen.       &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-name = 'txtbox2'.&lt;/P&gt;&lt;P&gt;          screen-input = 1.&lt;/P&gt;&lt;P&gt;          modify screen.       &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-clicked-on-button/m-p/2320110#M509231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:22:15Z</dc:date>
    </item>
  </channel>
</rss>

