cancel
Showing results for 
Search instead for 
Did you mean: 

FIeld headings in ALV Grid by label

Former Member
0 Kudos

Hi

I want disply the headings in alv grid display like this format.

I want write my own label in the output. (not in Normal LIST DISPLAY)

-


Sno | Sname | Marks

-


| | M1 | M2 | M3

-


How it is possible?

Edited by: Krishna Bommisetty on Sep 11, 2008 10:55 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Check the below code.

WA_FCAT-SELTEXT_M = TEXT-073.

WA_FCAT-DDICTXT = 'M'.

We can define the name of the field label as mentioned above, where texto073 is nothing but the field label you want to give to the particular field.

DDICTXT you have to mention the length as small 'S', medium 'M' and large as 'L'.

former_member188685
Active Contributor
0 Kudos

you need to populate the fieldcatalog option

SELTEXT_L , SELTEXT_M , SELTEXT_S fields of the fieldcatalog with your own label text. and display .

Former Member
0 Kudos

U have change the filed lable in Field catalog

IF ls_fieldtab-fieldname = 'MESSAGE'.

MOVE 'Message Text'(t03) TO ls_fieldtab-seltext_m.

MOVE 'M' TO ls_fieldtab-ddictxt.

MODIFY itab_fieldtab1 FROM ls_fieldtab

TRANSPORTING seltext_s ddictxt. ENDIF.

Regards,

Kumar