<?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/1007286#M78061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks rich,&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2005 15:39:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-05T15:39:11Z</dc:date>
    <item>
      <title>search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007278#M78053</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;I have 2 select options.i want to get the f4 help for the second select option based on the entry of first select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: first select option is  &amp;lt;b&amp;gt;customer number&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;and second is &amp;lt;b&amp;gt;purchase order no&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if enter some value in customer  select option  .&lt;/P&gt;&lt;P&gt;based on this i need to get f4 search for the purchase orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 13:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007278#M78053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007279#M78054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sample uses parameters instead of select-options,  but you get the idea here.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

parameters: p_kunnr type vbak-kunnr,
            p_bstkd type vbkd-bstkd.

at selection-screen on value-request for p_bstkd.
  data: begin of help_bstkd occurs 0,
         bstkd type vbkd-bstkd,
        end of help_bstkd.

  data: dynfields type table of dynpread with header line.

  dynfields-fieldname = 'P_KUNNR'.
  append dynfields.

  call function 'DYNP_VALUES_READ'
       exporting
            dyname               = sy-cprog
            dynumb               = sy-dynnr
            translate_to_upper   = 'X'
       tables
            dynpfields           = dynfields
       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.


  read table dynfields with key fieldname = 'P_KUNNR'.


  select bstkd into corresponding fields of table help_bstkd
               from vbak
                    inner join vbkd
                       on vbak~vbeln = vbkd~vbeln
                          where vbak~kunnr = p_kunnr.

    delete adjacent duplicates from help_bstkd comparing bstkd.

    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
         exporting
              retfield    = 'BSTKD'
              dynprofield = 'P_BSTKD'
              dynpprog    = sy-cprog
              dynpnr      = sy-dynnr
              value_org   = 'S'
         tables
              value_tab   = help_bstkd.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, user must hit enter after entering the customer number and before hitting F4 on PO number.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 13:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007279#M78054</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-05T13:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007280#M78055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Rich,&lt;/P&gt;&lt;P&gt;I need for select-options but not for parameters.in parameters we have only one value,but in select-options we have more values .&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 14:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007280#M78055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T14:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007281#M78056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought maybe you would go by my example and make the parameters as select-options.  Turns out, its even easier for select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0002 .

tables: vbak, vbkd.

select-options: s_kunnr for vbak-kunnr,
                s_bstkd for vbkd-bstkd.

at selection-screen on value-request for s_bstkd-low.
  perform help_bstkd.

at selection-screen on value-request for s_bstkd-high.
  perform help_bstkd.


*---------------------------------------------------------------------*
*       FORM help_bstkd                                               *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
form help_bstkd.
  data: begin of help_bstkd occurs 0,
         bstkd type vbkd-bstkd,
        end of help_bstkd.

  select bstkd into corresponding fields of table help_bstkd
               from vbak
                    inner join vbkd
                       on vbak~vbeln = vbkd~vbeln
                          where vbak~kunnr in s_kunnr.

  delete adjacent duplicates from help_bstkd comparing bstkd.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'BSTKD'
            dynprofield = 'S_BSTKD'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help_bstkd.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers.  Thanks.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 14:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007281#M78056</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-05T14:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007282#M78057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rich,&lt;/P&gt;&lt;P&gt; its working fine .but how to read the dynpro values.please send me code for DYNP_VALUES_READ function module.becoz i was struck up there.iam unable to read the values that i enter in the select option customer as i said earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regard&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 14:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007282#M78057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T14:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007283#M78058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm....  You are saying that there is no value in the S_KUNNR when trying to retrieve POs from VBKD?   In my system,  it can see the values in S_KUNNR.  Post your program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 15:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007283#M78058</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-05T15:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007284#M78059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you hit enter after entering your customer numbers and then hit F4 on the purchase order field.  Then it works.  I am looking for a way to read dynpro values for select-options.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 15:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007284#M78059</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-05T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007285#M78060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been playing with it for a while,  I don't think that it is going to work they you want it to by using the DYNPRO_VALUES_READ.  I think that you going to have to force the user to hit enter after they enter the customer number and before the F4 dropdown for po number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 15:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007285#M78060</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-05T15:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007286#M78061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks rich,&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 15:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1007286#M78061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T15:39:11Z</dc:date>
    </item>
  </channel>
</rss>

