Application Development and Automation 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: 
Read only

Data Element long field label

Former Member
0 Likes
1,784

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
Read only

sivaprasad_paruchuri
Active Participant
0 Likes
1,399

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

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

7 REPLIES 7
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,399

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

Nabheet

Read only

0 Likes
1,399

Hi nabheet

Yes i am passing structure name to grid.

Thanks

Vamsi

Read only

0 Likes
1,399

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


Read only

0 Likes
1,399

Add the following attribute to the layout.

gd_layout-cwidth_opt = 'A'.

And pass this in your ALV FM.

Read only

0 Likes
1,399

Hi

I am using webdynpro.

Thanks

Vamsi

Read only

sivaprasad_paruchuri
Active Participant
0 Likes
1,400

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

Read only

Former Member
0 Likes
1,399

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