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
Explain difference between primary key and unique key?
How can we handle table control in bdc? : abap bdc
What are the function module in bdc?
What are dml commands in abap?
What is an interface? In what scenario we use interface? What is the difference between abstract class and interface?
HOW CAN YOU USE A PAGE COUNT IN CALLING A PAGE IN SMARTFORM?
How to read files and process BDC's automatically ?
What is open sql?
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?
What is an authorization in sap?
What are the events in abap/4 language? : abap hr
Explain about Recording Function?
Did you create help views?
What is a table cluster? : abap data dictionary
Differentiate between the uline and write: sy-uline statements if any?