<?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 fields enable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776622#M1119296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to write the following code in PBO&lt;/P&gt;&lt;P&gt;group all the fields that you want to make enable.&lt;/P&gt;&lt;P&gt;i.e. gr1.&lt;/P&gt;&lt;P&gt;now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.

        if screen-group1 = 'gr1'.
            screen-active = 1.
        endif.

end loop.
modify screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mukund Parekh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mukund parekh on Nov 5, 2008 12:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2008 11:41:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-05T11:41:56Z</dc:date>
    <item>
      <title>Module pool fields enable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776621#M1119295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developing a screen.&lt;/P&gt;&lt;P&gt;am using this screen to insert header and item tables to database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the initial display am making all fields in disable mode in PBO.&lt;/P&gt;&lt;P&gt;so wen i click on update or display i hav to enable some key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am making enabling the particular fields in PAI but its showing in disable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even when i click 'ADD LINE' button i have to make multiple entries to my line item table based on my header table.entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;inapproprate text removed by moderator&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&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;Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Nov 5, 2008 1:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 11:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776621#M1119295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T11:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool fields enable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776622#M1119296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to write the following code in PBO&lt;/P&gt;&lt;P&gt;group all the fields that you want to make enable.&lt;/P&gt;&lt;P&gt;i.e. gr1.&lt;/P&gt;&lt;P&gt;now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.

        if screen-group1 = 'gr1'.
            screen-active = 1.
        endif.

end loop.
modify screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mukund Parekh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mukund parekh on Nov 5, 2008 12:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 11:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776622#M1119296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T11:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool fields enable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776623#M1119297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think many threads are there which is almost same with your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PAI when you CLICK on DISPLAY or UPDATE write this code.&lt;/P&gt;&lt;P&gt;Make sure you give the name of your I/O text field name as &amp;lt;TABLE NAME&amp;gt;-&amp;lt;field name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case Sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'DISPLAY'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZORMA-ASLN'. "field which u want to make active&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 1.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 1.&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;&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZORMA-APLC'.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 1.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 1.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 11:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776623#M1119297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T11:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool fields enable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776624#M1119298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the coding in PBO.&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;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 11:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776624#M1119298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T11:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool fields enable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776625#M1119299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for all ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but am using 4 push buttons..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on that am able to enable and disable the fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 02:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776625#M1119299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T02:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool fields enable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776626#M1119300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use flag...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; declare variable flag1 ,flag2,flag3, flag4 type c....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pai...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when push1.&lt;/P&gt;&lt;P&gt;   flag1 = 1...&lt;/P&gt;&lt;P&gt;when push 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  flag2 = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pbo....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if flag1 = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if flag2 = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 03:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776626#M1119300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T03:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool fields enable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776627#M1119301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that you are using a Table Control to input multiple lines of Item Data in the Database and a few fields of the Header Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in the PBO event, you have to handle the Table Control to make it Read-only. When the user presses the toggle display button, the remaining code in the PAI will take care of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP system, have a look at the ABAPDOCU. Also there are some demo code which will tell you the syntax and logic properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at them in SE38 using the following search string &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;DYNPRO&lt;/STRONG&gt;.*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 04:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-fields-enable/m-p/4776627#M1119301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T04:13:06Z</dc:date>
    </item>
  </channel>
</rss>

