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 - Question on auto expand

prabhu_s2
Active Contributor
0 Kudos
168

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

3 REPLIES 3

Former Member
0 Kudos
95

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

former_member188685
Active Contributor
0 Kudos
95

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

prabhu_s2
Active Contributor
0 Kudos
95

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.