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

ALV REPORT TITLE

HI EXPERTS,

CAN U PLZ ANALYSE THE CODE AND SUGGEST ME SOLUTION.

I AM USING THE BELOW CODE TO DISPLAY MY REPORT TITLE ON TOP CENTRE OF THE REPORT BUT I AM GETTING IT ON LEFT CORNER OF THE ALV LIST.

FORM top-of-page.

*ALV Header declarations

data: t_header type slis_t_listheader,

wa_header type slis_listheader,

t_line like wa_header-info,

ld_lines type i,

ld_linesc(10) type c.

  • Title

wa_header-typ = 'H'.

wa_header-info = 'Raw Material Tolerance Report'.

wa_header-key = 'X'.

append wa_header to t_header.

clear wa_header.

  • Date

wa_header-typ = 'S'.

wa_header-key = 'Date/Time ' .

concatenate sy-datum+6(2) '/'

sy-datum+4(2) '/'

sy-datum(4) sy-UZEIT0(2) ':' sy-UZEIT2(2) 'AM'

into wa_header-info separated by ''.

append wa_header to t_header.

clear: wa_header.

call function 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = t_header.

  • i_logo = 'GANESH_LOGO'.

REGARDS

SIRI

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2006 at 11:39 AM

    Hi Sireesha,

    I ahve answered for this question before. It is possible. Use aSCII value in front of the text instead of adding dots. Use ALT+255 for one space(ASCII value for Space). Use this howmany number of time required and then execute.

    It will work.

    Use the Code i have typed below if it does not work use the Step i hav ementioned.

    1.wa_header-info = ' Raw Material Tolerance Report'.

    or

    2.wa_header-info = 'ALT255ALT255ALT+255Raw Material Tolerance Report'.

    Thanks,

    Prashanth

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Vijay Dudla

      hi vijay its working fine for me

      ill send it how i did

      COULD U PLZ HELP WITH THIS

      IN THE SAME REPORT I NEED TO GET PAGE NUM AS 1 OF 5, 2 OF 5 LIKE THIS AT RIGHT CORNER OF THE REPORT AND DATE IN LEFT CORNER.date i am able to get.

      REGARDS

      SIRI

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2006 at 10:48 AM

    hi

    good

    by default it is taking as left hand side, if you want to display it in the center than try to use the write statement and see the difference.

    thanks

    mrutyun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2006 at 11:01 AM

    Hi sireesha,

    i think it's <b>not possible</b>.

    Look at the docu of REUSE_ALV_COMMENTARY_WRITE

    the <b>attritutes are always LEFT</b>.

    Regards, Dieter

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 28, 2006 at 11:23 AM

    Hi,

    it is not possible with Normal ALV, But is possible with OO ALV.

    Regards

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2006 at 02:57 PM

    Hi,

    Try using SY-PAGNO(Current Page) an CPAGE(Current Page number). Why do you need number of pages in ALV Report. I would be as drill down!

    Thanks and Regards,

    Prashanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2006 at 03:26 PM

    Hi,

    After *Date add

    *Page Number.

    wa_header-typ = 'S'.

    wa_header-info = sy-pagno.

    append wa_header to t_header.

    clear: wa_header.

    Hope this might Help you

    You ALV will have and Scroll so why do you need Page number? Not Clear!

    Cheers,

    Prashanth

    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.