Application Development 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: 

Alv header problem

Former Member
0 Kudos

Hi Experts,

I am using commentry write for displaying header on ALV. I am getting the output.

I have declared a table like

V_SLIS_T_LISTHEADER TYPE SLIS_T_LISTHEADER,

V_SLIS_LISTHEADER LIKE LINE OF V_SLIS_T_LISTHEADER.

I can append as many rows i require.

If i append 2 rows in this table the header is coming like

header1

header2.

But my requirmnet is both the header shud come in single line,

one shud be left allign and second shud be right allign.

hope you get me quetion.

Regards

Azad.

Very Urgent.

1 ACCEPTED SOLUTION

former_member588853
Active Contributor
0 Kudos

HI,

you can give header1 as key and header2 as info in the list header internal table.

This is just as aligning.. Butfor the ALVGRID you cannot get all headers in one line.

Instead you can use ALV list dispaly and write the headers in single row..

Even I had a such a requirement and I couldn't find the solution after all R&D..

rewarrds if useful,

regards,

nazeer

5 REPLIES 5

former_member588853
Active Contributor
0 Kudos

HI,

you can give header1 as key and header2 as info in the list header internal table.

This is just as aligning.. Butfor the ALVGRID you cannot get all headers in one line.

Instead you can use ALV list dispaly and write the headers in single row..

Even I had a such a requirement and I couldn't find the solution after all R&D..

rewarrds if useful,

regards,

nazeer

Former Member
0 Kudos

Hi,

ya nazeer is correct , u can achieve the single line heading in the List display FM..

still, if u want to display the heading in the GRID display only ,, then u have to use OO Concept . there in the scrreen , u have to create the text box & then u have to write ur heading text in that box.

Thanks,

Manjunath MS

0 Kudos

Hi Manju,

Do you have any sample code in OO for this particluar requirment

Regards

Azad.

anversha_s
Active Contributor
0 Kudos

Hi Azad,

It is not possible to move the Headings Alignments in LAV Header.

Only thing you can do is append only one line to that Itab.

seperate it with a lengthy space in btwn headibg, si it looks aligned. thats the only way.

eg:

Heading : 'Hello                                                                       World'.

Rgds

Anversha

Former Member
0 Kudos

Hi ,

i dont have source code ... right now ..

but ,, what u have to do .. is ...

not sure exactly ,, but u can try like this

v have to use <b>WRITE TO</b> statement like

WRITE TO "HELLO WORLD" to text-001.

text-001 cud be the text for text box of ur header.

Thanks,

Manjunath MS