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: 

Standard Toolbar ICON not displaying in ALV.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

archanapawar
Contributor
0 Kudos

Hi Bharani,

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

10 REPLIES 10

archanapawar
Contributor
0 Kudos

Hi Bharani,

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

0 Kudos

Hi Archana,

Thanks for your prompt response. But when i debug my program the condition id moving inside this standard prog which u have mentioned

0 Kudos

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?

VenkatRamesh_V
Active Contributor
0 Kudos

Hi,

Goto SE 41 

Program name SAPLSLVC_FULLSCREEN

Status            STANDARD_FULLSCREEN

Copy the program name and status to  'Z' .

Hope it helpful.

Regards,

Venkat.

0 Kudos

Hi Venket...

the condition again not satisfied

0 Kudos

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?

Former Member
0 Kudos

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.

0 Kudos

Raheem,

Again same only.....only application tool bar s working fine.....the Standard tool bar is simply without reflecting the changes given from my side....

0 Kudos

also please change

it_fieldcat                   = it_field   " field catalog

to

it_fieldcat                   = it_field[]   " field catalog

0 Kudos

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.