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 are the differences between structure and table in data dictionary in abap? : sap abap data dictionary

765


What does the ‘suppress dialog’ do?

1111


How do you process errors in session method ? : abap bdc

773


What is maintenance view?

780


How does the interection between the dynpro and the abap/4 modules takes place?

885


Sales Order Information Report that lists information like sales order no, Item no, material no, Quantity, Quantity unit, Net value, Currency,Sub Total, Grand Total. plz mention the detail coding Tahnks, Rahul

1909


What are differences between at selection-screen and at selection-screen output?

976


What are different data types in abap/4?

718


please give the remaining answers.

1960


Describe the data classes?

776


How do you activate a function exit?

747


How do you find the information on the current screen?

793


What is the syntax of packed number?

842


dear friends, do you know how to configure web dynpro and adobe into ECC6.0 IDES?

2735


How many types of data classes are there in sap abap? : abap data dictionary

788