<?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: Get value from table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296689#M501499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      You can call standard collective search help [say for Eg:&amp;lt;b&amp;gt;MAT1&amp;lt;/b&amp;gt;] through Process on value-request event and set the paramenter id of Plant field before calling the funtion module &amp;lt;b&amp;gt;'HELP_START'&amp;lt;/b&amp;gt;.Then we can get the materials specific to the PLANT in the corresponding row of the TABLE CONTROL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get which row of the table control is clicked use &amp;lt;b&amp;gt;Get Cursor Line&amp;lt;/b&amp;gt; Statement as i mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flow logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD x_marc-matnr MODULE mat_shelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE mat_shelp INPUT.&lt;/P&gt;&lt;P&gt;  DATA:v_help_info LIKE help_info,n TYPE i,&lt;/P&gt;&lt;P&gt;   it_dyselect LIKE TABLE OF dselc WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;    it_dyvaltab LIKE TABLE OF dval WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH it_dyselect.&lt;/P&gt;&lt;P&gt;  it_dyselect-fldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;  it_dyselect-dyfldname = 'SY-MANDT'.&lt;/P&gt;&lt;P&gt;  APPEND it_dyselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_dyselect-fldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;  it_dyselect-dyfldname = 'X_MARC-MATNR'.&lt;/P&gt;&lt;P&gt;  APPEND it_dyselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_help_info-call	=	'M'.&lt;/P&gt;&lt;P&gt;  v_help_info-object	=	'F'.&lt;/P&gt;&lt;P&gt;  v_help_info-program	= 	sy-repid.    "'ZVIG_MOD_TABLE_CONTROL_1'.&lt;/P&gt;&lt;P&gt;  v_help_info-dynpro	=	sy-dynnr.    "'9001'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; v_help_info-tabname	= 	'MARC'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  v_help_info-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;  v_help_info-fieldtype	=  'CHAR'.&lt;/P&gt;&lt;P&gt;  v_help_info-keyword   =   'MATNR'.&lt;/P&gt;&lt;P&gt;  v_help_info-fieldlng = 18.&lt;/P&gt;&lt;P&gt;  v_help_info-fldvalue = ''.&lt;/P&gt;&lt;P&gt;  v_help_info-mcobj = 'MAT1'.&lt;/P&gt;&lt;P&gt;  v_help_info-spras = 'E'.&lt;/P&gt;&lt;P&gt;  v_help_info-menufunct = 'HC'.&lt;/P&gt;&lt;P&gt;  v_help_info-title =	'SAP'.&lt;/P&gt;&lt;P&gt;  v_help_info-dynprofld = 'X_MARC-MATNR'.     &amp;lt;b&amp;gt;----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; Give ur screen field name&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  v_help_info-tcode	= 	sy-tcode.       "'ZTC1'.&lt;/P&gt;&lt;P&gt;  v_help_info-pfkey	= 	'MEN'.&lt;/P&gt;&lt;P&gt;  v_help_info-docuid	=	'FE'.&lt;/P&gt;&lt;P&gt;  v_help_info-pov	=	'N'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; v_help_info-curow	=   '2'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; v_help_info-cucol	=  '1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  v_help_info-dynpprog = sy-repid.       " ZVIG_MOD_TABLE_CONTROL_1&lt;/P&gt;&lt;P&gt;  v_help_info-stepl	=   '1'.&lt;/P&gt;&lt;P&gt;  v_help_info-selectart = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET CURSOR LINE n.&lt;/P&gt;&lt;P&gt;  READ TABLE it_marc INTO x_marc INDEX n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PARAMETER ID 'WRK' FIELD  X_MARC-WERKS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HELP_START'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      help_infos         = v_help_info&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpselect         = it_dyselect&lt;/P&gt;&lt;P&gt;      dynpvaluetab       = it_dyvaltab           .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " mat_shelp  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 17:08:26 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2007-05-31T17:08:26Z</dc:date>
    <item>
      <title>Get value from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296685#M501495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, im having a table control with field Plant and Material. I have defaulted the &amp;lt;b&amp;gt;std search help&amp;lt;/b&amp;gt; to field &amp;lt;u&amp;gt;Material&amp;lt;/u&amp;gt; at the screen painter. Meaning system will call up the search help for Material once i press F4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the search help for field Material is a collective search help, and there is a &amp;lt;u&amp;gt;Plant&amp;lt;/u&amp;gt; field available for Material filtering. Thus i may need to get the Plant's value from of same row of the  table control to Populate into the Material's search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried to create a new module under the LOOP...ENDLOOP at PAI's flow logic. And try to use parameter id to set the value for plant, purpose is to populate it to Material's search help when i click F4 on material field. The problem is the new module that i coded under LOOP...ENDLOOP will never trigger when i click F4. Because there is NO event to trigger my module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than the above, i tried to code it under POV. But it doesn't work as well, because there is more than 1 record under table control and i can not determine the during runtime which row of F4 for material being click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please comment on this above on how to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 03:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296685#M501495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T03:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296686#M501496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your opinion for the above problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 14:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296686#M501496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T14:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296687#M501497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can this be coded under the search help exit option... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 14:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296687#M501497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296688#M501498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to solve this probelm....inside the POV....call the following function-module.&lt;/P&gt;&lt;P&gt;after the f4if_...FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"dynp_values_update"&lt;/P&gt;&lt;P&gt;in the FM in tables section....u hve tp pass a internal table of type dynpread....in this dynpread.....there is a field "stepl" to which pass the value current_line.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u can then now fill the value for a partcular row in table control&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 16:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296688#M501498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T16:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296689#M501499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      You can call standard collective search help [say for Eg:&amp;lt;b&amp;gt;MAT1&amp;lt;/b&amp;gt;] through Process on value-request event and set the paramenter id of Plant field before calling the funtion module &amp;lt;b&amp;gt;'HELP_START'&amp;lt;/b&amp;gt;.Then we can get the materials specific to the PLANT in the corresponding row of the TABLE CONTROL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get which row of the table control is clicked use &amp;lt;b&amp;gt;Get Cursor Line&amp;lt;/b&amp;gt; Statement as i mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flow logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD x_marc-matnr MODULE mat_shelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE mat_shelp INPUT.&lt;/P&gt;&lt;P&gt;  DATA:v_help_info LIKE help_info,n TYPE i,&lt;/P&gt;&lt;P&gt;   it_dyselect LIKE TABLE OF dselc WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;    it_dyvaltab LIKE TABLE OF dval WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH it_dyselect.&lt;/P&gt;&lt;P&gt;  it_dyselect-fldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;  it_dyselect-dyfldname = 'SY-MANDT'.&lt;/P&gt;&lt;P&gt;  APPEND it_dyselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_dyselect-fldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;  it_dyselect-dyfldname = 'X_MARC-MATNR'.&lt;/P&gt;&lt;P&gt;  APPEND it_dyselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_help_info-call	=	'M'.&lt;/P&gt;&lt;P&gt;  v_help_info-object	=	'F'.&lt;/P&gt;&lt;P&gt;  v_help_info-program	= 	sy-repid.    "'ZVIG_MOD_TABLE_CONTROL_1'.&lt;/P&gt;&lt;P&gt;  v_help_info-dynpro	=	sy-dynnr.    "'9001'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; v_help_info-tabname	= 	'MARC'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  v_help_info-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;  v_help_info-fieldtype	=  'CHAR'.&lt;/P&gt;&lt;P&gt;  v_help_info-keyword   =   'MATNR'.&lt;/P&gt;&lt;P&gt;  v_help_info-fieldlng = 18.&lt;/P&gt;&lt;P&gt;  v_help_info-fldvalue = ''.&lt;/P&gt;&lt;P&gt;  v_help_info-mcobj = 'MAT1'.&lt;/P&gt;&lt;P&gt;  v_help_info-spras = 'E'.&lt;/P&gt;&lt;P&gt;  v_help_info-menufunct = 'HC'.&lt;/P&gt;&lt;P&gt;  v_help_info-title =	'SAP'.&lt;/P&gt;&lt;P&gt;  v_help_info-dynprofld = 'X_MARC-MATNR'.     &amp;lt;b&amp;gt;----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; Give ur screen field name&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  v_help_info-tcode	= 	sy-tcode.       "'ZTC1'.&lt;/P&gt;&lt;P&gt;  v_help_info-pfkey	= 	'MEN'.&lt;/P&gt;&lt;P&gt;  v_help_info-docuid	=	'FE'.&lt;/P&gt;&lt;P&gt;  v_help_info-pov	=	'N'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; v_help_info-curow	=   '2'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; v_help_info-cucol	=  '1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  v_help_info-dynpprog = sy-repid.       " ZVIG_MOD_TABLE_CONTROL_1&lt;/P&gt;&lt;P&gt;  v_help_info-stepl	=   '1'.&lt;/P&gt;&lt;P&gt;  v_help_info-selectart = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET CURSOR LINE n.&lt;/P&gt;&lt;P&gt;  READ TABLE it_marc INTO x_marc INDEX n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PARAMETER ID 'WRK' FIELD  X_MARC-WERKS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HELP_START'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      help_infos         = v_help_info&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpselect         = it_dyselect&lt;/P&gt;&lt;P&gt;      dynpvaluetab       = it_dyvaltab           .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " mat_shelp  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 17:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-table-control/m-p/2296689#M501499</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-05-31T17:08:26Z</dc:date>
    </item>
  </channel>
</rss>

