08-03-2007 7:13 AM
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.
08-03-2007 7:22 AM
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
08-03-2007 7:22 AM
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
08-03-2007 7:25 AM
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
08-03-2007 7:28 AM
Hi Manju,
Do you have any sample code in OO for this particluar requirment
Regards
Azad.
08-03-2007 7:26 AM
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
08-03-2007 7:43 AM
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