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

Data type declared is different in the debug mode

Former Member
0 Likes
692

Hi Experts,

I have added a new field LS_LINE-RATE and the data type is P(9) Dec(5) . In the debug mode, I can see that it is P(5) Dec(5). Have you encountered this before? I have checked the structure I still have P(9) Decimal (5).Is there any limitations?

Need your professional ideas.

Thanks in advance!

2 REPLIES 2
Read only

Former Member
0 Likes
514

Paste your coding, especially the data type declaration of the structure LS_LINE. Also are you sure you are looking at the same structure variable. Perhaps you are looking at a local variable in a routine that has the same name as another local or global variable declared outside the routine?

The below declaration looks the same in debugger too

LS_LINE-RATE(9) TYPE P DECIMALS 5.

Read only

Former Member
0 Likes
514

Hi,

if you are declaring with P (ls_line-rate(9) TYPE p DECIMALS 5), system will interpreat this as like below.

12(Before decimal) + 1(DOT) + 5 (After decimal) = 18(Total Length)

123456789222.22123

So i dont find any reason for the different display in the debugg mode.

Please check it once again and also can u pls paste your code ???

Regards

HM