on 09-11-2008 9:55 AM
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
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'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need to populate the fieldcatalog option
SELTEXT_L , SELTEXT_M , SELTEXT_S fields of the fieldcatalog with your own label text. and display .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.