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 abap/4 commands that link to a layout set?

878


Example of table cluster and cluster tables.

653


What is an internal table?

727


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

1513


Can a posting run be deleted? : sap abap hr

608






What is step-loop? Explain all the steps?

546


What is IMG in SAP?

719


What is the process to enhance the Infotype

2886


Can we use transfer dataset to transfer data in internal table ?

1648


What does the extract statement do in extract datasets? : abap modularization

565


What are the tcodes for performance tuning?

911


State the differences between database view & projection view? : abap data dictionary

612


How to call transaction in session method without recording?

1548


Define external layer?

637


****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

1692