Intelligence Information Technology Communication : raviramanujam@gmail.com

Thursday, May 5, 2011

Round off in sd price

We often encounter such requirments,round up or round down.To achieve this,we can apply the cal type

routine 17 or routine 16 in the price procedure.But this is not enough,to make the cal type work,we should matain the table T001R through tcode OB90.The rule of the routine 16 and 17 obeyed follows the rule of abap floating calculation.

Instruction about Abao float and fixed point arithmetic.

If you mark this checkbox, all calculations in the program will use fixed point arithmetic.

If you do not, packed numbers (ABAP/4 type P, Dictionary types CURR, DEC or QUAN) will be treated as integers when they are used in assignments, comparisons, and calculations, irrespective of the number of decimal places defined. Intermediate results in arithmetic calculations will also be rounded to the next whole number. The number of decimal places defined is only taken into account when you output the answer using the WRITE

No comments:

Indian Temples History.