2013 Feb 15 10:49 AM
Hi All,
I have a ALV report in a container of screen painter and i want to change a column of ALV grid into a Pushbutton with image. Is it possible? if yes, then how?Please tell me as soon as possible.
Thanks and Regards
Shubhanshu
2013 Feb 15 1:11 PM
Hi,
For Displaying as Push Button :
WA_STYLE-FIELDNAME = 'your field name'.
WA_STYLE-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_BUTTON.
INSERT WA_STYLE INTO TABLE Your final Itab-CSTYLE.
append finalwa to finalitab.
For Getting Image:
WA_FCAT-ICON = 'X'.
ENDIF.
Regards,
Ravindra.
Hi All,
I have a ALV report in a container of screen painter and i want to change a column of ALV grid into a Pushbutton with image. Is it possible? if yes, then how?Please tell me as soon as possible.
Thanks and Regards
Shubhanshu
2013 Feb 15 10:55 AM
Hi,
Please check the below link
http://help.sap.com/saphelp_erp2004/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/content.htm
Thanks
Mani
2013 Feb 15 1:11 PM
Hi,
For Displaying as Push Button :
WA_STYLE-FIELDNAME = 'your field name'.
WA_STYLE-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_BUTTON.
INSERT WA_STYLE INTO TABLE Your final Itab-CSTYLE.
append finalwa to finalitab.
For Getting Image:
WA_FCAT-ICON = 'X'.
ENDIF.
Regards,
Ravindra.
2013 Feb 18 10:55 AM
Thanks for your answer. Now I have one more question, how I will get sy-ucomm of this push button for further process. Please tell me.
Thanks in advance.
2013 Feb 18 11:55 AM
Moderator Message: Next time before asking a question , please check if it has been discussed before or not . This topic has been answered many times before.
I recommend to read the useful Blog "Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers" to avoid the impression of "spec dumping and learn the principles of this before asking any more questions.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |