<?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: Reset Select options in Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161204#M1515886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

TABLES:PA0001.

DATA:LF_PERNR TYPE CHAR08.

PARAMETERS : R_PERNR RADIOBUTTON GROUP G2 MODIF ID CS1,
             R_2 RADIOBUTTON GROUP G2.
SELECT-OPTIONS : P_PERNR FOR LF_PERNR MODIF ID CS1.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    R_PERNR = SPACE.
    CLEAR P_PERNR[].
    SCREEN-INPUT = 0.
    MODIFY SCREEN.
 ENDLOOP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PERNR-LOW.
  PERFORM F4_HELP USING 'P_PERNR-LOW'.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PERNR-HIGH.
  PERFORM F4_HELP USING 'P_PERNR-HIGH'.

FORM F4_HELP USING PC_1.
  TYPES:BEGIN OF TY,
      PERNR TYPE PA0001-PERNR,
      END OF TY.
  DATA:IT TYPE TABLE OF TY.
  SELECT PERNR INTO TABLE IT FROM PA0001 UP TO 10 rows.
  CHECK IT[] IS NOT INITIAL.
  DELETE ADJACENT DUPLICATES FROM IT.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD    = 'PERNR'
      DYNPPROG    = SY-CPROG
      DYNPNR      = SY-DYNNR
      DYNPROFIELD = PC_1
      VALUE_ORG       = 'S'
    TABLES
      VALUE_TAB   = IT[]
    EXCEPTIONS
      OTHERS      = 0.
ENDFORM.           
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Aug 2010 14:45:25 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-08-02T14:45:25Z</dc:date>
    <item>
      <title>Reset Select options in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161200#M1515882</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 have a scenario where, i need to disable the select options and clear the visible contents in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently below is the logic implemented, the radio button is getting disabled and also cleared of selection.&lt;/P&gt;&lt;P&gt;Select option fields are getting disabled. &lt;/P&gt;&lt;P&gt;But the issue is, the Select options LOW and HIGH fields show the older values and are not getting reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : r_pernr RADIOBUTTON GROUP g2 MODIF ID cs1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :   p_pernr FOR pa0001-pernr MODIF ID cs1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF V_Flag NE 'X' AND&lt;/P&gt;&lt;P&gt;       screen-group1 = 'CS1'.&lt;/P&gt;&lt;P&gt;      r_pernr = space.&lt;/P&gt;&lt;P&gt;      p_pernr-low = space.&lt;/P&gt;&lt;P&gt;      p_pernr-high = space.&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;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 10:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161200#M1515882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-02T10:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Select options in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161201#M1515883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of &lt;/P&gt;&lt;P&gt;p_pernr-low = space.&lt;/P&gt;&lt;P&gt;p_pernr-high = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear p_pernr[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 10:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161201#M1515883</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-02T10:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Select options in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161202#M1515884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a CLEAR statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS : r_pernr RADIOBUTTON GROUP g2 MODIF ID cs1.
SELECT-OPTIONS : p_pernr FOR pa0001-pernr MODIF ID cs1.

AT SELECTION-SCREEN OUTPUT.
  IF v_flag NE 'X'.
    CLEAR: r_pernr, p_pernr[].
    LOOP AT SCREEN.
      IF screen-group1 = 'CS1'.
* r_pernr = space.
* p_pernr-low = space.
* p_pernr-high = space.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 10:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161202#M1515884</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-02T10:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Select options in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161203#M1515885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same logic and now it is clearing the values and replaced by '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is there a way to make those 'LOW' and 'HIGH' blank?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 14:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161203#M1515885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-02T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Select options in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161204#M1515886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

TABLES:PA0001.

DATA:LF_PERNR TYPE CHAR08.

PARAMETERS : R_PERNR RADIOBUTTON GROUP G2 MODIF ID CS1,
             R_2 RADIOBUTTON GROUP G2.
SELECT-OPTIONS : P_PERNR FOR LF_PERNR MODIF ID CS1.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    R_PERNR = SPACE.
    CLEAR P_PERNR[].
    SCREEN-INPUT = 0.
    MODIFY SCREEN.
 ENDLOOP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PERNR-LOW.
  PERFORM F4_HELP USING 'P_PERNR-LOW'.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PERNR-HIGH.
  PERFORM F4_HELP USING 'P_PERNR-HIGH'.

FORM F4_HELP USING PC_1.
  TYPES:BEGIN OF TY,
      PERNR TYPE PA0001-PERNR,
      END OF TY.
  DATA:IT TYPE TABLE OF TY.
  SELECT PERNR INTO TABLE IT FROM PA0001 UP TO 10 rows.
  CHECK IT[] IS NOT INITIAL.
  DELETE ADJACENT DUPLICATES FROM IT.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD    = 'PERNR'
      DYNPPROG    = SY-CPROG
      DYNPNR      = SY-DYNNR
      DYNPROFIELD = PC_1
      VALUE_ORG       = 'S'
    TABLES
      VALUE_TAB   = IT[]
    EXCEPTIONS
      OTHERS      = 0.
ENDFORM.           
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 14:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reset-select-options-in-screen/m-p/7161204#M1515886</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-02T14:45:25Z</dc:date>
    </item>
  </channel>
</rss>

