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: 

Pf status is not set and program not responding

Former Member
0 Kudos

Hi all,

At such a code, what is the problem and report is not responding:

data : l_layout type SLIS_LAYOUT_ALV,
        L_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV," WITH HEADER LINE,
        LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
        G_UCOMMAND TYPE SLIS_FORMNAME VALUE 'ALV_USER_COMMAND',

        g_status TYPE slis_formname VALUE 'PF_STATUS_SET'.

.......................

L_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.

L_LAYOUT-ZEBRA = 'X'.

l_repid = sy-repid.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = l_repid

I_INTERNAL_TABNAME = 'ITAB'

I_INCLNAME = l_repid

CHANGING

CT_FIELDCAT = L_FIELDCAT[]

EXCEPTIONS

OTHERS = 3.

....................................

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = sy-repid

IS_LAYOUT = L_LAYOUT

IT_FIELDCAT = L_FIELDCAT

  • IT_SORT = GT_SORT[]

I_CALLBACK_USER_COMMAND = 'PICK'

i_callback_pf_status_set = g_status

I_SAVE = 'A'

IS_VARIANT = VARIANT

IT_EVENTS = GT_EVENTS[]

TABLES

T_OUTTAB = ITAB[]

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

Here when I did not comment g_status the program is not responding.

What could be the problem?

2 REPLIES 2

rahulkavuri
Active Contributor
0 Kudos

You should have your Own PF status for the program

Copy STANDARD Status of SAPLKKBL to your program status using SE41.. then this would work

Former Member
0 Kudos

Hope this helps


FORM list_view.
*
  g_repid = sy-repid.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program = g_repid
            i_callback_pf_status_set = 'PF_0100'
            is_layout          = g_layout
            it_sort            = g_sort[]
            it_events          = g_events[]
            it_fieldcat        = g_fieldcat[]
            i_save             = g_save
       TABLES
            t_outtab           = IT_TABLE
       EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.

  IF sy-subrc <> 0.
    MESSAGE e208(00) WITH 'Error: ALV Grid'.
  ENDIF.
*
ENDFORM.                    " layout_build


FORM PF_0100 using my_exclude.
*
  SET PF-STATUS 'PF_0100'. " EXCLUDING my_exclude. use is you want to exclude buttons
*
ENDFORM.                "end custom PF Status