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: 

how to restrict floating variable

Former Member
0 Kudos

Hello Abapgurus,

I need to restrict floating values to 2. and any DataElement aviable for Pack type.Please give your valuable suggestions to solve my problem.

waiting for your favourable replies.

Regards

Maruthi

4 REPLIES 4

Former Member
0 Kudos

data: amt(6) type p decimals 2.

amt = itab-amt.

anversha_s
Active Contributor
0 Kudos

hi,

try this.

DATA V_PD TYPE P DECIMALS 2

Regards

anver.

Former Member
0 Kudos

Hi,

Please use FLAP with 2 decimals dataelement.

You can search for dataelement. I found following dataelement.

ACC_COV

While displaying the floating value you can format as 2 decimal value.

write <flaot variable> to <decimal varibale> 2 decimals.

Regards

Bhupal Reddy

Former Member
0 Kudos

hi maruthi,

i am not getting u exactly . if u need a data element corresponding to pack type, do as follows .

goto se11 and in domain field give as PACK and press f4 . u will get a series of list of domains . there will be domains of ur requirements . to know the data element select the domain and choose display .

u will get to the main screen of domain and select WHERE USED LIST icon . u will get an option of domain in which u can choose from that .

regards

magesh