<?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 Setting attribute value set to ALV cell in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-attribute-value-set-to-alv-cell/m-p/5329196#M1228096</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 an editable ALV, with two of the columns being drop down by keys. On selecting a value from one column, I need the options of the second column drop down to change. This is what I am doing now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Activate the ON_CELL_ACTION event, in WDDOMODIFYVIEW&lt;/P&gt;&lt;P&gt;2. Catch the ON_CELL_ACTION event, inside which I populate the attribute value set accordingly, and set it by using the set_attribute_value_set option for if_wd_context_node_info. Although my list of values set is right, the 'set_attribute_value_set' does not seem to set the list of values to the attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something more I should be doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shalini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2009 06:07:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-17T06:07:12Z</dc:date>
    <item>
      <title>Setting attribute value set to ALV cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-attribute-value-set-to-alv-cell/m-p/5329196#M1228096</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 an editable ALV, with two of the columns being drop down by keys. On selecting a value from one column, I need the options of the second column drop down to change. This is what I am doing now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Activate the ON_CELL_ACTION event, in WDDOMODIFYVIEW&lt;/P&gt;&lt;P&gt;2. Catch the ON_CELL_ACTION event, inside which I populate the attribute value set accordingly, and set it by using the set_attribute_value_set option for if_wd_context_node_info. Although my list of values set is right, the 'set_attribute_value_set' does not seem to set the list of values to the attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something more I should be doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shalini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 06:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-attribute-value-set-to-alv-cell/m-p/5329196#M1228096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T06:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting attribute value set to ALV cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-attribute-value-set-to-alv-cell/m-p/5329197#M1228097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you used REFRESH_TABLE_DISPLAY?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM ALV_DISPLAY .
  IF GRID1 IS INITIAL.
    CREATE OBJECT CUSTOM_CONTAINER1
             EXPORTING
                 CONTAINER_NAME = 'HEADER'.
    CREATE OBJECT GRID1
              EXPORTING I_PARENT = CUSTOM_CONTAINER1.

    CREATE OBJECT EVENT_RECEIVER.

    SET HANDLER : EVENT_RECEIVER-&amp;gt;HANDLE_DATA_CHANGED FOR GRID1,
                  EVENT_RECEIVER-&amp;gt;ON_DOUBLE_CLICK FOR GRID1.


*    CALL METHOD GRID1-&amp;gt;REGISTER_EDIT_EVENT
*      EXPORTING
*        I_EVENT_ID = CL_GUI_ALV_GRID=&amp;gt;MC_EVT_ENTER.

    CALL METHOD GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
        IS_LAYOUT            = LS_LAYOUT
*      IT_TOOLBAR_EXCLUDING = PT_EXCLUDE[]
      CHANGING
        IT_FIELDCATALOG      = LT_FIELDCAT
        IT_OUTTAB            = IT_SALSUM_FI.
  ELSE.
    CALL METHOD GRID1-&amp;gt;REFRESH_TABLE_DISPLAY
*  EXPORTING
*    IS_STABLE      =
*    I_SOFT_REFRESH =
         EXCEPTIONS
           FINISHED       = 1
           OTHERS         = 2
               .
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ROHIT SHARMA on Mar 17, 2009 11:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-attribute-value-set-to-alv-cell/m-p/5329197#M1228097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T10:11:44Z</dc:date>
    </item>
  </channel>
</rss>

