Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Field catlog

Former Member
0 Kudos

Hi all,

When I am executing the report, I am getting the 'Field catlog not found'. How can i solve this.

will get best reward points.

regards,

Ajay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

havu u used fm.plase check the fileld cat declaraions.

3 REPLIES 3

Former Member
0 Kudos

havu u used fm.plase check the fileld cat declaraions.

Former Member
0 Kudos

Hi Ajay,

IF you are using REUSE_ALV* then,

the internal table for IT_FIEDCAT is empty.

Fill the Fieldcat internal table.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = V_REPID

I_CALLBACK_USER_COMMAND = 'SUB_USER_COMMAND'

IS_LAYOUT = LS_LAYOUT

<b> IT_FIELDCAT = IT_FIELDCAT</b>

IT_EVENTS = IT_EVENTS

TABLES

T_OUTTAB = IT_MATKL

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

Hopes this helps you.

Ali

Former Member
0 Kudos

Check the below process :

Declare field catalog :

type-pools : slis.

<b>data : gt_fieldcat type slis_t_fieldcat_alv.</b>

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = g_repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = g_user_command

  • I_CALLBACK_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • IS_LAYOUT = gr_layout_bck

<b> IT_FIELDCAT = gt_fieldcat[]</b>* IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = g_save

  • IS_VARIANT =

  • IT_EVENTS =

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • IT_ALV_GRAPHICS =

  • IT_ADD_FIELDCAT =

  • IT_HYPERLINK =

  • I_HTML_HEIGHT_TOP =

  • I_HTML_HEIGHT_END =

  • IT_EXCEPT_QINFO =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

T_OUTTAB = i_output

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.

Thanks

Seshu