Skip to Content
0

Problems with Sorting in Crosstable

Jun 22, 2017 at 11:42 AM

50

avatar image

As per https://archive.sap.com/discussions/thread/3731541

We too expect all columns to be sortable but it is only the first column that sorts?

I have tried by using the sort icon or the context menu and both give the same result?

Sorting is enabled for the table. The user wants to be able to sort by whichever column they choose so its not something I can predefine.

Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Tammy Powlas
Jun 22, 2017 at 11:53 AM
0

Hi Alex - I can sort, no problem - this is a screenshot from my sandbox - should we compare versions? I am using 1.6 SP4.1 on this one:


alexsort.jpg (93.8 kB)
Show 9 Share
10 |10000 characters needed characters left characters exceeded

I am using Version 16.4.0 I applied the sort to Material and Customer and as you can see both are not in any sort of order.

crosstab.png (19.0 kB)
0

OK, for clarity, the notification appears sorted, but material isn't?

1

Yes correct.

I can see what is happening now, It seems the sort is being applied by the first column.

I have created a new DS and Table. When trying to sort the item column it seems it takes the first column into account too. I would expect that the item would show all items numbers that are the same rather than item numbers in order by sales doc.

0

You can see below that the Sales doc numbers don't change but the item order does. If I wanted to just sort by customer for example I would have to move the customer to be the first column which isn't as user friendly as I would like.

sort-1.png (22.3 kB)
sort2.png (21.3 kB)
0

My first guess is you are looking for the advanced sort, such as Mike has in his SDK/blog: https://blogs.sap.com/2015/06/25/design-studio-extension-advanced-data-tables-phase-1/ - correct? Where you select multiple columns and then sort?

1

Hi Alex,

As "Tammy" said is correct. It looks like material and customer has been sorted.

Kindly make sure crosstab property, sorting has been enabled,

Regards,

Vidhya.C

0

Hi Both

I don't want advanced sorting I just want whichever column I select to sort to be sorted on. I think the default crosstab is almost setting up a hierarchical sort which is not what I would like.

I have raised an Idea for this now as I believe it should be standard functionality.

https://ideas.sap.com/D43576

Vidhya, I have this enabled already as mentioned above.

Thanks

0

Tammy, I have tried the Advanced data table before, this is excellent for sorting but bad for displaying measures

My Decimal places in the query are ignored, I do believe I highlighted this to mike before but cannot recall his reply.

advanced.png (6.6 kB)
0

Hi Alex,

Did you find a solution for this? I am in similar situation.

https://answers.sap.com/questions/473650/crosstab-based-on-universe-data-source-unable-to-s.html

Do we need to layout data in crosstab manner rather than be vertical table?

Regards

Angad

0