REPORT zceil_floor .
parameters: p_int type i ,
p_int1 type i .
data: value type p decimals 2 ,
value1 type p decimals 2 ,
value2 type p decimals 2 .
start-of-selection.
value = p_int / p_int1 .
value1 = ceil( value ) .
value2 = floor( value ) .
write:/ 'the actual value is : ' , value .
write:/ 'value using the ceil function : ' , value1 .
write:/ 'value using the floor function : ' , value2 .
Here you can find examples and sample programs related to ABAP Report Programs, ALV Grid/List Programs, BDC, HR ABAP, Function Modules, BAPIs, BADIs, Smartforms, SapScripts, etc.
Google Search - Blog...........
Showing posts with label round the decimal number to an integer in ABAP report. Show all posts
Showing posts with label round the decimal number to an integer in ABAP report. Show all posts
Subscribe to:
Posts (Atom)