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
What are the differences between structure and table in data dictionary in abap? : sap abap data dictionary
What does the ‘suppress dialog’ do?
How do you process errors in session method ? : abap bdc
What is maintenance view?
How does the interection between the dynpro and the abap/4 modules takes place?
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
What are differences between at selection-screen and at selection-screen output?
What are different data types in abap/4?
please give the remaining answers.
Describe the data classes?
How do you activate a function exit?
How do you find the information on the current screen?
What is the syntax of packed number?
dear friends, do you know how to configure web dynpro and adobe into ECC6.0 IDES?
How many types of data classes are there in sap abap? : abap data dictionary