Sometimes, we need output number values to reports or ALV's,
although there are several ways to do it, here a function module that does the
work:
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
VALUE = type_c_amount.
Hope be helpful for you!
----------------------------------------
A veces tenemos que formatear la salida para valores numéricos en reportes o ALV's, aunque hay varias maneras de hacerlo, aquí encontré un módulo de funciones que pone al menos el signo "-" primero:
FUNCIÓN DE LLAMADA 'CLOI_PUT_SIGN_IN_FRONT'
CAMBIO
VALOR = type_c_amount.
Espero que sea te sea util!
Me parece muy interesante.
ReplyDelete