MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   No_fieldcatalog_available (foro/showthread.php?t=36337)

dionismatos 21/04/10 15:53:14

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.


dionismatos 21/04/10 16:02:12

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.

mysmb2 21/04/10 16:39:33

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

juanphys 21/04/10 17:04:21

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

yahiirgonzalez 28/10/12 20:40:59

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.


Husos Horarios son GMT. La hora en este momento es 21:23:59.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web