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 text issue

Former Member
0 Likes
905

Hi,

In alv one of field in finaltable contanis messagetext with datatype char1024.

in fieldcatalog also i used outputlen with length '1024'.

but in alv output text is not coming completely.

Please provide me solution.

Regards,

Suresh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
872

Hi Suresh,

I think it is a problem becuse of the length 1024..

There are few things you may wish to try..

1. Split the text in 4 fields and try to output..u cud try to output 1 at a time..

2. check in internal table during debugging if the text is proper or not..

revert..

7 REPLIES 7
Read only

Former Member
0 Likes
872

hi

you need to set the correct text properties.just look at this documentation

http://help.sap.com/saphelp_nw04/helpdata/en/64/e7eb40c4f8712ae10000000a155106/frameset.htm

it describes the text properties that you need to set for correct text output.

hope this helps

regards

Aakash Banga

Read only

Former Member
0 Likes
873

Hi Suresh,

I think it is a problem becuse of the length 1024..

There are few things you may wish to try..

1. Split the text in 4 fields and try to output..u cud try to output 1 at a time..

2. check in internal table during debugging if the text is proper or not..

revert..

Read only

0 Likes
872

Hi,

During debugging data is coming properly to internaltable.

after alv display data is turncated.

Regards,

Suresh

Read only

0 Likes
872

hi,

The maximum length in ALV cannot exceed 1024.you cannot declare a single

field of that length.Try to change the length and check.

Read only

0 Likes
872

Hi,

Now i modified datatype to char256.

still text is not coming completely.

what is the maximum length of filed in alv.

Regards,

Suresh.

Read only

0 Likes
872

1024 is the max length available.

How have you split the variable..

Dont put all your fields even after splitting in the display..keep them hiding and display the last one.

I suppose it should have worked.

Read only

SujeetMishra
Active Contributor
0 Likes
872

Hello Suresh,

please create offset in your text variable.

OR.

DATA: it_fieldcat TYPE slis_t_fieldcat_alv,

wa_fieldcat LIKE LINE OF it_fieldcat.

wa_fieldcat-seltext_l = 'Date of Acquisition'.

wa_fieldcat-seltext_m = 'Date of Acquisition'.

wa_fieldcat-seltext_s = 'Date of Acquisition'.

means you pass your text in seltext_l,seltext_m,seltext_l like above.

Have a Nice Day.

Regards,

Sujeet