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

interactive alv

Former Member
0 Likes
614

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

5 REPLIES 5
Read only

Former Member
0 Likes
585

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

Read only

Sm1tje
Active Contributor
0 Likes
585

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....

Read only

Former Member
0 Likes
585

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.

Read only

Former Member
0 Likes
585

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.

Read only

0 Likes
585

this is possible using html viewer.

thanks for the replies