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

What is the differences between abap and ooabap. In which situation we useooabap?

1481


What is an Unpack command?

1143


What is off cycle payroll run

2469


What are the two different ways of building a match code object? : abap data dictionary

1134


What are lock objects?

1025


What is macro? : abap hr

1119


Explain what is sap script?

1130


How to call transaction in session method without recording?

2016


What is the difference between synchronous and asynchronous update? : abap bdc

1187


What are system variable in abap?

1107


Hi guy.. i have to face an interview in a couple of day.. so can you please give me some good and tough question on abap.

2070


What are the system fields you have worked with? Explain?

1118


How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?

1075


How do you import pay scale data from non sap to sap? : sap abap hr

1174


Workbench request are client dependent or client independent

982