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: 

Data Element long field label

Former Member
0 Kudos

Hi All

I am using one data element having domain char(1).In the field label Text  is defiend by four different lengths,Program defaultly taking Char(1) text.I want to didplay text of higher length.Please help on this.

Thanks

Vamsi

1 ACCEPTED SOLUTION

sivaprasad_paruchuri
Active Participant
0 Kudos

gs_fieldcat-ddictxt = 'L'.


use this option  in the field cat 'S' for small ' L'  for long 'M' for medium field labels while passing structure in ALV 


regards

SIva

7 REPLIES 7

nabheetscn
Active Contributor
0 Kudos

How are you displaying the text in ALV...? If yes are you passing the structure name to GRID...?

Nabheet

0 Kudos

Hi nabheet

Yes i am passing structure name to grid.

Thanks

Vamsi

0 Kudos

Use Function module REUSE_ALV_FIELDCATALOG_MERGE. pass structure name and get field catalog into LT_FIELD. read LT_FIELD for your field name and modify seltext_l/seltext_m/seltext_s

Pass this LT_FIELD to grid FM


0 Kudos

Add the following attribute to the layout.

gd_layout-cwidth_opt = 'A'.

And pass this in your ALV FM.

0 Kudos

Hi

I am using webdynpro.

Thanks

Vamsi

sivaprasad_paruchuri
Active Participant
0 Kudos

gs_fieldcat-ddictxt = 'L'.


use this option  in the field cat 'S' for small ' L'  for long 'M' for medium field labels while passing structure in ALV 


regards

SIva

Former Member
0 Kudos

try using class cl_salv_wd_column_header method SET_PROP_DDIC_BINDING_FIELD

u can pass IF_SALV_WD_C_DDIC_BINDING=>DDIC_BIND_LONG to Method parameter "VALUE"

PS: Few similar question on SDN


http://scn.sap.com/thread/1427845

http://scn.sap.com/thread/2088985