<?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: Set a parameter value using Search help exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836306#M1472391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailly,&lt;/P&gt;&lt;P&gt;I don#t know if that will be the best option for you, but you can make use of the abap program event at value request for your parameter_id.&lt;/P&gt;&lt;P&gt;What you need is to insert a similar code like the one below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_param&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select fielda fieldb from storage bin table into gi_warehouse_bin&lt;/P&gt;&lt;P&gt;             where  warehouse = warehouse parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from gi_zzdez comparing all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     retfield               = space&lt;/P&gt;&lt;P&gt;     dynpprog               = 'REPORT_NAME'&lt;/P&gt;&lt;P&gt;     dynpnr                 = '1000'&lt;/P&gt;&lt;P&gt;     dynprofield            = 'P_BIN'&lt;/P&gt;&lt;P&gt;     window_title           = 'Text'&lt;/P&gt;&lt;P&gt;     value_org              = 'S'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab              = gi_warehouse_bin&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     parameter_error        = 1&lt;/P&gt;&lt;P&gt;     no_values_found        = 2&lt;/P&gt;&lt;P&gt;     others                 = 3&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Florin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Apr 2010 12:45:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-20T12:45:09Z</dc:date>
    <item>
      <title>Set a parameter value using Search help exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836304#M1472389</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 want a search help such as If I enter a warehouse number on my screen then search help for storage bins should have that warehouse number populated in selection dialog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess i have to write some code in search help exit if CALLCONTROL-STEP = 'PRESEL'.&lt;/P&gt;&lt;P&gt;But I am not able to set the warehouse value to parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any one have done something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Shailly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 11:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836304#M1472389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set a parameter value using Search help exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836305#M1472390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, you should do like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

"in search help exit function
  DATA wa_shlp_selopt LIKE LINE OF shlp-selopt.

  "change default value before dialog box with value selection appears
  IF callcontrol-step = 'PRESEL'.
    wa_shlp_selopt-shlpname  = 'TRDIR'.
    wa_shlp_selopt-shlpfield = 'NAME'.
    wa_shlp_selopt-sign      = 'I'.
    wa_shlp_selopt-option    = 'CP'.
    wa_shlp_selopt-low       = 'Z*'.
    APPEND wa_shlp_selopt TO shlp-selopt.
    wa_shlp_selopt-shlpname  = 'TRDIR'.
    wa_shlp_selopt-shlpfield = 'NAME'.
    wa_shlp_selopt-sign      = 'I'.
    wa_shlp_selopt-option    = 'CP'.
    wa_shlp_selopt-low       = 'Y*'.
    APPEND wa_shlp_selopt TO shlp-selopt.

    "skip the dialog box
    callcontrol-step = 'SELECT'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 12:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836305#M1472390</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-04-20T12:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set a parameter value using Search help exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836306#M1472391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailly,&lt;/P&gt;&lt;P&gt;I don#t know if that will be the best option for you, but you can make use of the abap program event at value request for your parameter_id.&lt;/P&gt;&lt;P&gt;What you need is to insert a similar code like the one below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_param&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select fielda fieldb from storage bin table into gi_warehouse_bin&lt;/P&gt;&lt;P&gt;             where  warehouse = warehouse parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from gi_zzdez comparing all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     retfield               = space&lt;/P&gt;&lt;P&gt;     dynpprog               = 'REPORT_NAME'&lt;/P&gt;&lt;P&gt;     dynpnr                 = '1000'&lt;/P&gt;&lt;P&gt;     dynprofield            = 'P_BIN'&lt;/P&gt;&lt;P&gt;     window_title           = 'Text'&lt;/P&gt;&lt;P&gt;     value_org              = 'S'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab              = gi_warehouse_bin&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     parameter_error        = 1&lt;/P&gt;&lt;P&gt;     no_values_found        = 2&lt;/P&gt;&lt;P&gt;     others                 = 3&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Florin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 12:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836306#M1472391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T12:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set a parameter value using Search help exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836307#M1472392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. Problem is solved! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 12:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-parameter-value-using-search-help-exit/m-p/6836307#M1472392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T12:57:35Z</dc:date>
    </item>
  </channel>
</rss>

