Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

hi friends,
In smart form how can we convert the decimal to whole no.
for ex. i have date like 5.456. now i want convert to whole
no. after point value more then 5 means the no should come
6. below 5 means its come 5. any body can help me with code.
its urgent.
Thanks.

Answer Posted / komal sardar

try this code this will definately help you.

DATA: AD(10) TYPE C, " before Decimal
BD(10) TYPE C. " After Decimal

SPLIT VALUE AT '.' INTO BD AD.

IF AD+0(1) GE 5.
BD = BD + 1.

ELSE.
BD = BD.
ENDIF.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain difference between primary key and unique key?

1052


How can we handle table control in bdc? : abap bdc

1170


What are the function module in bdc?

1338


What are dml commands in abap?

1350


What is an interface? In what scenario we use interface? What is the difference between abstract class and interface?

1434


HOW CAN YOU USE A PAGE COUNT IN CALLING A PAGE IN SMARTFORM?

2131


How to read files and process BDC's automatically ?

2161


What is open sql?

1317


Suppose there is check box along with the rows. The requirement is, select the require check boxes and press a used defined button to save all these checked row data to another table. How can you do it?

2112


What is an authorization in sap?

1343


What are the events in abap/4 language? : abap hr

1137


Explain about Recording Function?

1175


Did you create help views?

1041


What is a table cluster? : abap data dictionary

1219


Differentiate between the uline and write: sy-uline statements if any?

1272