<?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: Query in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339710#M1033730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saranya,&lt;/P&gt;&lt;P&gt;  You can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;At selection-screen on field fiscal_year.
  
 * Get Posting date based on fiscal year entered on the screen.
    Move it to w_posting_date.

     set one flag variable. w_flag = 1.

At selectin-screen .
  if w_flag = 1.
    loop at screen.
      if screen-name = 'POSTING_DATE'.
        Posting_date = w_posting_date.     "Pass the value here.
        Modify screen.
      endif. 
    endloop.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2008 08:20:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-29T08:20:23Z</dc:date>
    <item>
      <title>Query in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339706#M1033726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my requirement in the selection screen have to enter the company code,fiscal year and posting date.Posting date should be got based on the fiscal year.Have done coding to fetch the posting date.Now how to bring this posting date to the selection screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 08:08:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339706#M1033726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T08:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339707#M1033727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the initialization statement pass that date to screen field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 08:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339707#M1033727</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-08-29T08:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339708#M1033728</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 can put your select query for posting date  in INITIALIZATION event with target field posting date.&lt;/P&gt;&lt;P&gt;such that posting date field will have a default value when selection screen will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more way is that because you want posting date based on fiscal year, you can put your select query in AT SELECTION-SCREEN ON FIELD (&amp;lt;posting_date&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 08:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339708#M1033728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T08:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339709#M1033729</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;Pass the value in the initialiaztion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  w_date type d.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;  p_date type d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;  select sinlgle date&lt;/P&gt;&lt;P&gt;    from your table&lt;/P&gt;&lt;P&gt;   into w_date.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  move w-date to p_date.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you  can see the selected date on your selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 08:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339709#M1033729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T08:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339710#M1033730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saranya,&lt;/P&gt;&lt;P&gt;  You can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;At selection-screen on field fiscal_year.
  
 * Get Posting date based on fiscal year entered on the screen.
    Move it to w_posting_date.

     set one flag variable. w_flag = 1.

At selectin-screen .
  if w_flag = 1.
    loop at screen.
      if screen-name = 'POSTING_DATE'.
        Posting_date = w_posting_date.     "Pass the value here.
        Modify screen.
      endif. 
    endloop.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 08:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-selection-screen/m-p/4339710#M1033730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T08:20:23Z</dc:date>
    </item>
  </channel>
</rss>

