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 output display problem

Former Member
0 Likes
1,099

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.

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

Former Member
0 Likes
1,054

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

Regards,

Leon

Read only

0 Likes
1,054

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

Read only

0 Likes
1,054

Hi,

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

Thanks & Regards,

Navneeth K.

Read only

Former Member
0 Likes
1,054

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.

Read only

0 Likes
1,054

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.

Read only

0 Likes
1,054

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

Read only

Former Member
0 Likes
1,054

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

Read only

Former Member
0 Likes
1,054

fieldcatalog-outputlen = 10.

fieldcatalog-emphasize = 'X'.

fieldcatalog-key = 'X'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.