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: 

ALV output display problem

Former Member
0 Kudos

Hi all,I have an ALV report in which there is a field with the length 255 char,while displaying I want it to be not more than 40 char,how can I achieve it? I tried changing the size in fieldcatalog,but it hasen't worked.

Thanks in advance and remember,all helpful answers will get points.

8 REPLIES 8

Former Member
0 Kudos

Is it possible that you extract the first 40 char and then put it into field catalog? i.e. text+0(40)?

Regards,

Leon

0 Kudos

Thanks Leon,but my client wants all the data should be there,when he scrolls the coloumn,he should get all the data.

0 Kudos

Hi,

Can you check the fieldcatalog again. Can you show the sample code.

Thanks & Regards,

Navneeth K.

former_member188685
Active Contributor
0 Kudos

if you use these options , it automatically controls the length to 40 chars.

fieldcat-ddic_outputlen = 40.
fieldcat-intlen = 40.

try to set these two and see how it works.

0 Kudos

Thanks all 4 u r replies but as I said already I checked it by keeping a break point inside the code,what I did exactly is I used FM merge and then Iam looping the fieldcatalog and modifiying the fieldcatalog internal table at that field as :

fieldcat-ddic_outputlen = 40.

fieldcat-intlen = 40.

Please tell me any other solution.

0 Kudos

if you are using the merge function then you have to loop and modify the fieldcatalog for the column which you want.

Former Member
0 Kudos

Hi,

Try this code

sfld-tabname = 'I_FINAL'. [Internal Table Name]

sfld-fieldname = 'HZUON'. [Field Name]

sfld-seltext_l = 'Rate%'. [Text]

sfld-outputlen = '10'. [Length specify 40 here]

APPEND to fieldcatalog internal.

Thanks

Anil.D

Former Member
0 Kudos

fieldcatalog-outputlen = 10.

fieldcatalog-emphasize = 'X'.

fieldcatalog-key = 'X'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.