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 / 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 |
What is a 'z' report?
What is the purpose of table maintains in se11?
can any one answer these questions 1)How do you convert non-character field to character field? 2)How do you work with semi colon separated files? 3)why cant we use normal function module for data transfer? 4)what is the structure of CTU-PARAMS? 5)can we use transfer dataset to transfer data in internal table?
What is the maximum number of structures that can be included in a table or structure : abap data dictionary
What is buffering allowed but switched off?
What are the different methods of bdc? : abap bdc
Which transaction code is used executing a report (type 1 program)? : abap data dictionary
Advantages and disadvantages of different types of bdc's?
what is need of function group for function modules whereas there is no need of f.group for subroutines?
2 Answers Cap Gemini, DFS, HCL, IBM, NTT Data,
What are the user groups?
how to design checkbox on the o/p of the list ,not on the selection screen.
What do you mean by batch data communications programming?