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

packed decimels

Former Member
0 Likes
1,047

if the data is coming with 23.7 characters

what is syntax for packed decimels???

8 REPLIES 8
Read only

Former Member
0 Likes
1,028
data : l_qty type p decimals 3.


l_qty = 2000.234.

Best regards,

Prashant

Read only

0 Likes
1,028

data: t1 type p decimels 2

syntax error

it is showing ''''' ,expected after p'''''' ..

Read only

Former Member
0 Likes
1,028

hi,

data : qty type p decimals 1.

qut = 27.3.

reward pts if helpfull.

regards,

dhan

Read only

Former Member
0 Likes
1,028

Hi,

You can use :



data : amount type p decimals 1.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
1,028

Hi,

You can use

DATA: w_var TYPE P DECIMALS 1.

Read only

Former Member
0 Likes
1,028

Hi,

Use the following syntax.

Data: v_pdec type p decimals n.

Here n is the numeric value, so that u can use 1,2,3....

If you use 1, then it will take the one decimal place, if you use 2 then it will take two decimal places... etc.

Reward the points if it is helpful.

Read only

Former Member
0 Likes
1,028

Hi,

Check the Below..

DATA: VALUE TYPE P DECIMALS 1.

VALUE = '12345678901234.4'.

WRITE: 'VALUE : ', VALUE.

Type P

Length 8

Output length 17

Decimal places 1

Regards,

Viji.

Read only

0 Likes
1,028

if the value is coming from the flat file is '1234567891234567891234.5636623'

like that

what to do at that time

tell me the syntax????