<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091486#M100826</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;If you can't change the status gui of main screen, because it's std, I think you can't use the doubleclick. You could use a column with pushbutton instead of doubleclick. If you give a code with %, the system'll replace % symbol with the number of selected row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you give F2% as code of pushbutton, if user press the pushbutton of second row, the code'll be F22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your user_command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt;if OK_CODE(2) = 'F2'.&lt;/P&gt;&lt;P&gt; MOVE OK_CODE+2 TO V_LINE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get (calculate) the record of internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INDEX_ITAB = TABLECONTROL-TOP_LINE + V_LINE - 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read the the table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE ITAB INDEX INDEX_ITAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call new screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SET SCREEN XXXX.&lt;/P&gt;&lt;P&gt;LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2005 15:34:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-24T15:34:54Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091481#M100821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a table control to display some info and would need to bring up a new screen when a row in the table is double clicked. Do you know how I can assign a function code for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been a long time since I used the table controls. So any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 14:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091481#M100821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T14:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091482#M100822</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;  In your GUI Status (PF-STATUS) assign a function code (for example PICK) for F2 Function Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  And then code for it in your user_command routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Like,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  CASE ok_code. &lt;/P&gt;&lt;P&gt;"or OKCODE whatever is given in your screen elements list&lt;/P&gt;&lt;P&gt;    WHEN 'PICK'.&lt;/P&gt;&lt;P&gt;****Your processing here..      &lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Double click on any screen element including a table control row trigger F2 function key..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET CURSOR LINE line.  "To get the line dbl clicked&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  and then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  get the corresponding internal table line by,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  line = tctrl-top_line + line - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 14:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091482#M100822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T14:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091483#M100823</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;The code of doubleclick is the code you assign to F2 function key in your stauts gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS PAI.&lt;/P&gt;&lt;P&gt; LOOP AT...&lt;/P&gt;&lt;P&gt;   MODULE GET_CURSOR.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; MODULE GET_CURSOR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the line of table control where doubleclick is done&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   GET CURSORD LINE V_LINE.&lt;/P&gt;&lt;P&gt; ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt;  CASE OK_CODE.&lt;/P&gt;&lt;P&gt;    WHEN 'F2'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get (calculate) the record of internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      INDEX_ITAB = TABLECONTROL-TOP_LINE + V_LINE - 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read the the table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ TABLE ITAB INDEX INDEX_ITAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call new screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      SET SCREEN XXXX.&lt;/P&gt;&lt;P&gt;      LEAVE SCREEN.&lt;/P&gt;&lt;P&gt; ENDMODULE.&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, 24 Oct 2005 14:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091483#M100823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091484#M100824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only problem here is I do not have a GUI status. This is a SAP CRM screen and I am calling my table control in a subscreen. I do see that that the GUI status in SAP main screen has the Fcode defined for F2 but when I double click on my table control, it gives an error message saying - Function code cannot be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 15:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091484#M100824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T15:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091485#M100825</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;  Are you sure that there is a function code defined for F2 in the main screen's gui status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Normally the message "Function code cannot be selected"&lt;/P&gt;&lt;P&gt;  will come only if there is no function code specified for F2 function key..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can check by placing the cursor on any field in the main screen and then go to menu System-&amp;gt;Status. You can see the GUI Status in the popup, double click on it to navigate and see whether F2 has a function code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  And then if this is not working out then I suggest you add a Pushbutton as column to your table control and then &lt;/P&gt;&lt;P&gt;give a fcode to it like 'PICK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 15:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091485#M100825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T15:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091486#M100826</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;If you can't change the status gui of main screen, because it's std, I think you can't use the doubleclick. You could use a column with pushbutton instead of doubleclick. If you give a code with %, the system'll replace % symbol with the number of selected row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you give F2% as code of pushbutton, if user press the pushbutton of second row, the code'll be F22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your user_command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt;if OK_CODE(2) = 'F2'.&lt;/P&gt;&lt;P&gt; MOVE OK_CODE+2 TO V_LINE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get (calculate) the record of internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INDEX_ITAB = TABLECONTROL-TOP_LINE + V_LINE - 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read the the table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE ITAB INDEX INDEX_ITAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call new screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SET SCREEN XXXX.&lt;/P&gt;&lt;P&gt;LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 15:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091486#M100826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T15:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091487#M100827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is defined in the main screen Gui status. I am puzzeled too as to why I get that error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways thanks for the helpful suggestion!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 15:42:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091487#M100827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T15:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091488#M100828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even if its defined , if it is disabled in PBO with statement SET PF-STATUS .... EXCLUDING ITAB. , you will still see the error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 15:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091488#M100828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T15:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091489#M100829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max/Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you define a column as pushbutton in the internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 15:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091489#M100829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T15:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091490#M100830</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;  In your graphical screen painter, just drag and drop a push button element on to your table control's column list, specify a name, fcode and give a header for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you are working with Alpha numeric screen painter,&lt;/P&gt;&lt;P&gt;  then first double click on the table control,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  go to control elements,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  click on button "New Table Column", give a name, press ENTER and then it will ask whether it is a push button or not and from that point onwards it is same as above..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Also, what sanjay said is quite possible that the fcode given for F2 function key is excluded while setting PF-STATUS. May be you should check that as well whether it is possible to remove it from the exlusion list (if it is done based upon certain conditions)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 15:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1091490#M100830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T15:53:28Z</dc:date>
    </item>
  </channel>
</rss>

