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

variable declaration

Former Member
0 Likes
455

guys,

how i can declare the variable for this.

Total type (2 Dec positions, decimal embedded)

regards,

vijay

3 REPLIES 3
Read only

Former Member
0 Likes
422

Hi Vijay,

Declare variabe of TYPE P.Specify number of decimals after DECIMALS clause.

If you want to declare a variable with 2 decmilas then declare like below.

<b>DATA V_PRICE TYPE P DECIMALS 2.</b>

DATA V_PRICE TYPE P DECIMALS 2 VALUE '135.22'.

WRITE V_PRICE. --->135.22

Thanks,

Vinay

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
422
data: var type p decimals 2.

regards,

Rich Heilman

Read only

Former Member
0 Likes
422

Hi,

Declare it as :

Data : Total type P Decimals 2.

Best regards,

Prashant