<?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: Help values - Selection Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859566#M1136253</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;Here are some other options you may want to consider:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you don't mind getting a popup (with the plant value from your P_WERKS defaulted in the popup) during your F4 on MATNR, then you can just code your parameters as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parameters: 
P_WERKS LIKE MARC-WERKS,
P_MATNR LIKE MARC-MATNR.    "Notice that the MARC was added (your code did not have it)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The popup is sent because search help MAT1W is defined using the setting "Dialog with value restriction."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. To get around the MAT1W dialog issue, you can use search help H_MARC which uses "Display values immediately."  One way to do this is to create your own structure using SE11 with just two fields, WERKS (type WERKS_D) and MATNR (type MATNR).  Override the search help for field MATNR so that H_MARC is used instead of MAT1 (you can do this via the Search Help for Field button).  Then code your parameters as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parameters: 
P_WERKS LIKE ZMYSTRUC-WERKS,
P_MATNR LIKE ZMYSTRUC-MATNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  Try to find an existing standard structure or table that gives you a similar relationship as the one defined in option 2.  I checked for the obvious possible structures/tables, but I was unable to find an existing one that worked correctly without getting the popup described in option 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2008 19:27:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-20T19:27:07Z</dc:date>
    <item>
      <title>Help values - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859562#M1136249</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 have a selection screen as below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parameters: 
P_WERKS LIKE MARC-WERKS,
P_MATNR LIKE  MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now I require help for materail when Press F4, the materail should be only that belongs to the Plant entered in the selection screen.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Helpful answers are surely rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 13:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859562#M1136249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T13:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help values - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859563#M1136250</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;Refer this thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6455343"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Use the FM  'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 13:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859563#M1136250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T13:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help values - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859564#M1136251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module: &lt;/P&gt;&lt;P&gt;at selection-screen on value-request for matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First use the FM DYNP_READ_VALUES.&lt;/P&gt;&lt;P&gt;So that u will get the value in Ware house field.&lt;/P&gt;&lt;P&gt;When U are writing the select Query for Matnr give This ware house field in &lt;/P&gt;&lt;P&gt;Where Condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that only Corresponding values will come into itab.&lt;/P&gt;&lt;P&gt;Pass this itab to Ur regular fm F4IF_INT_TABLE_VALUE_REQUEST.&lt;/P&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;P&gt;&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;Shalini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 14:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859564#M1136251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help values - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859565#M1136252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the values of matnr based on the p_werks in an internal table and then pass that internal table in the following function module:&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 = fieldname&lt;/P&gt;&lt;P&gt;              dynpprog = ws_repid&lt;/P&gt;&lt;P&gt;              dynpnr = sy-dynnr&lt;/P&gt;&lt;P&gt;              value_org = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;             value_tab = v_tab&lt;/P&gt;&lt;P&gt;             return_tab = v_return&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;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 14:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859565#M1136252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T14:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help values - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859566#M1136253</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;Here are some other options you may want to consider:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you don't mind getting a popup (with the plant value from your P_WERKS defaulted in the popup) during your F4 on MATNR, then you can just code your parameters as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parameters: 
P_WERKS LIKE MARC-WERKS,
P_MATNR LIKE MARC-MATNR.    "Notice that the MARC was added (your code did not have it)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The popup is sent because search help MAT1W is defined using the setting "Dialog with value restriction."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. To get around the MAT1W dialog issue, you can use search help H_MARC which uses "Display values immediately."  One way to do this is to create your own structure using SE11 with just two fields, WERKS (type WERKS_D) and MATNR (type MATNR).  Override the search help for field MATNR so that H_MARC is used instead of MAT1 (you can do this via the Search Help for Field button).  Then code your parameters as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parameters: 
P_WERKS LIKE ZMYSTRUC-WERKS,
P_MATNR LIKE ZMYSTRUC-MATNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  Try to find an existing standard structure or table that gives you a similar relationship as the one defined in option 2.  I checked for the obvious possible structures/tables, but I was unable to find an existing one that worked correctly without getting the popup described in option 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859566#M1136253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T19:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help values - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859567#M1136254</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;   Do this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

     *internal table made to populate the value of werks when pressing f4
DATA: BEGIN OF IT_FINAL1 OCCURS 0,
      WERKS TYPE ZMARC-WERKS,
      END OF IT_FINAL1.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*   DDIC_STRUCTURE         = ' '
      RETFIELD               = 'WERKS'   "field of internal table
     VALUE_ORG              = 'S'
    TABLES
      VALUE_TAB              = IT_FINAL1
*   FIELD_TAB              =
     RETURN_TAB             = IT_RETURN
            .
  WRITE IT_RETURN-FIELDVAL TO P_WERKS.
  REFRESH IT_FINAL1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 22:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859567#M1136254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T22:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help values - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859568#M1136255</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;First get the plant from the screen,&lt;/P&gt;&lt;P&gt;Then according to the palnt you get , do the select statment.&lt;/P&gt;&lt;P&gt;Last using FM: F4IF_INT_TABLE_VALUE_REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use dialog program or general program?&lt;/P&gt;&lt;P&gt;If you use dialog program, you can use POV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;process on value-request.
  field p_matnr  module mod_get_F4.

module mod_get_F4.
select matnr from MARC into table it_matnr
where WERKS = P_WERKS .

 call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield              = 'MATNR'
     dynpprog               = 'ZTEST'          " program name
     dynpnr                 = '1000'             " screen number
     dynprofield            = 'P_MATNR'
     VALUE_ORG              = 'S'
    tables
      value_tab              = it_matnr
 exceptions
   parameter_error        = 1
   no_values_found        = 2
   others                 = 3
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use general program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen on value-request for p_matnr.

select matnr from MARC into table it_matnr
where WERKS = P_WERKS .

 call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield              = 'MATNR'
     dynpprog               = 'ZTEST_C'          " program name
     dynpnr                 = '1000'             " screen number
     dynprofield            = 'P_MATNR'
     VALUE_ORG              = 'S'
    tables
      value_tab              = it_matnr
 exceptions
   parameter_error        = 1
   no_values_found        = 2
   others                 = 3
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris Gu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 04:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859568#M1136255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T04:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help values - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859569#M1136256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go the selection screen layout and assign the SEARCH HELP MAT1&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;to the parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 05:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-values-selection-screen/m-p/4859569#M1136256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T05:06:55Z</dc:date>
    </item>
  </channel>
</rss>

