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

Error while running code inspector

Former Member
0 Likes
886

Hi All,

When I run code inspector, it is showing me the below error:

Conversion from ls_cdpos-objectid to lifnr may cause data to be truncated.

How to solve this? Awaiting your replies.

Thanks,

Venkata

4 REPLIES 4
Read only

Former Member
0 Likes
727

HI

if u wan to remove this error put the pseudo comment.....

for example u can see the below one....

Can be hidden using pragma ##NO_TEXT (or pseudo comment "#EC NOTEXT)....

so put "#EC NOTEXT at the end of the line.

Read only

0 Likes
727

Hello Venkata,

how did you define lifnr? And what is the code you use to put the value of ls_cdpos-objectid to lifnr?

Kind regards

Peter

Read only

RaymondGiuseppi
Active Contributor
0 Likes
727

lifnr = ls_cdpos-objectid+0(10).

(I suppose object is KRED)

Regards,

Raymond

Read only

Former Member
0 Likes
727

Hello Venkata,

Check whether the length of ls_cdpos-objectid is same as lifnr .

Regards,

Tushar