<?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 f4 filtering problem in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677101#M1575688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I just want to filtering order numbers by using order type.In my structure I use order number,order material number,batch number and order type.Here is the code below but I get the all records when I press the f4 help in order number field on selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data :gt_itab type table of zmystruct with header line.&lt;/STRONG&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;STRONG&gt;SELECT afko~aufnr into corresponding fields of table gt_itab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;FROM aufk inner join afko on aufk&lt;SUB&gt;aufnr = afko&lt;/SUB&gt;aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;WHERE aufk~auart = 'MI03'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I tried this also..Maybe works..:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;SELECT afpo&lt;SUB&gt;aufnr  aufk&lt;/SUB&gt;auart afpo&lt;SUB&gt;matnr afpo&lt;/SUB&gt;charg&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF TABLE gt_itab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;FROM afpo inner join aufk on afpo&lt;SUB&gt;aufnr = aufk&lt;/SUB&gt;aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;WHERE p_aufnr = gt_itab-aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;and   aufk~auart = 'MI03'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but no result.All the records return again...??&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ozcandemirbilek on Feb 10, 2011 9:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Feb 2011 08:38:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-10T08:38:50Z</dc:date>
    <item>
      <title>f4 filtering problem in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677101#M1575688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I just want to filtering order numbers by using order type.In my structure I use order number,order material number,batch number and order type.Here is the code below but I get the all records when I press the f4 help in order number field on selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data :gt_itab type table of zmystruct with header line.&lt;/STRONG&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;STRONG&gt;SELECT afko~aufnr into corresponding fields of table gt_itab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;FROM aufk inner join afko on aufk&lt;SUB&gt;aufnr = afko&lt;/SUB&gt;aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;WHERE aufk~auart = 'MI03'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I tried this also..Maybe works..:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;SELECT afpo&lt;SUB&gt;aufnr  aufk&lt;/SUB&gt;auart afpo&lt;SUB&gt;matnr afpo&lt;/SUB&gt;charg&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF TABLE gt_itab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;FROM afpo inner join aufk on afpo&lt;SUB&gt;aufnr = aufk&lt;/SUB&gt;aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;WHERE p_aufnr = gt_itab-aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;and   aufk~auart = 'MI03'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but no result.All the records return again...??&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ozcandemirbilek on Feb 10, 2011 9:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 08:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677101#M1575688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T08:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: f4 filtering problem in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677102#M1575689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  If you need your own custom F4 then you need to code the logic inside an event. If it is a report then use 'AT SELECTION-SCREEN ON VALUE-REQUEST FOR &amp;lt;screen field name&amp;gt; ' else if it is a module pool, then use 'PROCESS ON VALUE-REQUEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to use the FM 'F4IF_INT_TABLE_VALUE_REQUEST' to show the relevant result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Pradipta Kumar Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677102#M1575689</guid>
      <dc:creator>pradiptakumar_mishra</dc:creator>
      <dc:date>2011-02-10T12:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: f4 filtering problem in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677103#M1575690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradipta Kumar Mishra,&lt;/P&gt;&lt;P&gt;Firstly thank you so much for your answer.I used my custom f4 help function  but on selection screen I am getting default f4 help.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;form f4_help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;DATA: BEGIN OF itab_aufk OCCURS 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;aufnr like afpo-aufnr,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;auart like aufk-auart,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;END OF itab_aufk.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA it_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT afpo~aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM afpo INNER JOIN aufk on afpo&lt;SUB&gt;aufnr = aufk&lt;/SUB&gt;aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INTO CORRESPONDING FIELDS OF itab_aufk&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE aufk~auart eq 'MI03''.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND itab_aufk.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDSELECT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SORT itab_aufk BY aufnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLEAR itab_aufk.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;retfield     = 'AUFNR'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;window_title = 'order master data'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;value_org    = 'S'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"DISPLAY     = 'AUFNR'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DYNPROG      = SY-REPID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DYNPNR       = SY-DYNNR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DYNPROFIELD  = 'AUFNR'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;value_tab    = itab_aufk&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;return_tab   = it_return&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXCEPTIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;parameter_error = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;no_values_found = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OTHERS = 3.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLEAR itab_aufk.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ TABLE it_return INDEX 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab_aufk-aufnr = it_return-aufnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ TABLE itab_aufk WITH KEY  itab_aufk-aufnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if sy-subrc eq 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REFRESH itab_aufk. CLEAR: itab_aufk.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDFORM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas how can I use my custom f4 help?.I mean that,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;at selection-screen.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;"if sscrfields-ucomm eq '?F4..keypress..?'"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there any way like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much and regards.&lt;/P&gt;&lt;P&gt;ZCN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ozcandemirbilek on Feb 10, 2011 2:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 13:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677103#M1575690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T13:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: f4 filtering problem in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677104#M1575691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am curious why you need your custom F4 help? As far as I can see there are search helps to get orders by order type... You can use either of the below search helps (collective or individual)... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select-options so_order FOR AUFK-AUFNR MATCHCODE OBJECT CO_SH_PRODORD_AUART .
select-options so_order FOR AUFK-AUFNR MATCHCODE OBJECT CO_SH_PRODORD_ALL .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there are multiple threads in SDN, if you are still interested in doing it thru custom F4 help.. search with 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 14:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677104#M1575691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T14:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: f4 filtering problem in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677105#M1575692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;Thanks for your answer.When I am using default f4 help,I got so much datas.I need the select criteria which returns MI03 order type for the performance.By the way your opinion very useful.It helped me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 15:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-filtering-problem-in-selection-screen/m-p/7677105#M1575692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T15:14:44Z</dc:date>
    </item>
  </channel>
</rss>

