<?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: selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928605#M1485423</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;You should use the FM before your SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashidhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 12:28:18 GMT</pubDate>
    <dc:creator>former_member870040</dc:creator>
    <dc:date>2010-05-05T12:28:18Z</dc:date>
    <item>
      <title>selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928600#M1485418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I  have created a selection screen from where I am inputting two values sales organization and distribution channel.&lt;/P&gt;&lt;P&gt;I want these two values for F4 help of the third input which is Area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS :  p_vkorg TYPE  VBAK-VKORG OBLIGATORY,&lt;/P&gt;&lt;P&gt;                           p_vtweg TYPE VBAK-VTWEG OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_state FOR KNVH-KUNNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I am writing the Select query the fields that I am entering on the selection screen are not getting fetched into their respective parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
SELECT KUNNR
    FROM KNVH
    INTO TABLE I_KNVH_KUNNR
   WHERE VKORG = P_VKORG " this is showing blank 
     AND VTWEG = P_VTWEG " this is showing blank
     AND HITYP = 'S'
     AND HZUOR = 04
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What may be the reason? How can I make my query work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 11:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928600#M1485418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T11:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928601#M1485419</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 function module  DYNP_VALUES_READ to get those entered values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 11:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928601#M1485419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T11:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928602#M1485420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: it_dynpfields TYPE STANDARD TABLE OF dynpread,
                   wa_dynpfields TYPE dynpread.

REFRESH it_dynpfields.
  CLEAR wa_dynpfields.
  wa_dynpfields-fieldname = 'P_VKORG'.
  APPEND wa_dynpfields TO it_dynpfields.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = '&amp;lt;Report Name&amp;gt;'
      dynumb               = '1000'
    TABLES
      dynpfields           = it_dynpfields
    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 EQ 0.
    READ TABLE it_dynpfields INTO wa_dynpfields
                                  WITH KEY fieldname = 'P_VKORG'.
    MOVE wa_dynpfields-fieldvalue TO p_uname.
  ENDIF&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 11:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928602#M1485420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T11:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928603#M1485421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this code is after at selection screen or start of selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 11:52:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928603#M1485421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T11:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928604#M1485422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I do it for both the field. Do i simply need to append the other one to internal table and then pass it on or do i have to code the same separately for the other one too? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code and the select query is in inside the perform&lt;/P&gt;&lt;P&gt;INITIALIZATION .&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR SO_STATE LOW.&lt;/P&gt;&lt;P&gt;PERFORM f_value_request_state.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928604#M1485422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T12:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928605#M1485423</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;You should use the FM before your SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashidhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928605#M1485423</guid>
      <dc:creator>former_member870040</dc:creator>
      <dc:date>2010-05-05T12:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928606#M1485424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at that instance the values will not be filled . i dont think you will be able to get the values using above  mentioned function @ that event. but i think you dont have to code the inputs for the search help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928606#M1485424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T12:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928607#M1485425</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;APPEND the two values to the internal table and pass it to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashidhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928607#M1485425</guid>
      <dc:creator>former_member870040</dc:creator>
      <dc:date>2010-05-05T12:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928608#M1485426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FM works in AT SELECTION-SCREEN ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashidhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928608#M1485426</guid>
      <dc:creator>former_member870040</dc:creator>
      <dc:date>2010-05-05T12:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928609#M1485427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this FM in event &lt;STRONG&gt;At Selection-Screen Output&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Write your select query and use the FM to fetch the values. &lt;SPAN __default_attr="red" __jive_macro_name="Color"&gt;&lt;/SPAN&gt;Yes&lt;SPAN __jive_macro_name="color"&gt;&lt;/SPAN&gt; append the two values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/6928609#M1485427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T12:34:48Z</dc:date>
    </item>
  </channel>
</rss>

