Writing sign left by the amount with function
Details
- Details
- Category: ABAP
- Created on Friday, 02 November 2012 10:21
- Last Updated on Friday, 02 November 2012 10:23
- Published on Friday, 02 November 2012 10:21
- Written by Administrator
- Hits: 12548
Write the sign left by amount using function CLOI_PUT_SIGN_IN_FRONT
simple example:
*&---------------------------------------------------------------------*
*& write sign left by amount
*& www.developerpages.gr
*&---------------------------------------------------------------------*
report zleft_sign.
data : amount like konp-KBetr.
data : t_amount(16).
amount = '-100'.
write :/ amount.
write amount to t_amount.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
value = t_amount.
write:/ t_amount RIGHT-JUSTIFIED.