<?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 cl_salv_hierseq_table get_selections issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-get-selections-issue/m-p/321129#M4828</link>
    <description>&lt;P&gt;I'm working with the class cl_salv_hierseq_table and running into an issue when trying to retrieve the currently selected cell.  Any input would be appreciated.&lt;/P&gt;&lt;P&gt;First I select the sales order cell at the header level as shown: &lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/21013-so.jpg"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21013-so.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then I press a custom button on the toolbar to trigger the "on_user_command" event.  From here the cell column being returned is COM_PO_NUMBER where I'd expect it to be SALES_ORDER.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21014-so-debug.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I'm quite lost as to why it's picking the wrong column, all I can think is it has something to do with the header columns being stacked.&lt;/P&gt;&lt;P&gt;---EDIT---&lt;/P&gt;&lt;P&gt;I am able to reproduce in the standard SAP program
(SALV_DEMO_HIERSEQ_SELECTIONS) by changing the grid’s output so that the header
spans 2 lines.&lt;/P&gt;&lt;P&gt;Same results.&lt;/P&gt;&lt;P&gt; 
&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21509-ttsj6.png" /&gt;&lt;/P&gt;&lt;P&gt; 
&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21508-wxrxe.png" /&gt;&lt;/P&gt;&lt;P&gt;Highlighting the top cell in the row:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21507-hxyf5.png" /&gt;&lt;/P&gt;&lt;P&gt;When pressing ‘Display Selections’ Result is CONNID when it
should be CARRID:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21510-ey9sh.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 18:03:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-02-16T18:03:36Z</dc:date>
    <item>
      <title>cl_salv_hierseq_table get_selections issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-get-selections-issue/m-p/321129#M4828</link>
      <description>&lt;P&gt;I'm working with the class cl_salv_hierseq_table and running into an issue when trying to retrieve the currently selected cell.  Any input would be appreciated.&lt;/P&gt;&lt;P&gt;First I select the sales order cell at the header level as shown: &lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/21013-so.jpg"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21013-so.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then I press a custom button on the toolbar to trigger the "on_user_command" event.  From here the cell column being returned is COM_PO_NUMBER where I'd expect it to be SALES_ORDER.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21014-so-debug.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I'm quite lost as to why it's picking the wrong column, all I can think is it has something to do with the header columns being stacked.&lt;/P&gt;&lt;P&gt;---EDIT---&lt;/P&gt;&lt;P&gt;I am able to reproduce in the standard SAP program
(SALV_DEMO_HIERSEQ_SELECTIONS) by changing the grid’s output so that the header
spans 2 lines.&lt;/P&gt;&lt;P&gt;Same results.&lt;/P&gt;&lt;P&gt; 
&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21509-ttsj6.png" /&gt;&lt;/P&gt;&lt;P&gt; 
&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21508-wxrxe.png" /&gt;&lt;/P&gt;&lt;P&gt;Highlighting the top cell in the row:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21507-hxyf5.png" /&gt;&lt;/P&gt;&lt;P&gt;When pressing ‘Display Selections’ Result is CONNID when it
should be CARRID:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/21510-ey9sh.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-get-selections-issue/m-p/321129#M4828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-02-16T18:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: cl_salv_hierseq_table get_selections issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-get-selections-issue/m-p/321130#M4829</link>
      <description>&lt;P&gt;After creating an SAP ticket it was discussed and I was told this is not possible to fix with the current class due to the way it was implemented as a generic wrapper.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 13:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-get-selections-issue/m-p/321130#M4829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-22T13:18:01Z</dc:date>
    </item>
  </channel>
</rss>

