Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Exception No_Fieldcatalog_Found in ALV?

Hi All,

I am trying to build the fieldcatalog dynamically using the function module reuse_alv_fieldcatalog_merge but it is rasing the eception" no_fielcatalog_found", please tell me what is wrong in my declaration part so that i can remove this error?

the code is as follows.

tables: ekko, ekpo.

parameters: p_bstyp type ekko-bstyp.

types: begin of st_ekko,

ebeln type ekko-ebeln,

bukrs type ekko-bukrs,

bstyp type ekko-bstyp,

bsart type ekko-bsart,

statu type ekko-statu,

aedat type ekko-aedat,

ernam type ekko-ernam,

lifnr type ekko-lifnr,

end of st_ekko.

data: it_ekko type standard table of st_ekko initial size 0,

wa_ekko type st_ekko.

select ebeln

bukrs

bstyp

bsart

statu

aedat

ernam

lifnr from ekko into table it_ekko where bstyp = p_bstyp.

type-pools: slis.

data: fact type slis_t_fieldcat_alv with header line,

event type slis_t_event with header line.

data: i_repid type sy-repid.

i_repid = sy-repid.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = i_repid

I_INTERNAL_TABNAME = 'IT_EKKO'

  • I_STRUCTURE_NAME =

  • I_CLIENT_NEVER_DISPLAY = 'X'

I_INCLNAME = i_repid

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE =

CHANGING

CT_FIELDCAT = fact[]

  • 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.

event-name = 'TOP_OF_PAGE'.

event-form = 'TOP'.

append event.

clear event.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-CPROG

I_CALLBACK_USER_COMMAND = '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 =

IT_FIELDCAT = fact[]

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

IT_EVENTS = event[]

  • 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_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • I_HTML_HEIGHT_TOP =

  • I_HTML_HEIGHT_END =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

T_OUTTAB = it_ekko.

  • 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.

FORM TOP.

data: listheader type slis_t_listheader with header line.

listheader-typ = 'H'.

listheader-info = 'List of Purchasing Orders'.

append listheader.

clear listheader.

Regards,

MD

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question