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
A subroutine can contain nested form and endform blocks. State true or false. : abap modularization
What are the advantages and disadvantages of ABAP query tool?
Explain the structure of a bdc sessions?
How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.
State the system field for the current date?
What are the functional areas, user groups? How does abap query work in relation to these?
Explain what are interactive reports?
What is buffering allowed but switched off?
What is the significance of technical settings (specified while creating a table in the data dictionary) ?
What are the dynapro keywords?
What is native sql?
What is the master data necessary before you can start posting in MM?
Performance tuning techniques
Event handling in oops
What is the meaning of sap r/3?