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: 

Menu bar in ALV

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi friends,

in ALV(grid display) o/p has some icons like details, refresh, local file, ascending, descending, set filter etc.

Now i want to add some icons extra. is it possible?

Thanks & regards,

Vallamuthu.M

4 REPLIES 4

Former Member
0 Kudos

Yes it is possible,


 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_background_id         = 'BACKGROUND'
      i_callback_pf_status_set      = 'SET_STATUS"   "enter pf_status form name
      I_CALLBACK_USER_COMMAND = 'USER_COMMAND_D'


FORM set_status                                                     " your pf status form
     USING i_it_excluding TYPE slis_t_extab.

   SET PF-STATUS 'CAP_DISPLAY' EXCLUDING i_it_excluding.

ENDFORM.             

 

now double click on the 'CAP_DISPLAY'

in pf status screen from menubar

extras--> adjust template

select Tmplate Status enter:

Program : SAPLSALV

status : STANDARD

That will copy all statndrd icon here you can add your own icon

Regards,

Alpesh

Former Member
0 Kudos

hi

adding menu item to your standard status

first we need to copy the standard gui-status and change that 'zstatus' there you can add the what ever u want

standard program is 'SAPLKKBL' and gui status is 'standard_fullscreen'

copy the 'standard_fullscreen' to your 'zstatus'

and goto change mode of 'zstatus'

there you add what ever you want extra menu item are else

regards

Former Member
0 Kudos

{

execute the program and go to status and copy program (gui) name i.e ABC and GUI status Ii.e XYZ.

Go to se41.

enter the progrma name : ABC

SELECT GUI STATUS RADIO BUTTON : STATUS:XYZ

CLICK ON STATUS TAB (i.e copy status)

from

progam:ABC

STATUS:XYZ

TO

PROGRAM:here enter your alv report prog name---->ZREPORT

status: give any status name -


>ZSTANDARD.

click on copy.

here u can add any icons and activate it.

ADD THE REMIANING LOGIC IN YOPUR REPORT .

******************************************************

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-REPID

I_CALLBACK_PF_STATUS_SET = 'SUB_PF_STATUS'

IT_FIELDCAT = T_FIELDCAT[]

TABLES

t_outtab = T_mard[]

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

FORM SUB_PF_STATUS using f_ABC TYPE slis_t_extab..

SET PF-STATUS 'ZSTANDARD' excluding F_ABC.

}

vallamuthu_madheswaran2
Active Contributor
0 Kudos

no one is answered