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: 

User command

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

HI.

/H (to activate debugging mode)in input and click your image and UCOMM.

Regards.

Jay

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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,

Former Member
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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