Alv

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • Alfredosite
    Senior Member
    • jul
    • 135

    #1

    Alv

    Hola amigos.

    Una consulta estoy leyendo una tabla, la cual esta cargada con datos de importes los cuales algunos campos tienen como valor 0.00. Y al mostrarlos en el ALV salen en blanco.

    Que campo del slis_layout tengo que modificar para mostrar dicho valor (ya no en blanco).

    Muchas Gracias.

    Alfredo
    Saludos Cordiales,
    Alfredo Pastor Avendaño
    SAP - Consultant HCM
  • larmadovr
    Member
    • ene
    • 77

    #2
    Que tal amigo:

    Tengo un ALV con importes el cual esta declarado de la siguiente manera.

    *******************
    Tabla Z
    CECO KOSTL CHAR 10
    NOMBRECC KLTXT CHAR 40
    NOMBRESUBGPO ZNOMBRESUBGPO CHAR 30
    CVECON ZCONCEPTOP NUMC 6
    NOMBRECON ZNOMBREPREP CHAR 80
    CUENTA HKONT CHAR 10
    IMPORTE1 DMBTR CURR 13
    IMPORTE2 DMBTR CURR 13
    *******************

    TYPES: BEGIN OF st_output.
    INCLUDE STRUCTURE zrcaptpreg.
    TYPES: END OF st_output.

    DATA: gt_output TYPE STANDARD TABLE OF st_output WITH HEADER LINE.


    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = g_repid
    it_fieldcat = gt_fieldcat[]
    it_events = gt_events[]
    is_layout = int_flay
    i_save = 'X'
    IS_VARIANT = g_variant
    TABLES
    t_outtab = gt_output.


    Y si me manda los 0.00.


    Pega el código donde estás declarando el campo importe. Tal vez lo tengas como type c o string y por eso no muestra los 0
    I.S.C.T. Luis Armando Valdez Rodríguez
    Consultor ABAP
    correo: larmandovr@hotmail.com
    cel: (045) 5537406023

    "La vida premia la acción"

    Comentario

    • Alfredosite
      Senior Member
      • jul
      • 135

      #3
      Originalmente publicado por larmadovr
      Tengo un ALV con importes el cual esta declarado de la siguiente manera.

      *******************
      Tabla Z
      CECO KOSTL CHAR 10
      NOMBRECC KLTXT CHAR 40
      NOMBRESUBGPO ZNOMBRESUBGPO CHAR 30
      CVECON ZCONCEPTOP NUMC 6
      NOMBRECON ZNOMBREPREP CHAR 80
      CUENTA HKONT CHAR 10
      IMPORTE1 DMBTR CURR 13
      IMPORTE2 DMBTR CURR 13
      *******************

      TYPES: BEGIN OF st_output.
      INCLUDE STRUCTURE zrcaptpreg.
      TYPES: END OF st_output.

      DATA: gt_output TYPE STANDARD TABLE OF st_output WITH HEADER LINE.


      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
      i_callback_program = g_repid
      it_fieldcat = gt_fieldcat[]
      it_events = gt_events[]
      is_layout = int_flay
      i_save = 'X'
      IS_VARIANT = g_variant
      TABLES
      t_outtab = gt_output.


      Y si me manda los 0.00.


      Pega el código donde estás declarando el campo importe. Tal vez lo tengas como type c o string y por eso no muestra los 0
      Muchas gracias Mr. solucionado el problema. Gracias por la orientación buen dia.
      Saludos Cordiales,
      Alfredo Pastor Avendaño
      SAP - Consultant HCM

      Comentario

      Trabajando...