Hi Anurag Sinha,
You can use Condense or ABS , Replace , Concatenate
I have done a small coding.
PARAMETERS : A TYPE I.
PARAMETERS : B TYPE I.
DATA : C TYPE I.
DATA : E TYPE CHAR15.
C = A - B .
IF C < 0.
E = C.
*E = ABS( C ).
CONDENSE E NO-GAPS.
REPLACE '-' INTO E WITH SPACE .
CONCATENATE '-' E INTO E.
ENDIF.
WRITE :/ C.
WRITE :/ E.
Regards,
Sindhuja.