02-01-2007 4:32 AM
hi gurus,,
i m using wrbtr field from ppdit table in ,database table it contains negative sign but in output i dont want to show negative sign cud u plz tell me how to remove negative sign...
thnx in advance
02-01-2007 4:35 AM
Hi,
Use <b>'NO-SIGN'</b> when moving to the output...
Cheers,
Simha.
02-01-2007 4:33 AM
loop at itab.
if itab-wrbtr lt 0.
itab-wrbtr = itab-wrbtr * ( -1 ).
endif.
write : / itab-wrbtr .
endloop.
regards
shiba dutta
02-01-2007 4:35 AM
Ravi,
You can use ABS arithmatic operation.
e.g. p_wrntr = ABS( wrbtr ).
in the o/p write p_wrbtr.
The ABS operation always returns the absolute (positive) value of a number.
02-01-2007 4:35 AM
Ravi,
You can use ABS arithmatic operation.
e.g. p_wrntr = ABS( wrbtr ).
in the o/p write p_wrbtr.
The ABS operation always returns the absolute (positive) value of a number.
02-01-2007 4:35 AM
Hi,
Use <b>'NO-SIGN'</b> when moving to the output...
Cheers,
Simha.
02-01-2007 4:41 AM
Hi Ravi ,
Jut loop on your internal table and check if the value is negetive , if the value is negetive multiply with -1 else keep it as it is.
and if you are using the write command use 'NO-SIGN' , it does not display the sign .
Regards
Arun
02-01-2007 4:45 AM
Hi,
Use it as:
IT_BSEG-WRBTR = -1 * IT_BSEG-WRBTR.
I myself have used it in my program.
Hope this helps.
Reward if helpful.
Regards,
Sipra