<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Table control events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536936#M1427343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the additional method but It also can't work. Do i need to call the ON_CTMENU_TEST subroutine ? or the system will call it automatical when i right click the table control ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yinyan Lu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2010 05:59:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-05T05:59:45Z</dc:date>
    <item>
      <title>Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536927#M1427334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right click event can be used in table control ? and how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best regards,&lt;/P&gt;&lt;P&gt;Yinyan Lu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 08:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536927#M1427334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T08:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536928#M1427335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it can, but I suppose it's not link to table control but to input/output field: try to check the help for the [menu contest|http://help.sap.com/saphelp_nw04/helpdata/en/94/c4a6377cc0c92ce10000009b38f8cf/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 08:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536928#M1427335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T08:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536929#M1427336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I  set ON_CTMENU_TEST  in table control, and add the flowing code &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM ON_CTMENU_TEST USING p_menu TYPE REF TO cl_ctmenu.

  CALL METHOD p_menu-&amp;gt;add_function
       EXPORTING fcode = 'TXT1'
                 text  = 'test1'
                 icon  = ' '
                 ftype = ' '
                 disabled = ' '
                 hidden   = ' '
                 checked  = ' '.
  
  CALL METHOD p_menu-&amp;gt;add_function
       EXPORTING fcode = 'TXT2'
                 text  = 'test2'
                 icon  = ' '
                 ftype = ' '
                 disabled = ' '
                 hidden   = ' '
                 checked  = ' '.

ENDFORM. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i right click the table control, nothing was happend. How can i do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best regards,&lt;/P&gt;&lt;P&gt;Yinyan Lu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 09:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536929#M1427336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536930#M1427337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you set the form name in the attributes of the field by screen painter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 09:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536930#M1427337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T09:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536931#M1427338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeap,  I have set the 'TEXT' behind the 'ON_CTMENU_'  field in screen painter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best regards,&lt;/P&gt;&lt;P&gt;Yinyan Lu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: YINYAN LU on Jan 4, 2010 10:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 09:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536931#M1427338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T09:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536932#M1427339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi YinYan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As teh contetx menu is defined as 'TEXT', then the form name should be ON_CTMENU_TEXT. Correct the form name and check if it is working.&lt;/P&gt;&lt;P&gt;Also cehck the program DEMO_DYNPRO_CONTEXT_MENU. It may helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 10:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536932#M1427339</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-01-04T10:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536933#M1427340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've inserted the following modification in your sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM ON_CTMENU_TEST USING P_MENU TYPE REF TO CL_CTMENU.

  DATA: PROG TYPE PROGRAM.

  PROG = SY-REPID.

  CALL METHOD P_MENU-&amp;gt;LOAD_GUI_STATUS
    EXPORTING
      PROGRAM = PROG
      STATUS  = 'CONTEXT_MENU_1'
      MENU    = P_MENU.


  CALL METHOD P_MENU-&amp;gt;ADD_FUNCTION
    EXPORTING
      FCODE    = 'TXT1'
      TEXT     = 'test1'
      ICON     = ' '
      FTYPE    = ' '
      DISABLED = ' '
      HIDDEN   = ' '
      CHECKED  = ' '.

  CALL METHOD P_MENU-&amp;gt;ADD_FUNCTION
    EXPORTING
      FCODE    = 'TXT2'
      TEXT     = 'test2'
      ICON     = ' '
      FTYPE    = ' '
      DISABLED = ' '
      HIDDEN   = ' '
      CHECKED  = ' '.

ENDFORM.                    "ON_CTMENU_TEST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTEXT_MENU_1 is status gui defined for the contest menu by menu painter: it works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 10:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536933#M1427340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T10:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536934#M1427341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Both,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is 'TEST'. I checked it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i check it worked, i right click on the table control, but nothing happend, no context menu popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yinyan Lu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 05:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536934#M1427341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-05T05:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536935#M1427342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yinyan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add one more method as mentioned in the demo program DEMO_DYNPRO_CONTEXT_MENU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM ON_CTMENU_TEST USING p_menu TYPE REF TO cl_ctmenu.

  DATA test_menu TYPE REF TO cl_ctmenu.
  CREATE OBJECT test_menu.

  CALL METHOD test_menu-&amp;gt;add_function
       EXPORTING fcode = 'TXT1'
                 text  = 'test1'
                 icon  = ' '
                 ftype = ' '
                 disabled = ' '
                 hidden   = ' '
                 checked  = ' '.
  
  CALL METHOD test_menu-&amp;gt;add_function
       EXPORTING fcode = 'TXT2'
                 text  = 'test2'
                 icon  = ' '
                 ftype = ' '
                 disabled = ' '
                 hidden   = ' '
                 checked  = ' '.
 
 CALL METHOD p_menu-&amp;gt;ADD_MENU
                 EXPORTING
                   MENU   = test_menu.
ENDFORM. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if it helps you in anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 05:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536935#M1427342</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-01-05T05:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536936#M1427343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the additional method but It also can't work. Do i need to call the ON_CTMENU_TEST subroutine ? or the system will call it automatical when i right click the table control ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yinyan Lu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 05:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536936#M1427343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-05T05:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536937#M1427344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yinyan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be called automatically if you place the form code in your program. Do one thing: Keep a break-point in the form and check whether the form is getting called or not when you do right click?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 06:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536937#M1427344</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-01-05T06:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536938#M1427345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I right click the table control but any action happend. It didn't enter the subroutine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yinyan Lu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 10:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536938#M1427345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-05T10:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table control events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536939#M1427346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should turn off the quick paste function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 07:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events/m-p/6536939#M1427346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T07:37:10Z</dc:date>
    </item>
  </channel>
</rss>

