Monday, June 1, 2015

SAP ABAP: Minus sign to the left

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!

1 comment:

Python - borrar lineas extra de archivos .txt en un directorio

 Aqui el codigo Python para borrar lineas extra en un archivo plano: import os path = "c:\\temp" path_new='c:\\temp\\CleanFile...