Skip to Content
0
Aug 04, 2009 at 09:02 AM

Exception condition "NO_FIELDCATALOG_AVAILABLE" raised in an alv grid.

229 Views

Hi.

I saw other threadhs with this problem, and in each ones somebody explained how to use the fieldcatalog.

In this case I wish to know why I can't use the structure name.

The code is at the bottom. I'm working with a rel. 4.6c.

I'm sure that when I call the method set_table_for_first_display the internal table is full.

What is wrong?

-


Exception condition "NO_FIELDCATALOG_AVAILABLE" raised.

[...]

A RAISE statement in the program "CL_GUI_ALV_GRID===============CP " raised the

exception

condition "NO_FIELDCATALOG_AVAILABLE".

Since the exception was not intercepted by a superior program

in the hierarchy, processing was terminated.

Short description of exception condition:

For detailed documentation of the exception condition, use

Transaction SE37 (Function Library). You can take the called

function module from the display of active calls.

-


TYPES: BEGIN OF tipo_errors,

Tipo_errore(10),

chiave(8),

agagt(3),

key(7),

kunnr(6),

percinc(5),

Messaggio(100),

vbeln type VBELN,

posnr type POSNR,

agente type ZPVAGENTE,

bukrs type BUKRS,

vkorg type VKORG,

END OF tipo_errors.

[...]

DATA: alv_grid_errori TYPE STANDARD TABLE OF tipo_errors.

[...]

CALL METHOD r_alv_grid->set_table_for_first_display

EXPORTING

i_structure_name = 'TIPO_ERRORS'

CHANGING

it_outtab = alv_grid_errori

EXCEPTIONS

OTHERS = 4.