Skip to Content
avatar image
Former Member

Standard Toolbar ICON not displaying in ALV.

Hi,

I have created a ALV list display. For that i have created a status with Application toolbar and Standard tool bar icons. ...but in my output is only displaying only APPLICATION TOOLBAR icons not the STANDARD TOOL BAR ICONS(SAVE, BACK, EXIT).

My code ll b like this...

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

   EXPORTING

     i_callback_program                = sy-repid       " report id

     i_callback_pf_status_set          = 'PF'           " for PF-STATUS

     i_callback_user_command           = 'USER_COMMAND' " for User-Command

     it_fieldcat                       = it_field       " field catalog

   TABLES

     t_outtab                          = it_final      " internal table

   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  pf

*&---------------------------------------------------------------------*

*       SUB-ROUTINE PF IS USED TO SET THE PF-STATUS OF THE SCREEN

*       ON WHICH THE ALV GRID IS DISPLAYED

*----------------------------------------------------------------------*

*       -->RT_EXTAB

*----------------------------------------------------------------------*

FORM pf USING rt_extab TYPE slis_t_extab.

  SET PF-STATUS 'ZPF_STAT'.

ENDFORM.                    "pf

Note : In SE41....I have Activated the contents by allocating standard toolbar icons init.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 22, 2014 at 05:12 AM

    Hi Bharani,

    Copy the pf-status STANDARD from program SAPLSALV (main program of SALV) to your program. It will work.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Bharani,

      What do you mean by 'condition id moving inside standard program'?

      Just check in normal mode instead of debugging mode, if you are able to see 'Save/Exit/Cancel' buttons in toolbar. I guess that was your question?

  • Dec 22, 2014 at 05:27 AM

    Hi,

    Goto SE 41 

    Program name SAPLSLVC_FULLSCREEN

    Status            STANDARD_FULLSCREEN

    Copy the program name and status to  'Z' .

    Hope it helpful.

    Regards,

    Venkat.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Bharani,

      Can you just explain what issue you are facing now?

      Bharani G wrote:

      Hi Venket...

      the condition again not satisfied

      😔

      How can we help you if you just write condition not satisfied?

  • avatar image
    Former Member
    Dec 22, 2014 at 06:08 AM

    hi bharani,

    have you activated PF-STATUS 'ZPF_STAT'?

    also add REFRESH extab[]. and try again.

    FORM PF  USING EXTAB TYPE SLIS_T_EXTAB.

      SET PF-STATUS 'ZPF_STAT'.

      REFRESH extab[].

    ENDFORM.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Bharani,

      Instead of copying pf-status try using standard pf-status as shown below:

      SET PF-STATUS 'STANDARD' OF PROGRAM 'SAPLKKBL'.

      See if it works for you.