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 abap/4 commands that link to a layout set?
Example of table cluster and cluster tables.
What is an internal table?
hi.. sap sd is installed in my PC .i m unable to start becoz ,i have given wrong password many times and it's locked.please tell me how can i open SAP logon. tell the process at my id dst.noida@rediffmail.com please advance thanx
Can a posting run be deleted? : sap abap hr
What is step-loop? Explain all the steps?
What is IMG in SAP?
What is the process to enhance the Infotype
Can we use transfer dataset to transfer data in internal table ?
What does the extract statement do in extract datasets? : abap modularization
What are the tcodes for performance tuning?
State the differences between database view & projection view? : abap data dictionary
How to call transaction in session method without recording?
Define external layer?
****THANK YOU ALL ABAP EXPERTS**** I got a JOB as ABAP Consultant in Infosys.I cleared the interview.The question posted here are really good.I cleared interview based on this material only.It really works.I thank all members who posted que&ans here. Those who are in search of job in MNC study this question set only you will get sucess. Thanks once again allinterview.com and members of this community. tulika20021@rediffmail.com