on 11-12-2007 10:30 AM
While printing a character value, I need to have decimal value also eventhough the decimal value is empty. eg. 15.00. Now If I have some value in it, it is printing properly. eg. 15.1
Let me know how to proceed for this.
Try with this little piece of code:
REPORT ZTEST_NP.
DATA: P_TEST TYPE P,
P_CHAR(20).
P_TEST = '12'.
WRITE: P_TEST TO P_CHAR DECIMALS 2.
WRITE: P_CHAR.
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Move it to a character field and it should print as you need.
Davis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.