Skip to Content

cl_salv_hierseq_table get_selections issue

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.

First I select the sales order cell at the header level as shown:

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.

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.


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.

Same results.

Highlighting the top cell in the row:

When pressing ‘Display Selections’ Result is CONNID when it should be CARRID:

so.jpg (17.4 kB)
so-debug.jpg (130.8 kB)
hxyf5.png (15.7 kB)
ey9sh.png (5.8 kB)
ttsj6.png (12.7 kB)
wxrxe.png (11.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 22, 2017 at 01:18 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded