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

Structure

Former Member
0 Likes
922

Dear all.

I am passing a structure to my Alv field catalog.

In my structure a component has a short text 'order start date'

But in output the short text was not displayed completely.

Only ' date ' is displayed.

How to solve this.

Thanx in Advance.

Regards,

Johnn.

10 REPLIES 10
Read only

Former Member
0 Likes
902

check the outputen lenght of the structure field ..

Read only

Former Member
0 Likes
902

changr the length of the structure componenet

Read only

Former Member
0 Likes
902

In fieldcatalogue, there are 3 options: seltext_s (small)

seltext_m (medium), seltext_l(long) , if the name is too long you need to select out of these three.

Best Regards,

Vibha

  • Plz mark useful answers

Read only

Former Member
0 Likes
902

I thought the problem is with the text display at column headings...

Read only

0 Likes
902

Hello vibha,

You are right, how can i change the value.

Read only

0 Likes
902

Can you paste the code where you initialise your field catalog..I think the problem is not about length but what you are passing in the field catalog parameters.

Read only

0 Likes
902

increase the lenght of that field in fieldcatalog

loop at it_fieldcat into wa_fieldcat where fieldname = '<YOUR_FIELD_NAME>'.

 wa_fieldcat-outputlen = '25'.

 modify it_fieldcat from wa_fieldcat.
clear wa_fieldcat.

endloop.

Read only

Former Member
0 Likes
902

In fieldcatlogue, you have fieldcat-seltext_s, fieldcat-seltext_m or fieldcat-seltext_l. If you heading is too long then you need to use fieldcat-seltext_l = 'Here_column_heading'.

For Example:

line_fieldcat-fieldname = 'QMNUM'. " The field name and the table

line_fieldcat-tabname = 'I_DATA'. " name are the two minimum req.

line_fieldcat-seltext_m = 'Notification No.'. " Column Header

APPEND line_fieldcat TO i_fieldcat

Best Regards,

Vibha

*Plz mark useful answers

Read only

Former Member
0 Likes
902

HI,

increase the column length or check if

previous field is overwriting your column.

Regards

amole

Read only

Former Member
0 Likes
902

or in the layout

<b>wa_layout-colwidth_optimize = 'X'.</b>

this will adjust the lengths according to the output