Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Using variables for column headings in REUSE_ALV_GRID_DISPLAY

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

Hi again,

Yes there is a value I just don't know why it doesn't display. Is it possible if you could give me a code sample? Thanks a lot.

Former Member
0 Kudos

Hi,

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

-Satya Priya

Former Member
0 Kudos

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