Application Development and Automation 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: 
Read only

Cl_salv_table sort problem

Former Member
0 Likes
405

Halo Experts,

I have an internal table with the following output.


field1  field1_descr  val11  val12   field2  field2_descr  val21  val22
f1       zzzz            1        1        f2       zzzz            2        1
f1       zzzz            1        3        f2       zzzz            2        3
f1_2   aaaa             2                 f2_1    bbbb            3        4
 

I want to display like below


field1_descr  val11  val12   field2_descr  val21  val22
zzzz            1        1        zzzz             2       1
                             3
aaaa            2                  bbbb             3        4
  

ie the merging should happen for descr fields as well as the val fields.

I am getting the sort object reference and calling the add_sort method for field1 field1_descr and val fields. Silmilarly I do this for field2 field2_descr and val fields

But when the output the val fields are repeating even though it has the same data .

Regards

Arshad

2 REPLIES 2
Read only

Former Member
0 Likes
343

Halo experts,

I hope this kind of merging does not happen for INT fields Am I right?

Regards

Arshad

Edited by: Arshad Ansary on Mar 5, 2011 8:05 PM

Read only

0 Likes
343

Hi Arshad,

Yes, this kind of merging does not happen for pure number type data elements.

best regards,

Asim