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 is the differences between abap and ooabap. In which situation we useooabap?
What is an Unpack command?
What is off cycle payroll run
What are the two different ways of building a match code object? : abap data dictionary
What are lock objects?
What is macro? : abap hr
Explain what is sap script?
How to call transaction in session method without recording?
What is the difference between synchronous and asynchronous update? : abap bdc
What are system variable in abap?
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.
What are the system fields you have worked with? Explain?
How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?
How do you import pay scale data from non sap to sap? : sap abap hr
Workbench request are client dependent or client independent