2009 Jun 17 4:36 PM
i am doing alv grid control.
i want to draw a line after two records.
do i able to populate the internal table record with line. ie each column with a line ,so that it appears as a line.
ex:
itab
matnr salesorg plant division
asefrd ti11 it01 01
asennn till ito1 02
asennm till it01 01
-
-
-
---
asenns till ito1 03
in the above 4th record is line. How to do this
2009 Jun 17 4:44 PM
HI,
Why do you need this line?
Is it for separating different records? Just fill the sort table with the sort fields and check if the requirement is fine with you?
Regards,
Ankur Parab
2009 Jun 17 4:45 PM
If you want that kind of flexibility you should be using traditional list processing (WRITE statements). In ALV, as by my knowledge, this is just not possible. Displaying lines is part of the layout parameter and is set on Grid level and not on row/column level. In other words, Lines of NO lines....
2009 Jun 18 4:04 AM
I think its a ugly for ur requirement If u really want to do so.
(╯﹏╰)
1) change all the field with data type 'char'
2) append an empty data to the alv where u wanna add a seprator
3) fill this data all the fields with '----
' or icon such as '@MQ@' or change this line color
but its not a REALLY standard way, so u must delete all the sort button.
2009 Jun 18 4:25 AM
There should be no need to draw a line.
We can seperate similar records by using Subtotal operation provided in ALV.
This automatically seperates similar records.
Procedure : Perform Sort on the required field and pass subtotal text in Catalog/layout.
Pass the same to grid display FM.
2009 Jun 18 6:43 AM