10-10-2007 6:22 AM
Hi all,
Can u tell me how to bring the header text in centre of page in alv grid display.
I have used top of page event to display the header. I am getting it as left aligned.
Please help me to sort this.
Regards,
Priya
10-10-2007 6:34 AM
U have to use OOPS concepts
The class to be used is CL_DD_DOCUMENT
Create the object for this and then pass parameters
The methods are ADD_GAP & TEXT
Regards,
Reward if helpful
10-10-2007 6:44 AM
<b>The header line is always left-justified .
We basically have three options for formatting :
S , A and H.
every line in Alv top-of-page is of 60 char length(slis_listheader-info).so i think the only option we have is to add required spaces to the left and display the required string</b>
10-10-2007 6:47 AM
hI
The header line is always left-justified .so you can't change into center.
basically we have three options for formatting :
S , A and H.
head_wa-typ = 'H'. -> if you use S ,then text will not bold
head_wa-info = mytext.
append head_wa to head_ing.
Try to convinenance the client.
Check the below link :
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_rephead.htm
<b>rEWARD IF USEFUL</b>
10-10-2007 6:50 AM
hi priya,
In ALV, for header ,
1. if u r using the function mod Commentry_Write,
then it is not possinble to display the header in Centre. By default , it is left and it has the maximum size also.
2. if u r using WRITE statement for display the header, then use
<b> x = sy-colno. y = sy-linno. " istead of colno, linno pass ur header postion's
TOP-OF-PAGE.
WRITE: 'Position of Header: ', x, y.</b>
With Rgds,
S.Barani
10-10-2007 7:04 AM
Hi barani,
can u give an example for the above said, so that it will be ore useful.