12-19-2008 9:23 AM
Hii ...
I have a Container , i have placed a iimage in the container of a screen.... now when i click on that image in the container ...some thing need to be performed ...
can i have the ucomm that gets triggered when I click on the image in the container .,....
thanks and regards
chandu reddy sunkari
12-19-2008 9:44 AM
I understand that you use CL_GUI_PICTURE or a similar class, in this case, you have to manage one or more of the following events
EVENTID_PICTURE_CLICK Single-click on the graphic
EVENTID_PICTURE_DBLCLICK Double-click on the graphic
EVENTID_CONTROL_CLICK Single-click within the control area
EVENTID_CONTROL_DBLCLICK Double-click within the control area
EVENTID_CONTEXT_MENU Right mouse click (or Shift+F10) to call a context menu
EVENTID_CONTEXT_MENU_SELECTED Item chosen from a context menu
If you never perform that, look at [Exercise 1: Writing an Event Handler Method|http://help.sap.com/erp2005_ehp_04/helpdata/EN/af/624038c7dc11d2b456006094192fe3/frameset.htm] and perform some search at sdn on [Event Handler|https://www.sdn.sap.com/irj/scn/advancedsearch?query=event+handler&cat=sdn_all] Look also at [SAP Picture (BC-CI)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIIMAGE/BCCIIMAGE.pdf].
In the method you may perform the job or even raise a function code via [method set_new_ok_code of class cl_gui_cfw|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=set_new_ok_code+cl_gui_cfw&adv=false&sortby=cm_rnd_rankvalue].
Regards
12-19-2008 9:42 AM
HI.
/H (to activate debugging mode)in input and click your image and UCOMM.
Regards.
Jay
12-19-2008 9:44 AM
I understand that you use CL_GUI_PICTURE or a similar class, in this case, you have to manage one or more of the following events
EVENTID_PICTURE_CLICK Single-click on the graphic
EVENTID_PICTURE_DBLCLICK Double-click on the graphic
EVENTID_CONTROL_CLICK Single-click within the control area
EVENTID_CONTROL_DBLCLICK Double-click within the control area
EVENTID_CONTEXT_MENU Right mouse click (or Shift+F10) to call a context menu
EVENTID_CONTEXT_MENU_SELECTED Item chosen from a context menu
If you never perform that, look at [Exercise 1: Writing an Event Handler Method|http://help.sap.com/erp2005_ehp_04/helpdata/EN/af/624038c7dc11d2b456006094192fe3/frameset.htm] and perform some search at sdn on [Event Handler|https://www.sdn.sap.com/irj/scn/advancedsearch?query=event+handler&cat=sdn_all] Look also at [SAP Picture (BC-CI)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIIMAGE/BCCIIMAGE.pdf].
In the method you may perform the job or even raise a function code via [method set_new_ok_code of class cl_gui_cfw|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=set_new_ok_code+cl_gui_cfw&adv=false&sortby=cm_rnd_rankvalue].
Regards
12-19-2008 9:51 AM
Hi,
Go to Se80. Open the program, then the screen painter. in the screen painter double click on the image inserted on the container. in the properties window u will find out the function code entered for the image.
Regards,
Mansi,
12-19-2008 10:08 AM
you need to maintain the FctCode value in the layout editor , go to the properties of your container assisgn a string to the FctCode field .this code will be assigned to sy-uccom on click , use it in the program
12-19-2008 10:18 AM
As far as i know, adding a function code to a dynpro element (SE51) is only authorized for the following element types :
- checkboxes and radio buttons
- Push buttons
- Tab titles in tabstrip controls
- Input/output fields with the "Dropdown box" attribute.
Regards
12-22-2008 12:35 PM
Hii Raymond,
Thanks for the suggestion ,,, with ur suggestion my issue got resolved..
Thanks for one and all who tried helping me ..
Thanks and regards
Chandu Reddy Sunkari