on 03-09-2017 11:30 AM
; eg in abap -45 is displayed as 45- ,so how to display -45?
Hi,
Check the FM: CLOI_PUT_SIGN_IN_FRONT
You can try this below code also:
SHIFT amount RIGHT DELETING TRAILING '-'.
SHIFT amount LEFT DELETING LEADING ' '.
CONCATENATE '-' amount INTO amount.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the below function module to change the opposite sign symbol..,
REPORT z_demo_jg1.
PARAMETERS p_amount(10) TYPE c OBLIGATORY DEFAULT '100.15-'.
WRITE:/ 'BEFORE:', p_amount.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
value = p_amount.
WRITE:/ 'AFTER:', p_amount.
Thanks,
Patan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.