Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

cl_salv_hierseq_table get_selections issue

former_member221827
Active Participant
0 Kudos

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.

---EDIT---

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:

1 ACCEPTED SOLUTION

former_member221827
Active Participant

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.

1 REPLY 1

former_member221827
Active Participant

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.