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: 

help size of field

Former Member
0 Kudos

hallow

i use field dec 7 2 (enstd) and i have a lot of values and the size is too low i wont to buield data elment bigger then that but i dont now how much becouse the program have runtime erorr .

how much bigger i can do this field, and if i can use anoter field (in same type)but <b>bigger</b> then this field .

regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

You can use the field with TYPE P decimals 2

or TYPE F (float) if more decimal places are there.

they can handle any amount of values.

Regards,

Anji

7 REPLIES 7

Former Member
0 Kudos

Hi

You can use the field with TYPE P decimals 2

or TYPE F (float) if more decimal places are there.

they can handle any amount of values.

Regards,

Anji

0 Kudos

hi anji

what is p ,for the data elment.

regards

0 Kudos

use this dataelement

<b>DEC16_3 </b> Decimal number, 16 digits, three after decimal point

0 Kudos

Hello,

I think u can make use of the domians

DEC20_2	DEC	000020	Dec20 with 2 decimal places
DEC20_3	DEC	000020	Dec20 with 3 decimal places
DEC20_4	DEC	000020	DEC20 with four decimal places

Thanks !!

Vasanth

Former Member
0 Kudos

Hello,

U can declare a dataelemnt of length 16 like this.

DATA: VAR(16) type p decimals 2.

Regards,

Vasanth

former_member194669
Active Contributor
0 Kudos

A DEC field may have a maximum of 31 places

aRs

Former Member
0 Kudos

Hi Antonio,

try this:

DATA: <b>I TYPE DEC_16_02_S</b> value '1.20' .

*

DO.

if sy-index > 7. exit. endif.

I = I * I.

WRITE: / I.

ENDDO.

Regards, Dieter