By
using CLEAR keyword, we can clear the values assigned to a variable.
Syntax
CLEAR:
var1, var2...varN
Z_HELLO_WORLD
*&---------------------------------------------------------------------* *& Report Z_HELLO_WORLD *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT Z_HELLO_WORLD. DATA var1 TYPE I VALUE 10. DATA var2 TYPE I VALUE 20. DATA var3 TYPE I VALUE 30. Write 'Before Clearing : '. Write: var1, var2, var3. CLEAR: var1,var2, var3. Write / 'After Clearing ; '. Write: var1, var2, var3.
No comments:
Post a Comment