on 2018 Mar 20 5:55 PM
Hi
I am displaying a table data in the Adobe form, My requirement is display the '-'ve sign at end of the value if the value is less than zero, but right now it is coming in front of the value.
Could you please help me out.
Thanks
Hi Sri ,
I would make a characteristic variable and convert it myself. Please check below code.
DATA: gv_amount type konp-kbetr.
DATA: gv_amount_text(15) type c.
gv_amount = 100.
WRITE:/ 'Positive Value : ', gv_amount.
gv_amount = gv_amount * -1.
WRITE:/ 'Negative Value : ', gv_amount.
gv_amount_text = gv_amount.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
value = gv_amount_text.
WRITE:/ 'After Shifting : ', gv_amount_text RIGHT-JUSTIFIED.
Output ;
Positivie Value : 100.00
Negative Value : -100.00
After Shifting : 100.00-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.