<?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: Listbox item selection event should hide another Parameter - Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065711#M1503961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_BENEF AS LISTBOX VISIBLE LENGTH 35 USER-COMMAND abc.

PARAMETERS: 
P_RFQ_NO LIKE EKKO-EBELN MODIF ID bl2, 
P_COL_NO LIKE EKKO-SUBMI MODIF ID bl3.

INITIALIZATION.
* Populate list box values
  name = 'P_BENEF'.
  value-key = '1'. value-text = 'Value1'.
  APPEND value TO list.
  value-key = '2'. value-text = Value2'.
  APPEND value TO list.

  AT SELECTION-SCREEN OUTPUT.
* Set list box with value
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id     = name
      values = list.

* Control the display of screen components
  LOOP AT SCREEN.
    IF P_BENEF = 1.
      IF screen-name  = 'P_RFQ_NO'.
        SCREEN-INPUT = 1.
        screen-invisible = 0.
      ELSEIF screen-name  = 'P_COL_NO'.
        SCREEN-INPUT = 0.
        screen-invisible = 1.
      ENDIF.
      MODIFY SCREEN.
    ELSEIF P_BENEF = 2.
      IF screen-name  = 'P_RFQ_NO'.
        SCREEN-INPUT = 0.
        screen-invisible = 1.
      ELSEIF screen-name  = 'P_COL_NO'.
        SCREEN-INPUT = 1.
        screen-invisible = 0.
      ENDIF.
      MODIFY SCREEN.
    ELSEIF P_BENEF = space.
*      clear: P_RFQ_NO,P_COL_NO.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 05:36:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-13T05:36:31Z</dc:date>
    <item>
      <title>Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065703#M1503953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;As everyone of you may know that we can use a listbox item selection to hide other parameter in a report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like for instance, if user selects an item in listbox then we will usually loop at screen and make other radio button fields visible / invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to hide the radio buttons but when i try to set a parameter ( textbox like ) then i can see the parameter ( textbox ) filled with stars ********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why a radio button is hiding successfully and not a textbox parameter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me how to hide a textbox parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 11:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065703#M1503953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T11:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065704#M1503954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; first make tat text field input disable and then invisible ,&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;        SCREEN-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt; this will work , hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Madhukar Shetty on Jul 12, 2010 2:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 12:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065704#M1503954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T12:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065705#M1503955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhukar Shetty ,&lt;/P&gt;&lt;P&gt;Thank you so much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your idea helped me a lot. I would like to hide the corresponding text element along with the Parameter ( textbox ).&lt;/P&gt;&lt;P&gt;Can you please suggest me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 12:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065705#M1503955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T12:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065706#M1503956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="qoute"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would like to hide the corresponding text element along&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its a module pool , then yu can use field &lt;STRONG&gt;screen-name&lt;/STRONG&gt; to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 12:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065706#M1503956</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-07-12T12:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065707#M1503957</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;If it is a module pool then you are right. But my problem here is with the Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me a solution for this Text element hiding in reports?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 04:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065707#M1503957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T04:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065708#M1503958</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; Have you tried with MODIF ID ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS
     : p_test        TYPE char01,
       p_nor         TYPE char10
                     MODIF ID nor.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1 = 'NOR'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 04:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065708#M1503958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T04:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065709#M1503959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajvansh Ravi,&lt;/P&gt;&lt;P&gt;I have already tried it but it didnt work in my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give more suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 05:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065709#M1503959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T05:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065710#M1503960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Pls provide your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 05:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065710#M1503960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T05:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065711#M1503961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_BENEF AS LISTBOX VISIBLE LENGTH 35 USER-COMMAND abc.

PARAMETERS: 
P_RFQ_NO LIKE EKKO-EBELN MODIF ID bl2, 
P_COL_NO LIKE EKKO-SUBMI MODIF ID bl3.

INITIALIZATION.
* Populate list box values
  name = 'P_BENEF'.
  value-key = '1'. value-text = 'Value1'.
  APPEND value TO list.
  value-key = '2'. value-text = Value2'.
  APPEND value TO list.

  AT SELECTION-SCREEN OUTPUT.
* Set list box with value
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id     = name
      values = list.

* Control the display of screen components
  LOOP AT SCREEN.
    IF P_BENEF = 1.
      IF screen-name  = 'P_RFQ_NO'.
        SCREEN-INPUT = 1.
        screen-invisible = 0.
      ELSEIF screen-name  = 'P_COL_NO'.
        SCREEN-INPUT = 0.
        screen-invisible = 1.
      ENDIF.
      MODIFY SCREEN.
    ELSEIF P_BENEF = 2.
      IF screen-name  = 'P_RFQ_NO'.
        SCREEN-INPUT = 0.
        screen-invisible = 1.
      ELSEIF screen-name  = 'P_COL_NO'.
        SCREEN-INPUT = 1.
        screen-invisible = 0.
      ENDIF.
      MODIFY SCREEN.
    ELSEIF P_BENEF = space.
*      clear: P_RFQ_NO,P_COL_NO.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 05:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065711#M1503961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T05:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065712#M1503962</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; Instead of SCREEN-NAME you have to use SCREEN-GROUP1 as i have mentioned in my previous post. You have not changed that in you code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
     IF screen-group1  = 'BL2'.
       SCREEN-ACTIVE = 0.
     ELSEIF screen-group1  = 'BL3'.
       SCREEN-ACTIVE = 0.
     ENDIF.
     MODIFY SCREEN.
     IF screen-group1  = 'BL2'.
       SCREEN-ACTIVE = 0.
     ELSEIF screen-group1  = 'BL3'.
       SCREEN-ACTIVE = 0.
     ENDIF.
     MODIFY SCREEN.

*      clear: P_RFQ_NO,P_COL_NO.

 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the code accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 06:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065712#M1503962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T06:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065713#M1503963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have made few corrections to your code. Pls check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS VRM.

DATA
     : name TYPE  VRM_ID,
       list TYPE  VRM_VALUES,
       value TYPE VRM_VALUE.

PARAMETERS: P_BENEF AS LISTBOX VISIBLE LENGTH 35 USER-COMMAND abc.

PARAMETERS:
P_RFQ_NO LIKE EKKO-EBELN MODIF ID bl2,
P_COL_NO LIKE EKKO-SUBMI MODIF ID bl3.

INITIALIZATION.
* Populate list box values
  name = 'P_BENEF'.
  value-key = '1'. value-text = 'Value1'.
  APPEND value TO list.
  value-key = '2'. value-text = 'Value2'.
  APPEND value TO list.

* Set list box with value
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id     = name
      values = list.

  AT SELECTION-SCREEN OUTPUT.


* Control the display of screen components
  LOOP AT SCREEN.
    IF P_BENEF = 1.
      IF screen-group1  = 'BL2'.
        SCREEN-ACTIVE = 1.
      ELSEIF screen-group1  = 'BL3'.
        SCREEN-ACTIVE = 0.
      ENDIF.
      MODIFY SCREEN.
    ELSEIF P_BENEF = 2.
      IF screen-group1  = 'BL2'.
        SCREEN-ACTIVE = 0.
      ELSEIF screen-name  = 'BL3'.
        SCREEN-ACTIVE = 1.
      ENDIF.
      MODIFY SCREEN.
    ELSEIF P_BENEF = space.
*      clear: P_RFQ_NO,P_COL_NO.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 06:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065713#M1503963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T06:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065714#M1503964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ravi,&lt;/P&gt;&lt;P&gt;Your code worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the timely help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 06:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065714#M1503964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T06:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox item selection event should hide another Parameter - Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065715#M1503965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i understand i should put screen items in a group and make SCREEN-ACTIVE = 0 instead of SCREEN-INSIVIBLE =1.&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 06:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-item-selection-event-should-hide-another-parameter-problem/m-p/7065715#M1503965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T06:23:33Z</dc:date>
    </item>
  </channel>
</rss>

