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

Using variables for column headings in REUSE_ALV_GRID_DISPLAY

Hi Everyone,

Is it possible for me to display the column heading in REUSE_ALV_GRID_DISPLAY using a variable?

CLEAR ls_fieldcat.

ls_fieldcat-col_pos = 13.

ls_fieldcat-reptext_ddic = LWOP1. " <===Here is my variable for my

column heading

ls_fieldcat-tabname = 'ITAB'.

ls_fieldcat-fieldname = 'LWOP2'.

ls_fieldcat-datatype = 'CURR'.

ls_fieldcat-outputlen = 15.

APPEND ls_fieldcat TO rt_fieldcat.

Please help me. Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 03:28 AM

    for me isfielldcat-seltext_l = v_heading. working properly .

    i think you cant give

    ls_fieldcat-reptext_ddic = LWOP1.

    but i m not sure.

    regards

    shiba dutta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 03:05 AM

    Hi,

    I don't think so, either u need to assign a text-symbol or character string [in single quotes].

    -Satya Priya

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2007 at 03:05 AM

    Yes, it is. A simple character type field moved to the ls_fieldcat-reptext_ddic field should do it. Of course, you would have to move a value to variable.

    Regards,

    Rich Heilman

    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.