<?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: Clear fields in Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417761#M1646290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you change value and press entrer just look in debugging what happens..In module pool its is always advisable to debug first. You will get better understanding of how technically this thing works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2012 12:54:01 GMT</pubDate>
    <dc:creator>nabheetscn</dc:creator>
    <dc:date>2012-01-11T12:54:01Z</dc:date>
    <item>
      <title>Clear fields in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417759#M1646288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a screen that has three sub-screens . With a code i check some things and i hide one of the subscreens when something triggers.&lt;/P&gt;&lt;P&gt;This subscreen has 3 fields that the exist and in the other screens. &lt;/P&gt;&lt;P&gt;The problem is that when i change record these  3 fileds only doesnt change value and keep the first value that they had.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look my code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen hide code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PF-STATUS 'MAIN100'.
  SET TITLEBAR 'TITLE'.

  IF ITAB-CLAIMDPT = '02'.
    SCREEN_CUST = TEXT-SC1. "'Vendor'.
    SCREEN_BILL = TEXT-SC3.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'CMD_TAB6'.
        SCREEN-ACTIVE = '1'.
        SCREEN-INVISIBLE = '0'.
      ENDIF.
      IF SCREEN-NAME = 'CMD_TAB3'.
        SCREEN-ACTIVE = '1'.
        SCREEN-INVISIBLE = '1'.
      ENDIF.
      IF SCREEN-NAME = 'CMD_TAB2'.
        SCREEN-ACTIVE = '1'.
        SCREEN-INVISIBLE = '1'.
      ENDIF.
      IF SCREEN-NAME = 'CMD_TAB1'.
        SCREEN-ACTIVE = '1'.
        SCREEN-INVISIBLE = '1'.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.

  ELSE.
    SCREEN_CUST = TEXT-SC2. "'Customer'.
    SCREEN_BILL = TEXT-SC4.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'CMD_TAB6'.
        SCREEN-ACTIVE = '1'.
        SCREEN-INVISIBLE = '1'.
      ENDIF.
      IF SCREEN-NAME = 'CMD_TAB3'.
        SCREEN-ACTIVE = '1'.
        SCREEN-INVISIBLE = '0'.
      ENDIF.
      IF SCREEN-NAME = 'CMD_TAB2'.
        SCREEN-ACTIVE = '1'.
        SCREEN-INVISIBLE = '0'.
      ENDIF.
      IF SCREEN-NAME = 'CMD_TAB1'.
        SCREEN-ACTIVE = '1'.
        SCREEN-INVISIBLE = '0'.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you thing that is matter of the fields .......???&lt;/P&gt;&lt;P&gt;Also i see in the debbuging that the field is filled with the right value ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 11:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417759#M1646288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-11T11:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clear fields in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417760#M1646289</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 using chain ...end chain in pai module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards ,&lt;/P&gt;&lt;P&gt;somesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 12:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417760#M1646289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-11T12:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Clear fields in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417761#M1646290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you change value and press entrer just look in debugging what happens..In module pool its is always advisable to debug first. You will get better understanding of how technically this thing works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 12:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417761#M1646290</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-11T12:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Clear fields in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417762#M1646291</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;For every IF condition, write ELSE so that the screen is not modified, If possible assign screen fields which are to be modified for a particular condition to GROUP so that the logic looks good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 13:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-fields-in-screen/m-p/8417762#M1646291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-11T13:04:39Z</dc:date>
    </item>
  </channel>
</rss>

