2007 Nov 02 6:09 AM
Hi
well plz tell me how to replace a variable with 0.
as there is a variable where its coming out to be -ive,so in output format ,i have to pass 0 for that,as -ive values has to be obsulteded.
plz reply me soom.
2007 Nov 02 6:15 AM
Hi Vipin ,
Try this.
if v_sign eq ' - '.
value = 0.
endif.
Reward If Useful.
Regards,
Chitra
Hi
well plz tell me how to replace a variable with 0.
as there is a variable where its coming out to be -ive,so in output format ,i have to pass 0 for that,as -ive values has to be obsulteded.
plz reply me soom.
2007 Nov 02 6:15 AM
Hi Vipin ,
Try this.
if v_sign eq ' - '.
value = 0.
endif.
Reward If Useful.
Regards,
Chitra
2007 Nov 02 6:16 AM
Hi,
Check that variable is less than zero,
then use replace statement to replace the value of that variable to zero.
Ex.
If lv_var LT 0.
REPLACE ALL OCCURRENCES OF 'ab' IN lv_var WITH '0'.
endif.
Regards,
Prashant
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |