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

A subroutine can contain nested form and endform blocks. State true or false. : abap modularization

1258


What are the advantages and disadvantages of ABAP query tool?

947


Explain the structure of a bdc sessions?

934


How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.

2318


State the system field for the current date?

1019


What are the functional areas, user groups? How does abap query work in relation to these?

1004


Explain what are interactive reports?

1010


What is buffering allowed but switched off?

1288


What is the significance of technical settings (specified while creating a table in the data dictionary) ?

977


What are the dynapro keywords?

1077


What is native sql?

1124


What is the master data necessary before you can start posting in MM?

1204


Performance tuning techniques

1288


Event handling in oops

1483


What is the meaning of sap r/3?

1107