<?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 Help! Search-hellp with specific condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-search-hellp-with-specific-condition/m-p/4958862#M1156094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest some inputs on the below mentioned requirement.&lt;/P&gt;&lt;P&gt;requirement:&lt;/P&gt;&lt;P&gt;F4 help to be provided for the field HRP1000-SHORT when HRP1000-OTYPE='O' in the transaction pp01 &amp;amp; ppome.&lt;/P&gt;&lt;P&gt;Values of F4 help are to be populated from another Custom table field1, where field2 in the custom table having value 'x'.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;Field1 field2&lt;/P&gt;&lt;P&gt;Abc X&lt;/P&gt;&lt;P&gt;Def&lt;/P&gt;&lt;P&gt;Xyz X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The F4 should be populated with Abc, Xyz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2008 08:43:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-09T08:43:14Z</dc:date>
    <item>
      <title>Help! Search-hellp with specific condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-search-hellp-with-specific-condition/m-p/4958862#M1156094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest some inputs on the below mentioned requirement.&lt;/P&gt;&lt;P&gt;requirement:&lt;/P&gt;&lt;P&gt;F4 help to be provided for the field HRP1000-SHORT when HRP1000-OTYPE='O' in the transaction pp01 &amp;amp; ppome.&lt;/P&gt;&lt;P&gt;Values of F4 help are to be populated from another Custom table field1, where field2 in the custom table having value 'x'.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;Field1 field2&lt;/P&gt;&lt;P&gt;Abc X&lt;/P&gt;&lt;P&gt;Def&lt;/P&gt;&lt;P&gt;Xyz X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The F4 should be populated with Abc, Xyz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 08:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-search-hellp-with-specific-condition/m-p/4958862#M1156094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T08:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Search-hellp with specific condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-search-hellp-with-specific-condition/m-p/4958863#M1156095</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 create a search help exit using a function module . copy F.M:  F4IF_SHLP_EXIT_EXAMPLE &lt;/P&gt;&lt;P&gt;into ur z function module and edit the code as per ur query. &lt;/P&gt;&lt;P&gt;you will find the comments in F.M code to help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details pls visit: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vishal Kapoor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 08:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-search-hellp-with-specific-condition/m-p/4958863#M1156095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T08:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Search-hellp with specific condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-search-hellp-with-specific-condition/m-p/4958864#M1156096</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;let me expalin you with simple example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if requirement is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2parameters in selection screen. For e.g. matnr and werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am giving matnr then respect to that matnr i should get only those plant in F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR werks.

select the werks based on plant in internal.table 
use f.m

F4IF_INT_TABLE_VALUE_REQUEST.
and pass the i.tab here in 

tables
value_t = i.tab&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                               Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Follow the psudo code below.
Note: it_matnr has only single field MATNR.
**--- Return table to handle selected field in F4 help ---**
data: it_return like ddshretval occurs 0 with header line.
 
parameters: p_matnr type marc-matnr,
                  p_werks type marc-werks.
 
at selection-screen on value-request for p_repnam.
 
  select matnr
         from marc
         into table it_matnr
         where werks eq p_werks.
 
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield         = 'OBJ_NAME'
      dynpprog         = sy-cprog
      dynpnr           = sy-dynnr
      value_org        = 'S'
      callback_program = sy-cprog
    tables
      value_tab        = it_matnr
      return_tab       = it_return
    exceptions
      parameter_error  = 1
      no_values_found  = 2.
 
  if sy-subrc eq 0.
    loop at it_return.
      clear p_repnam.
      p_repnam = it_return-fieldval.
    endloop.
 
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 09:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-search-hellp-with-specific-condition/m-p/4958864#M1156096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T09:27:24Z</dc:date>
    </item>
  </channel>
</rss>

