Skip to Content
author's profile photo Former Member
Former Member

User command

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Dec 19, 2008 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 09:42 AM

    HI.

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

    Regards.

    Jay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 09: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,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 19, 2008 at 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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.