Skip to Content
author's profile photo Former Member
Former Member

Headings-subheadings in ALV

Hi

I want to display a heading like JAN-06 and under that i want to display sub headings lik EE ER .

I used

form top_of_page.

clear wa_header.

wa_header-typ = 'H'.

wa_header-info = 'JAN-06'.

append wa_header to i_header.

endform.

its displaying,but i its displaying at first..i want in the middle ..

i already declared subheadings in fieldcatalog,now i want that JAN-06 top of those sub headings.

Its very urgent and can anyone give suggestion plz

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 17, 2006 at 01:46 PM

    hi rk,

    look this is the structure of wa_header.

    • Header table for top of page

    types: begin of slis_listheader,

    typ(1) type c, " H = Header, S = Selection, A = Action

    key(20) type c,

    info type slis_entry,

    end of slis_listheader.

    so there is no option for make it centre.

    so technically its not possible.

    rgds

    anver

    if hlpd pls mark points

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 17, 2006 at 01:49 PM

    Refer this thread:

    how to display two lables in alv report

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 01:55 PM

    hi

    good

    try out like this

    MODULE user_command_XXXX INPUT. (XXXX is screen no.)

    CASE ok_code.

    WHEN 'P--'.

    CLEAR ok_code.

    PERFORM paging USING 'P--'.

    WHEN 'P-'.

    CLEAR ok_code.

    PERFORM paging USING 'P-'.

    WHEN 'P+'.

    CLEAR ok_code.

    PERFORM paging USING 'P+'.

    WHEN 'P++'.

    CLEAR ok_code.

    PERFORM paging USING 'P++'.

    &----


    *& Form PAGING

    &----


    • Form to do scrolling for screen XXXX

    ----


    • >CODE OKCODE value (P, P-, P, P+ )

    ----


    FORM paging USING code.

    DATA: i TYPE i,

    j TYPE i.

    CASE code.

    WHEN 'P--'. <table control name>-top_line = 1.

    WHEN 'P-'.

    <table control name>-top_line =

    <table control name>-top_line - line_count.

    IF <table control name>-top_line LE 0.

    <table control name>-top_line = 1.

    ENDIF.

    WHEN 'P+'.

    i = <table control name>-top_line + line_count.

    j = <table control name>-lines - line_count + 1.

    IF j LE 0. j = 1. ENDIF.

    IF i LE j.

    <table control name>-top_line = i.

    ELSE.

    <table control name>-top_line = j.

    ENDIF.

    WHEN 'P++'.

    <table control name>-top_line =

    <table control name>-lines - line_count + 1.

    IF <table control name>-top_line LE 0.

    <table control name>-top_line = 1.

    ENDIF.

    ENDCASE.

    ENDFORM. " PAGING

    thanks

    mrutyun^

    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.