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: 

creating push button on ALV application toolbar

Former Member
0 Kudos

Hi Abapers,

I have created one ALV in HR module using function module 'display_basic_list'. now my requirement is to create a push button on ALV application tool bar so that when user clicks on this push button another list has to appear..

kindly gimme valid inputs which would help me.. Also provide me sample code...

Thanks in Advance,

Radhika.

3 REPLIES 3

Former Member
0 Kudos

Hi,

GO to SE41 copy the status STANDARD from the program SAPLKKBL..And give the status name and your program name...

Add your buttons..

In the parameter I_CALLBACK_PF_STATUS_SET give the form name 'PF_STATUS_SET'.

In the subroutine.

FORM PF_STATUS_SET.

SET PF-STATUS 'STATUS NAME THAT YOU GAVE IN SE41'.

ENDFORM.

  • For user command pass the parameter I_CALLBACK_USER_COMMAND with the user command subroutine name..

FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

...

IF R_UCOMM = ''.

...

ENDIF.

ENDFORM.

  • Example

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

i_callback_program = lv_repid

I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

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

Thanks,

Naren

0 Kudos

Hi narendran,

I'm not using reuse_alv_list_display or reuse_alv_grid_display function modules to create alv....

I have used 'display_basic_list' to create alv. I dont think I_CALLBACK_USER_COMMAND parameter is available for this FM.

Former Member
0 Kudos

Hi,

Try this transactions u ll get good examples.

SE83 and DWDM.

Thanks & Regards

Santhosh