Skip to Content

ALV Header - Question on auto expand

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 19, 2008 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 19, 2008 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 19, 2008 at 10: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.

    Add comment
    10|10000 characters needed characters exceeded