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-OO sort without empty fields?

Former Member
0 Likes
738

Hi,

i use ALV - OO wth: CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY.

When i use the sort-button the entry of the sorten fields with same entries are empty.

Before sort:

MATNR

MATKL

111111

000002

111112

000002

111113

000001

111114

000001

after sort:

MATNR

MATKL

111113

000001

111114

111111

000002

111112

i want to have:

MATNR

MATKL

111113

000001

111114

000001

111111

000002

111112

000002

Is there any parameter in layout i have to set? I have searched, but i cannot find any.

Thanks.

regards, Dieter

1 ACCEPTED SOLUTION
Read only

rajesh_paruchuru
Active Participant
0 Likes
693

> Hi,

>

> i use ALV - OO wth: CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY.

>

> When i use the sort-button the entry of the sorten fields with same entries are empty.

>

> Before sort:

>

> | MATNR | MATKL |

> | 111111 | 000002|

> | 111112 | 000002|

> | 111113 | 000001|

> | 111114 | 000001|

>

> after sort:

>

> | MATNR | MATKL |

> | 111113 | 000001|

> | 111114 | |

> | 111111 | 000002|

> | 111112 | |

>

> i want to have:

>

> | MATNR | MATKL |

> | 111113 | 000001|

> | 111114 | 000001|

> | 111111 | 000002|

> | 111112 | 000002|

>

> Is there any parameter in layout i have to set? I have searched, but i cannot find any.

>

> Thanks.

>

> regards, Dieter

Hello Dieter

How about disabling the cell merging using the layout parameter 'NO_MERGING'?

Regards

Rajesh.

4 REPLIES 4
Read only

rajesh_paruchuru
Active Participant
0 Likes
694

> Hi,

>

> i use ALV - OO wth: CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY.

>

> When i use the sort-button the entry of the sorten fields with same entries are empty.

>

> Before sort:

>

> | MATNR | MATKL |

> | 111111 | 000002|

> | 111112 | 000002|

> | 111113 | 000001|

> | 111114 | 000001|

>

> after sort:

>

> | MATNR | MATKL |

> | 111113 | 000001|

> | 111114 | |

> | 111111 | 000002|

> | 111112 | |

>

> i want to have:

>

> | MATNR | MATKL |

> | 111113 | 000001|

> | 111114 | 000001|

> | 111111 | 000002|

> | 111112 | 000002|

>

> Is there any parameter in layout i have to set? I have searched, but i cannot find any.

>

> Thanks.

>

> regards, Dieter

Hello Dieter

How about disabling the cell merging using the layout parameter 'NO_MERGING'?

Regards

Rajesh.

Read only

0 Likes
693

Hi,

i have set NO_MERGING = 'X', but no effect.

Regards, Dieter

Read only

0 Likes
693

> Hi,

>

> i have set NO_MERGING = 'X', but no effect.

>

> Regards, Dieter

Hi

Please check if this helps, click on the 'Change Layout' on the ALV grid and select the 'Display' tab where you have an

option to disable cell merging during sorts.

Regards

Rajesh.

Read only

0 Likes
693

Hi,

thanks, it was the right way. my mistake was, that i had an default-layout with merging!!!

Regards, Dieter