<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519364#M1261655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select sernr from equi
                     into table it_sernr
                     where matnr in s_matr.  "select option.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use the FM F4IF_INT_TABLE_VALUE_REQUEST  at the AT SELECTION-SCREEN S_SERNR-LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2009 11:42:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-22T11:42:43Z</dc:date>
    <item>
      <title>search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519359#M1261650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am creating a selection screen with 2 fileds - MATNR and SERNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created a search help for MATNR &lt;/P&gt;&lt;P&gt;and i want that the second search help for SERNR will display only the sernr that belong to the matnr i chosed ( i want to get the sernr depend to the matnr i have entered ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AMI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519359#M1261650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T11:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519360#M1261651</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;Get all the values for the selected MATNR and store in an internal table .&lt;/P&gt;&lt;P&gt;Then use FM F4_INT_VALUE_REQUEST to provide search help and pass that internal tabel in this FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519360#M1261651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T11:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519361#M1261652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use the following sample code to get pointers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_bu LIKE zta_emc-bu_unit,
            p_sbu(50) TYPE c. "LIKE zta_emc-sbu_unit.

DATA : itab LIKE zta_sbu_unit OCCURS 0 WITH HEADER LINE.
DATA : itab_bu LIKE zta_bu_unit OCCURS 0 WITH HEADER LINE.
DATA : itab_code LIKE zta_bu_sbu OCCURS 0 WITH HEADER LINE.
DATA:  tp_dirty LIKE ddshretval OCCURS 0 WITH HEADER LINE.
DATA it_dynfield TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_sbu.

* the fetching of data has to be done within the AT SELECTION-SCREEN ON VALUE-REQUEST.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname             = sy-repid
      dynumb             = sy-dynnr
*      translate_to_upper = 'X'
      request            = 'A'
    TABLES
      dynpfields         = it_dynfield.
  READ TABLE it_dynfield WITH KEY fieldname = 'P_BU'.

  p_bu = it_dynfield-fieldvalue.

  SELECT * FROM zta_bu_unit INTO TABLE itab_bu WHERE bu_unit = p_bu.

  SELECT * FROM zta_bu_sbu
  INTO TABLE itab_code
  FOR ALL ENTRIES IN itab_bu
  WHERE bu_code = itab_bu-bu_code.

  SELECT * FROM zta_sbu_unit
  INTO TABLE itab
  FOR ALL ENTRIES IN itab_code
  WHERE sbu_code = itab_code-sbu_code.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'SBU_UNIT'
      dynpprog    = sy-repid
*      for screen no of the parameter screen goto the system =&amp;gt; status
      dynpnr      = sy-dynnr
      dynprofield = 'SBU'
      value_org   = 'S'
    TABLES
      value_tab   = itab
      return_tab  = tp_dirty.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case based on BU i get SBU values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519361#M1261652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T11:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519362#M1261653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select SERNR based on the selected MATNR ,this you can read via FM DYNP_VALUES_READ.&lt;/P&gt;&lt;P&gt;Fill internal table and pass it to teh FM as mentioned in above thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519362#M1261653</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-04-22T11:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519363#M1261654</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;Use the Function Module &lt;STRONG&gt;DYNP_VALUES_READ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which reads the value of the matnr from the screen, then use these value to get your SERNR value in to the table and use FM &lt;STRONG&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/STRONG&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 s_subty-low.
  DATA :
        t_dynpread TYPE TABLE OF  dynpread WITH HEADER LINE.

  t_dynpread-fieldname = 'P_INFTY'.
  APPEND t_dynpread.
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = sy-repid
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = t_dynpread[]
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      invalid_parameter    = 7
      undefind_error       = 8
      double_conversion    = 9
      stepl_not_found      = 10
      OTHERS               = 11.
  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;Regards&lt;/P&gt;&lt;P&gt;Kumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519363#M1261654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T11:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519364#M1261655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select sernr from equi
                     into table it_sernr
                     where matnr in s_matr.  "select option.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use the FM F4IF_INT_TABLE_VALUE_REQUEST  at the AT SELECTION-SCREEN S_SERNR-LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/5519364#M1261655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T11:42:43Z</dc:date>
    </item>
  </channel>
</rss>

