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

ALV Sort Vertical Merging

Former Member
0 Likes
603

I am trying to display a table in a subscreen,

1. I have made my sort table and passed it to the set_table_first_display.

lw_sort-spos = '1'.
lw_sort-fieldname = 'KUNNR'.
lw_sort-up = c_x.

* Append Work Area to the Table
APPEND lw_sort TO p_sort.
CLEAR  lw_sort.

2. I have also made sure that the No_merging field is not marked in the fieldcatalog and layout.

But inspite of all of this, the cells do NOT get vertically merged.

I was under the impression, In ALV Grid Display, the Sort Criterion by default makes the column contents Vertically merged.

Basically I am getting this as a display,

1400 -------other data -----
1400 -------other data -----
1500 -------other data -----
1500 -------other data -----

I want this,

1400 -------other data -----
     -------other data -----
1500 -------other data -----
     -------other data -----

How do I achieve this? Doesnt this generally come default in ALV Grid?

Also let me add, my display table is editable, so does this default vertical merge get turned off in any scenario?

Has anyone encountered this/something similar?

Would be thrilled to get a solution.

Thanx.

Message was edited by: Prasenjit Guha

Message was edited by: Prasenjit Guha

I am trying to display a table in a subscreen,

1. I have made my sort table and passed it to the set_table_first_display.

lw_sort-spos = '1'.
lw_sort-fieldname = 'KUNNR'.
lw_sort-up = c_x.

* Append Work Area to the Table
APPEND lw_sort TO p_sort.
CLEAR  lw_sort.

2. I have also made sure that the No_merging field is not marked in the fieldcatalog and layout.

But inspite of all of this, the cells do NOT get vertically merged.

I was under the impression, In ALV Grid Display, the Sort Criterion by default makes the column contents Vertically merged.

Basically I am getting this as a display,

1400 -------other data -----
1400 -------other data -----
1500 -------other data -----
1500 -------other data -----

I want this,

1400 -------other data -----
     -------other data -----
1500 -------other data -----
     -------other data -----

How do I achieve this? Doesnt this generally come default in ALV Grid?

Also let me add, my display table is editable, so does this default vertical merge get turned off in any scenario?

Has anyone encountered this/something similar?

Would be thrilled to get a solution.

Thanx.

Message was edited by: Prasenjit Guha

Message was edited by: Prasenjit Guha

2 REPLIES 2
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
441

Hi Prasenjit

As far as I experienced, if you make your ALV grid editable, regardless of the no_merging adjustment, ALV shows lines unmerged.

Regards

*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

Read only

0 Likes
441

Hi Serdar thank you for your post.

How do you suggest I achieve the following for an editable grid.

Current Display,

1400 -------other data -----
1400 -------other data -----
1500 -------other data -----
1500 -------other data -----

I want this,

1400 -------other data -----
     -------other data -----
1500 -------other data -----
     -------other data -----