05-04-2007 5:09 PM
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.
05-04-2007 5:15 PM
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
05-04-2007 5:19 PM
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.
05-07-2007 6:45 AM
Hi,
Try this transactions u ll get good examples.
SE83 and DWDM.
Thanks & Regards
Santhosh