2006 Aug 23 5:04 PM
Hi,
I have added the icons in te aplication toolbar of the ALVGRID.( have added the localfile,xl downloading icons)
While running the report program i am able to view those icons but its not functioning.
What i have to do in order to function those icons??
The thing i have made is in the following code
SET PF-STATUS 'MAIN' EXCLUDING excl_tab.
i have double clicked the MAIN and entered the neccessary icons.
After performing only the visibility of the icon occurs and the original functionality of it doesnt occurs.
Kindly help me in this..
2006 Aug 23 5:10 PM
Just setting the PF-STATUS doesn't ensure the functionality.
You need to code for it in a form , say USER_COMMAND.
See sample:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when '<FCODE>'. "Function Code for some button
Code here for download to excel etc.
use the fm GUI_DOWNLOAD
endcase.
ENDFORM.
Hi,
I have added the icons in te aplication toolbar of the ALVGRID.( have added the localfile,xl downloading icons)
While running the report program i am able to view those icons but its not functioning.
What i have to do in order to function those icons??
The thing i have made is in the following code
SET PF-STATUS 'MAIN' EXCLUDING excl_tab.
i have double clicked the MAIN and entered the neccessary icons.
After performing only the visibility of the icon occurs and the original functionality of it doesnt occurs.
Kindly help me in this..
2006 Aug 23 5:08 PM
Hi,
Try to copy the standard GUI status 'STANDARD' from the program SAPLKKBL and attach your additional buttons..
The Standard SAP GUI will provide you downloading options..
Thanks
Naren
2006 Aug 23 5:09 PM
Hi,
handle sy-ucomm for those icons in the form user-command.
Regards,
Sowjanya.
Message was edited by: sowjanya suggula
2006 Aug 23 5:10 PM
Just setting the PF-STATUS doesn't ensure the functionality.
You need to code for it in a form , say USER_COMMAND.
See sample:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when '<FCODE>'. "Function Code for some button
Code here for download to excel etc.
use the fm GUI_DOWNLOAD
endcase.
ENDFORM.
2006 Aug 23 5:14 PM
Hi Satheesh,
After double clicking MAIN try giving standard FCODES if you dont want to handle it explicitly.
Regards,
Vidya.
2006 Aug 23 5:26 PM
Hi Vidya,
How can i add the function codes can u explain me..i am very new to this..Thanx in advance..
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |