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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.