No_fieldcatalog_available

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • dionismatos
    Junior Member
    • abr
    • 4

    #1

    No_fieldcatalog_available

    HellO all

    i'm trying to display the data of an internal table in to ALV Report. But when i try to show to report i get that No field catalog available exception.

    Any ideas on how to solve this?

    Here is part of my code.

    Código:
    FORM DISP_ALV.
    
    DATA: it_field_cat TYPE TABLE OF slis_fieldcat_alv,
            layout_alv TYPE slis_layout_alv.
    
    "PERFORM ORDENAR_CAMPOS CHANGING WA_VETAS.
    
    * Estableciendo las configuraciones del layout del grid.
      layout_alv-colwidth_optimize = 'X'.
      layout_alv-zebra = 'X'.
      layout_alv-edit = space.
      layout_alv-no_input = 'X'.
      layout_alv-info_fieldname = 'COLOR_COLUMN'.
    
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
    
         i_callback_program                 = sy-cprog
         i_callback_pf_status_set          = 'SET_PF_STATUS'
          i_callback_top_of_page            = 'TOP_OF_PAGE'
          is_layout                         = layout_alv
          it_fieldcat                       = it_field_cat
           i_save                            = 'A'
    
           TABLES
          t_outtab                          = wa_VTAS
    
        EXCEPTIONS
         program_error         = 1
         OTHERS                = 2.
    
     IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    
    ENDFORM.
    
    FORM ORDENAR_CAMPOS CHANGING it_field_catalog TYPE table.
    DATA: wa_field_cat TYPE slis_fieldcat_alv.
    
    "Codigo Cliente
    CLEAR wa_field_cat.
    wa_field_cat-fieldname = 'KUNNR'.
    wa_field_cat-ref_tabname = 'WA_VTAS-KUNNR'.
    wa_field_cat-seltext_s = 'CLIENTE'.
      APPEND wa_field_cat TO it_field_catalog.
    "Ventas Hiscoticas
    CLEAR wa_field_cat.
      wa_field_cat-fieldname = 'vneta-h'.
      wa_field_cat-ref_tabname = 'WA_VTAS-vneta-h'.
      wa_field_cat-seltext_m = 'Historico'.
      APPEND wa_field_cat TO it_field_catalog.
    
    CLEAR wa_field_cat.
      wa_field_cat-fieldname = 'vneta-a'.
      wa_field_cat-ref_tabname = 'WA_VTAS-vneta-a'.
      wa_field_cat-seltext_m = 'Actueal'.
      APPEND wa_field_cat TO it_field_catalog.
  • dionismatos
    Junior Member
    • abr
    • 4

    #2
    Jaja me equivoque de idioma :P

    Saludos!

    Estoy tratando de imprimir un alv, pero me muestra la excepcion de No_fieldcatalog_available al tratar de visualizar el reporte.

    Comentario

    • mysmb2
      Senior Member
      • ene
      • 406

      #3
      la tabla de referencia que asignas esta mal
      wa_field_cat-ref_tabname = 'WA_VTAS-KUNNR'.
      deberias poner el nombre de la tabla no tabla-campo es posible que ese sea tu problema
      saludos
      Sebastián Chiavia
      http://www.programacionabap.com.ar

      Comentario

      • juanphys
        Member
        • sep
        • 31

        #4
        Hola,

        además de lo que dice mysmb2, otro error es que a lo hora de definir el catálogo de campos tienes el form:

        PERFORM ORDENAR_CAMPOS CHANGING WA_VETAS.

        pero cuando llamas a la función, al parámetro le pasas otra estructura (it_field_cat), que claro, estará vacía:

        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING

        i_callback_program = sy-cprog
        i_callback_pf_status_set = 'SET_PF_STATUS'
        i_callback_top_of_page = 'TOP_OF_PAGE'
        is_layout = layout_alv
        it_fieldcat = it_field_cat
        Juanphys
        SAP CO + ABAP

        http://saperos-es.blogspot.com/

        Comentario

        • yahiirgonzalez
          Junior Member
          • mar
          • 3

          #5
          Hola chicos la verdad yo tube este error el dia de hoy lo ustube consultando en diferentes paginas y encontré informacion de ayuda pero no me solucionaba el error algunas paginas decian que utilizara diferentes funciones del sistema como por ejemplo 'REUSE_ALV_GRID_DISPLAY' pero al hacer el debuggeo de mi programa descubri que el error surgia porque los parametros que se utilizan para llamar al metodo grid1->set_table_for_first_display estan incorrectos asi que yo les recomiendo verifiquen bien su codigo aqui les dejo el ejemplo para que vean como tenia yo mi error y como lo solucione...

          * Load data into the grid and display them
          CALL METHOD go_grid->set_table_for_first_display
          EXPORTING i_structure_name = 'GI_SFLIGHT'
          CHANGING it_outtab = gi_sflight.
          ENDFORM. " load_data_into_grid

          SOLUCION

          * Load data into the grid and display them
          CALL METHOD go_grid->set_table_for_first_display
          EXPORTING i_structure_name = 'SFLIGHT'
          CHANGING it_outtab = gi_sflight.
          ENDFORM. " load_data_into_grid

          SALUDOS...espero y les sirva de algo.

          Comentario

          Trabajando...