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

ALV Display header text

Former Member
0 Likes
1,842

Hi Experts

Please help me to fix the issue.

i am displaying ALV grid display, i am using header fileds texts from z-structure. i want to display the 2nd and 3rd column headers intially with 10 and 15 characters respectively. later if need, user can drag to see the rest of the text.

please help me.

with regards

Madhulatha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,586

hi ,

Mark your field catalog's seltext_m = 'X'.

Thanks

Seema

hi ,

Mark your field catalog's seltext_m = 'X'.

Thanks

Seema

7 REPLIES 7
Read only

Former Member
0 Likes
1,586

Hi

you define the text in seltext in fielcat..

regards

marco

Read only

Former Member
0 Likes
1,587

hi ,

Mark your field catalog's seltext_m = 'X'.

Thanks

Seema

Read only

0 Likes
1,586

Hi experts

i am using below function module

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = 'ZBILL_OUTTAB'

CHANGING

ct_fieldcat = it_fieldcat.

LOOP AT it_fieldcat ASSIGNING <fieldcat>.

CASE <fieldcat2>-fieldname.

WHEN 'POST'.

<fieldcat>-scrtext_m = 'X'.

ENDCASE.

ENDLOOP.

here 'ZBILL_OUTTAB' is a structure to display the colums structure. i want to display the column header intialy 10 characters later i can drag upto 45 chars .

plase help me how to fix this issue. in exsting program FILED Symbols been used

many thanks in advance.

Madhulatha.

Read only

0 Likes
1,586

Hi experts

i am using below function module

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = 'ZBILL_OUTTAB'

CHANGING

ct_fieldcat = it_fieldcat.

LOOP AT it_fieldcat ASSIGNING <fieldcat>.

CASE <fieldcat2>-fieldname.

WHEN 'POST'.

<fieldcat>-scrtext_m = 'X'.

ENDCASE.

ENDLOOP.

here 'ZBILL_OUTTAB' is a structure to display the colums structure. i want to display the column header intialy 10 characters later i can drag upto 45 chars .

plase help me how to fix this issue. in exsting program FILED Symbols been used

many thanks in advance.

Madhulatha.

Read only

0 Likes
1,586

Hi...

The structure ZBILL_OUTTAB must be a DDIC struction, because if is an internal structure the FM

LVC_FIELDCATALOG_MERGE will not work...

you have scrtext_s,scrtext_m,scrtext_l.....in this field you can insert the value ofthe header text, in accordance with the

column lenght

regards

Marco

Read only

0 Likes
1,586

Hi

i done the same as what you suggested, but still it is taking short text alone. i wanted to display the medium text in the beginning,no short text to be displayed at all.

with regards

Madhulatha

Edited by: Madhulathakota on May 7, 2010 1:06 PM

Read only

0 Likes
1,586

Have you tried setting the field OUTPUTLEN of your fieldcatalog?