<?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 Problem in Search help in Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175826#M998280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Table control.In that i am using F4 help.the F4 Value should be based o the &lt;/P&gt;&lt;P&gt;another field in the Table control.how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 12:01:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-18T12:01:54Z</dc:date>
    <item>
      <title>Problem in Search help in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175826#M998280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Table control.In that i am using F4 help.the F4 Value should be based o the &lt;/P&gt;&lt;P&gt;another field in the Table control.how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 12:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175826#M998280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T12:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Search help in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175827#M998281</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;  You can use the PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;  FIELD &amp;lt;f&amp;gt; MODULE &amp;lt;mod&amp;gt;. statement for getting the f4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to call this statements inside your table control loop.&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;Veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 12:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175827#M998281</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2008-07-18T12:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Search help in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175828#M998282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Value should be based o the&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;another field&lt;/EM&gt;in the Process on Value Request &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You capture the record using the GET CURSOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From SAP help &lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... LINE lin &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the screen element on which the cursor is positioned is within a table control or a step loop, the addition assigns the number of the row of the table control or the group of the step loop to the LINE data object lin. Otherwise, lin is set to 0. For lin, a variable of the type i is expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the Line, read the record, you get the value ( what ever value you want ) and now get the F4 values  and display .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 12:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175828#M998282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T12:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Search help in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175829#M998283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar requirement. In this table control the values for the F4 help for the shipping conditions depend on the vendor the user selects in the first column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS ON VALUE-REQUEST.
  FIELD gs_pod_screen-ship_cond
    MODULE f4_ship_cond.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE f4_ship_cond INPUT.

  PERFORM f4_pod_shipping_conditions.

ENDMODULE.                 " f4_ship_cond  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM f4_pod_shipping_conditions .

  DATA: lt_return TYPE TABLE OF ddshretval,
        ls_return TYPE ddshretval,
        lv_line   TYPE i,
        lv_vendor TYPE bu_partner,
        ls_shlp   TYPE shlp_descr,
        ls_selopt TYPE ddshselopt,
        ls_if     TYPE ddshiface,
        lv_c(132) TYPE c.

* where on the table control did we hit F4?
  GET CURSOR LINE lv_line.
  READ TABLE gt_pod_sales
       INTO gs_pod_screen
       INDEX lv_line
       TRANSPORTING vendor.

  CHECK NOT gs_pod_screen-vendor IS INITIAL.

* the possible values always depend on the vendor =&amp;gt; build it every time
* get the search help parameters first
  CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
    EXPORTING
      shlpname = gc_shlp_shipcon
    IMPORTING
      shlp     = ls_shlp.

* now we have to set restrictions based on the vendor
  CLEAR ls_selopt.
  ls_selopt-shlpname  = gc_shlp_shipcon.
  ls_selopt-shlpfield = gc_name_vendor.
  ls_selopt-sign      = gc_i.
  ls_selopt-option    = gc_eq.
  ls_selopt-low       = gs_pod_screen-vendor.
  APPEND ls_selopt TO ls_shlp-selopt.
* set the field for the output
  READ TABLE ls_shlp-interface INTO ls_if
       WITH KEY shlpfield = gc_name_ship_cond.
  IF sy-subrc EQ 0.
    ls_if-valfield = gc_field_shipcon.
    MODIFY ls_shlp-interface FROM ls_if
           INDEX sy-tabix TRANSPORTING valfield.
  ENDIF.

* pass in the base date and call the search help
  CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
    EXPORTING
      shlp                = ls_shlp
    TABLES
      return_values       = lt_return.

  READ TABLE lt_return INTO ls_return INDEX 1.
  IF sy-subrc EQ 0.
    gs_pod_screen-ship_cond = ls_return-fieldval.
  ELSE.
    CLEAR gs_pod_screen-ship_cond.
  ENDIF.

* transfer the value
  MODIFY gt_pod_sales
         FROM gs_pod_screen
         INDEX lv_line
         TRANSPORTING ship_cond.

ENDFORM.                    " f4_shipping_conditions
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 12:15:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-search-help-in-table-control/m-p/4175829#M998283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T12:15:29Z</dc:date>
    </item>
  </channel>
</rss>

