<?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: Changing text fields in module pool dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291306#M1389895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ROCKY and Vinod I tried by using OUTPUT ONLY but then the field becomes invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what should be done about it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2009 11:02:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-19T11:02:51Z</dc:date>
    <item>
      <title>Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291301#M1389890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;        I want to change the text fields during runtime in screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If the label is 'EMPLOYEE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want to change it to 'EMPLOYER'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 06:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291301#M1389890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T06:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291302#M1389891</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;We cannot change label directly but the same thing can be achieved in a different way. Instead of label create a I/O field&lt;/P&gt;&lt;P&gt;and go to Program and make it output only. it will now behave as label but the text can be changed iin the following way.&lt;/P&gt;&lt;P&gt;Step 1 : Declare a variable of TYPE STRING in your Program and map that i/o field(on screen) to this variable.&lt;/P&gt;&lt;P&gt;             DATA: V_VAR1 TYPE STRING.&lt;/P&gt;&lt;P&gt;             Now map it to from i/o field of screen.&lt;/P&gt;&lt;P&gt;Step 2: In the PBO of the screen write the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          Loop AT SCREEN.&lt;/P&gt;&lt;P&gt;              V_VAR1 = 'HII'.&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;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rocky kr. Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 14:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291302#M1389891</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2009-11-16T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291303#M1389892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In addition to Rocky's responce, You can select the screen field attribute &lt;STRONG&gt;2D display&lt;/STRONG&gt; in display tab to avoid displaying the borders for the input fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 15:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291303#M1389892</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2009-11-16T15:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291304#M1389893</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;Even if you want any other modufication you can check for more options in display tabs and you can go ahead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rocky Kr. Agarawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291304#M1389893</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2009-11-18T14:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291305#M1389894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, In PBO you will have to put code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at screen&lt;/P&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;make the text fieldvisible/invisible according to the condition.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: bhushankotwal on Nov 19, 2009 9:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 08:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291305#M1389894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T08:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291306#M1389895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ROCKY and Vinod I tried by using OUTPUT ONLY but then the field becomes invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what should be done about it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 11:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291306#M1389895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T11:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291307#M1389896</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the TOP include declare a variable of type string or c.(say w_test).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the screen painter go to dictionary/program fields window(F6) and give w_test as input and click Get from program.Select the field and put it on the screen.Now go to the attribute window of the I/O field and in Program tab give output only.&lt;/P&gt;&lt;P&gt;Now the I/O field on the screen has been linked to the variable in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now whatever value you will assign to this variable(w_test) will be reflected on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the condition dynamically change the values of the variable in the PBO ("employee" or"employer" in your case).&lt;/P&gt;&lt;P&gt;This should solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Avinash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 11:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291307#M1389896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T11:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291308#M1389897</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 top declare a variable .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: vekp.&lt;/P&gt;&lt;P&gt;Data: V_var1 TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to screen layout create a textbox. Double click on it, a dialog box will appear. Click on program tab. make it output only. Now map it to the variable declared in top.&lt;/P&gt;&lt;P&gt;Mapping the variable:&lt;/P&gt;&lt;P&gt;Click on the text field. press F6. you will get a dialog box. Enter the name of the variable (V_var1) and click on get from program.&lt;/P&gt;&lt;P&gt;But before clicking on Get to program make sure that your top declaration is active. After clicking on Get from program select the listed variable and click on check.&lt;/P&gt;&lt;P&gt;Activate the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the screen assign a value to the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module STATUS_0100 output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Loop AT SCREEN.&lt;/P&gt;&lt;P&gt;V_var1 = 'HII'.&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;endmodule.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work. It has to work. Try and see. If still not working then paste the code that u have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 12:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291308#M1389897</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2009-11-19T12:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291309#M1389898</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;I wrongly added table in top include. Please avoid that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 12:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291309#M1389898</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2009-11-19T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text fields in module pool dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291310#M1389899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocky,sgrshah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not need to "loop at screen" for assigning the value to the variable and displaying it on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only V_var1 = 'HII' will work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Avinash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 12:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-fields-in-module-pool-dynamically/m-p/6291310#M1389899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T12:48:45Z</dc:date>
    </item>
  </channel>
</rss>

