Skip to Content

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

FM REUSE_ALV_GRID_DISPLAY - runtime error

I get the following error when I use FM REUSE_ALV_GRID_DISPLAY:

"Field catalog not found".

I realize that it is looking for the parameter it_fieldcat but I don't remember ever passing that parameter before; it also says that it is optional. Below is my call to the FM. Does the addition of it_sort mean that I must pass it_fieldcat?

      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
*     I_INTERFACE_CHECK                 = ' '
*     I_BYPASSING_BUFFER                = ' '
*     I_BUFFER_ACTIVE                   = ' '
*     I_CALLBACK_PROGRAM                = ' '
*     I_CALLBACK_PF_STATUS_SET          = ' '
*     I_CALLBACK_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                       = it_fieldcat
*     IT_EXCLUDING                      =
*     IT_SPECIAL_GROUPS                 =
         it_sort                           = it_sort
*     IT_FILTER                         =
*     IS_SEL_HIDE                       =
*     I_DEFAULT                         = 'X'
*     I_SAVE                            = ' '
*     IS_VARIANT                        =
*     IT_EVENTS                         =
*     IT_EVENT_EXIT                     =
*       is_print                          = 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
*     I_HTML_HEIGHT_TOP                 = 0
*     I_HTML_HEIGHT_END                 = 0
*     IT_ALV_GRAPHICS                   =
*     IT_HYPERLINK                      =
*     IT_ADD_FIELDCAT                   =
*     IT_EXCEPT_QINFO                   =
*     IR_SALV_FULLSCREEN_ADAPTER        =
*   IMPORTING
*     E_EXIT_CAUSED_BY_CALLER           =
*     ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = it_out
*   EXCEPTIONS
*     PROGRAM_ERROR                     = 1
*     OTHERS                            = 2
                .

Davis

Tags:
Former Member replied

populate the catalogue table as follows

CLEAR alv_fieldcat_line.

alv_fieldcat_line-fieldname = 'PERNR'. " Name of the field

alv_fieldcat_line-tabname = 'it_out'. " Name of the internal table

alv_fieldcat_line-seltext_m = 'Personnel number'. " Lable of the field

alv_fieldcat_line-hotspot = ' '.

APPEND alv_fieldcat_line TO it_fieldcat. " Append the field to the it_fieldcat table

A

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question