08-01-2008 9:50 AM
Hi
i am getting the error message when i am executing ALV Report for Grid Display
Exception condition "NO_FIELDCATALOG_AVAILABLE" raised.
Error analysis
A RAISE statement in the program "CL_GUI_ALV_GRID==============
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.
while i have declared field catalog and also pass in FM
Regards
Atul
08-01-2008 1:25 PM
Hi,
I understand you used REUSE_ALV_FIELDCATALOG_MERGE, and it returned sy-subrc as 0.
But still ur fieldcatalog table would have been empty.
This occurs due to a simple problem. Even i have faced.
Considering IT_OUTPUT as your output table, check its declaration, Try to declare its fields with LIKE instead of TYPE.
Then your problem will be resolved hopefully.
Regards
Meenakshi
Reward is useful
08-01-2008 9:55 AM
hi atul,
there is some problem in ur field catalog function module,,
im here pasting a field catalog code..tat works perfectly fine..
TYPE-POOLS: slis.
DATA: itab_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'ZSALES_REPORT' " rep program name
i_internal_tabname = 'ITAB_OUTPUT' " output internal table
i_inclname = 'ZSALES_REPORT'
CHANGING
ct_fieldcat = itab_fieldcat " int table for field catalog..
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
let me knw if it helps u...
regards
kanika
08-01-2008 9:57 AM
08-01-2008 10:11 AM
Hi,
What was the type of your fieldcatalog internal table?
Was it 'lvc_t_fcat' ?
Regards,
Shailaja
08-01-2008 10:12 AM
Hi,
The fieldcatalog you have created and the fieldcatalog name which you have given in the set table for first display or refresh table for display may not be same. Check it once.
Sharin.
08-01-2008 10:22 AM
HI,
Please check the table for Field catalog was filled or Empty.
I have got same kind of Exception when i used an emtpy internal table for Field catalog .
Regards,
Sreekanth.G
08-01-2008 1:25 PM
Hi,
I understand you used REUSE_ALV_FIELDCATALOG_MERGE, and it returned sy-subrc as 0.
But still ur fieldcatalog table would have been empty.
This occurs due to a simple problem. Even i have faced.
Considering IT_OUTPUT as your output table, check its declaration, Try to declare its fields with LIKE instead of TYPE.
Then your problem will be resolved hopefully.
Regards
Meenakshi
Reward is useful
08-01-2008 1:38 PM
Thanks A Lot Meenakshi
My report has been successfully executed i used Like instead of TYPE in tb_itab.
Regards
Atul Mohan Mishra