<?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: Search help with Two fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116760#M1186808</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;&lt;/P&gt;&lt;P&gt;If it is in screen level...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to declare the internal table which should be pass into F4IF-- Function module with your two fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Naveen Inuganti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2009 08:51:04 GMT</pubDate>
    <dc:creator>naveen_inuganti2</dc:creator>
    <dc:date>2009-02-02T08:51:04Z</dc:date>
    <item>
      <title>Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116759#M1186807</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;i want to create a search help(F4) for material based on two fields.&lt;/P&gt;&lt;P&gt;1. MAKT-MAKTX (40 characters)&lt;/P&gt;&lt;P&gt;2. MARA-NORMT (20 characters)&lt;/P&gt;&lt;P&gt;Please advice how to achieve this.&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>Mon, 02 Feb 2009 08:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116759#M1186807</guid>
      <dc:creator>former_member720692</dc:creator>
      <dc:date>2009-02-02T08:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116760#M1186808</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;&lt;/P&gt;&lt;P&gt;If it is in screen level...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to declare the internal table which should be pass into F4IF-- Function module with your two fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Naveen Inuganti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 08:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116760#M1186808</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2009-02-02T08:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116761#M1186809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if  there are 2parameters in selection screen. For e.g. matnr and werks.&lt;/P&gt;&lt;P&gt;then to create a search help(F4) for material based on two fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;STRONG&gt;Follow the psudo code below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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;regards&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 08:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116761#M1186809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T08:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116762#M1186810</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;To create search help for a field based on other fields follow this link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have any doubt let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 08:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116762#M1186810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T08:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116763#M1186811</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 which field u want to have search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my understanding of ur problem is right then the following code will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
constants: c_s type c value 'S',
           c_e type c value 'E',
           c_n type c value 'N',
           c_x type c value 'X',
           c_01 type i value '1',
           c_ass_name(10) type c value 'MATNRS',
           c_ass_sg_main type c value '*',
           c_a type c value 'A'.

selection-screen begin of block input with frame title text-000.
select-options:  it_matnr for wa_output-matnr no intervals.
parameters:      p_werks type marc-werks,
                 p_plgscn type tcx0l-plscn.
selection-screen end of block input .

initialization.

*  Initializing select-options variables

  gv_w_opt_list-name = c_a.
  gv_w_opt_list-options-eq = c_x.
  append gv_w_opt_list to gv_w_res-opt_list_tab.
  gv_w_ass-kind = c_a.
  gv_w_ass-name = c_ass_name.
  gv_w_ass-op_main = c_a.
  gv_w_ass-sg_main = c_ass_sg_main.
  append gv_w_ass to gv_w_res-ass_tab.

* It allows to restrict intervals for select-options in selection screen

  call function 'SELECT_OPTIONS_RESTRICT'
    exporting
      program                = sy-repid
      restriction            = gv_w_res
    exceptions
      too_late               = 1
      repeated               = 2
      selopt_without_options = 3
      selopt_without_signs   = 4
      invalid_sign           = 5
      empty_option_list      = 6
      invalid_kind           = 7
      repeated_kind_a        = 8
      others                 = 9.

  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno
           with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 08:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116763#M1186811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T08:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116764#M1186812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you create a search help in se11 ..&lt;/P&gt;&lt;P&gt;as zsearch,.&lt;/P&gt;&lt;P&gt;here you write &lt;/P&gt;&lt;P&gt;in selection method ===name of your table used for input.&lt;/P&gt;&lt;P&gt;in parameter&lt;/P&gt;&lt;P&gt;there are two type parameters&lt;/P&gt;&lt;P&gt;import and export&lt;/P&gt;&lt;P&gt;in import you take fields which are used for selection&lt;/P&gt;&lt;P&gt;and in export you take the field to display input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 09:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116764#M1186812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T09:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116765#M1186813</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;thanx for quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a search help for MM01/MM02/MM03.&lt;/P&gt;&lt;P&gt;MAKTX  belongs to table MAKT and NORMT belongs to MARA, and i've to concatenate these fields for the same search help.&lt;/P&gt;&lt;P&gt;PLease help me in this regard and please suggest me the HELP EXIT, in which i can code for the further requirments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 09:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116765#M1186813</guid>
      <dc:creator>former_member720692</dc:creator>
      <dc:date>2009-02-02T09:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116766#M1186814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a search help using SE11 and assign the same in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
goto se11 - give ZHELP as search help - create.

selection method - mara
dialog type - display values immediately

add these fields

parameter lpos rpos
MATNR 1 1
MAKTX  2 2
NORMT 3  3

also check imp ,exp parameters for these and activate.

now in your program use this.

select-options: matnr for mara-matnr matchcode object ZHELP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 09:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116766#M1186814</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-02-02T09:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116767#M1186815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi if you want to take data from two table then create a view for that..&lt;/P&gt;&lt;P&gt;nad use this view in your selection method&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 09:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116767#M1186815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T09:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search help with Two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116768#M1186816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it to work by reading the dynpro values with FM DYNP_VALUES_READ.  see the example in the following llink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="634760"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 11:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-with-two-fields/m-p/5116768#M1186816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T11:36:11Z</dc:date>
    </item>
  </channel>
</rss>

