<?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: F4 Help with restricted values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857921#M670103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You create a Z table with MATNR and MAKTX fields and write a small program to fetch the first 100 values from MARA and movr them to this Z table&lt;/P&gt;&lt;P&gt;Now create a search help(elementary) for this field MATNR with this Z table &lt;/P&gt;&lt;P&gt;and add that search help name to the field MATNR.&lt;/P&gt;&lt;P&gt;If you won't give any search help by default it takes the std search help from MARA and uses it.&lt;/P&gt;&lt;P&gt;This will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 17:35:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T17:35:17Z</dc:date>
    <item>
      <title>F4 Help with restricted values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857920#M670102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have field(mara-matnr) in selection screen.(F4IF_FIELD_VALUE_REQUEST).&lt;/P&gt;&lt;P&gt;Here it selects all values from that database table(mara) and displays in popup screen on F4 .But i want only first 100 values in popup screen.&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 16:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857920#M670102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T16:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help with restricted values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857921#M670103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You create a Z table with MATNR and MAKTX fields and write a small program to fetch the first 100 values from MARA and movr them to this Z table&lt;/P&gt;&lt;P&gt;Now create a search help(elementary) for this field MATNR with this Z table &lt;/P&gt;&lt;P&gt;and add that search help name to the field MATNR.&lt;/P&gt;&lt;P&gt;If you won't give any search help by default it takes the std search help from MARA and uses it.&lt;/P&gt;&lt;P&gt;This will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 17:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857921#M670103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T17:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help with restricted values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857922#M670104</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;Why can't you use the standard sap search help MAT1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_MATNR LIKE MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 17:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857922#M670104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T17:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help with restricted values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857923#M670105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this way and you can restrict the number of hits to 100....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Report ztest.

TABLES: mara.

types: BEGIN OF i_matnr,
        matnr type mara-matnr,
       END OF i_matnr.
DATA: i_matnr TYPE STANDARD TABLE OF i_matnr.

SELECT-OPTIONS: s_matnr FOR mara-matnr.

AT SELECTION-SCREEN on VALUE-REQUEST FOR s_matnr-low.

  Refresh: i_matnr[].
  SELECT matnr FROM mara into TABLE i_matnr UP TO 100 ROWS.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
* DDIC_STRUCTURE = ' '
    retfield = 'MATNR'
* PVALKEY = ' '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = 'S_MATNR-LOW'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
    value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
    TABLES
    value_tab = i_matnr
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING =
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    OTHERS = 3.

AT SELECTION-SCREEN on VALUE-REQUEST FOR s_matnr-high.

  Refresh: i_matnr[].
  SELECT matnr FROM mara into TABLE i_matnr UP TO 100 ROWS.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
* DDIC_STRUCTURE = ' '
    retfield = 'MATNR'
* PVALKEY = ' '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = 'S_MATNR-LOW'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
    value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
    TABLES
    value_tab = i_matnr
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING =
    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 this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 18:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857923#M670105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T18:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help with restricted values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857924#M670106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Narendran says, why not use the default search help for MARA-MATNR... then your user should see a parameter screen with one of the options being the number of entries to return (default 500)...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 00:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-with-restricted-values/m-p/2857924#M670106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T00:55:30Z</dc:date>
    </item>
  </channel>
</rss>

