2008 Oct 18 11:19 PM
Hi guys
I have some header data displayed in my ALV report. But the issue is i have to expand the header mannualy to see the rest of the header information. How to expand the header automatically based on the header contents?
thkx
Prabhu
2008 Oct 19 3:23 AM
Hi Prabu,
I think you can write if statement and hit the list header according to header information.
IF <condition>
w_listheader-TYP = 'H'.
W_LISTHEADER-INFO = 'LEAVE LETTER'.
APPEND W_LISTHEADER TO T_LISTHEADER.
CLEAR W_LISTHEADER.
w_listheader-TYP = 'S'.
w_listheader-INFO = 'APPLICATIONS FOR LEAVE'.
APPEND W_LISTHEADER TO T_LISTHEADER.
CLEAR W_LISTHEADER.
ENDIF.
Its just my idea, ifi am wrong correct me.
Cheers!!
Balu
2008 Oct 19 3:54 AM
are you using the Object oriented ALV or normal grid function.
if it is OOALV then
CALL METHOD O_SPLITTER->SET_ROW_HEIGHT
EXPORTING
ID = 1
HEIGHT = 10. "<-----increast the row height
2008 Oct 19 11:20 PM
thkx balu and vijay for ur replies. i had to formulate the calculation in the report and set the parameter in the functioin module. i thought there shud be some option like in field catlog which i was missing....unfortunaltely as far i have seen there is no such options such to automatically size the header window in alv report as per the content.