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

column titles with center alignment and values with right alignment in alv.

Hi frinds

In alv display want's to display

column titles with center alignment and values of the column with right alignment in alv.

i using the JUST field of SLIS_FIELDCAT_ALV type

but it aligning the column heading and column value with same alignment

ex:

IF WA-FIELDNAME = 'AENETWR'.

WA-SELTEXT_M = 'Orders value'.

  • WA-DDICTXT = 'M'.

WA-COL_POS = 13.

WA-OUTPUTLEN = 20.

WA-KEY = ' '.

wa-JUST = 'C'.

ENDIF.

but i want column titles with center alignment and values of the column with right alignment in alv.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2009 at 09:42 AM

    Hi,

    For this requirement, you can use only right alignment, but in case of titles, use the output lenght as some XX length.

    Based on its length, use some initial spaces while passing the titile into the field catalog.

    Also check the stadard field catalog dynamic program, check and execute at runtime.

    BCALV_FIELDCAT_TEST

    May be useful.

    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.