<?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 programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768498#M1462809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, after execution of the program the Run_id and Run_date wil be stored to a Z-table, so by next time execution of the program it shoud check the selection-screen values against the ztable entries to avoid duplicate values of 'Run_ID' for the same date 'Run_date', at the same time we can have the same Run_ID for different dates in the other way this program should run only once per day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Apr 2010 05:54:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-18T05:54:20Z</dc:date>
    <item>
      <title>selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768494#M1462805</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;&lt;/P&gt;&lt;P&gt;I had a problem over selection-screen programming..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having 2 fields 'Run_ID' and 'Run_date' at selection-screen level, here there is one to many relation i.e. for a Run-id there will be more Run-dates but not vice-verca, i mean to say one Run-date cannot be have multiple Run-ids....&lt;/P&gt;&lt;P&gt;Please suggest me, how to handle this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&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;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 04:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768494#M1462805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-18T04:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768495#M1462806</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;I think you can handle this easily at-selection-screen event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see how many elements are present in run_id .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lw_id type i.
     
describe table run_id lines lw_id.


if lw_id &amp;gt; 1.

Message 'No more than one run id' type 'E'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suresh Dorai on Apr 18, 2010 7:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 05:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768495#M1462806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-18T05:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768496#M1462807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surender ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Design your selection screen this way :  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Make 'Run_id' as a parameter field  and keep Run_date as a select-option  . &lt;/P&gt;&lt;P&gt; This way you can restrict Run_id to one parameter entry only and for that Run_id , you can have multiple Run_dates . &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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 05:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768496#M1462807</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2010-04-18T05:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768497#M1462808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, i've to check Run ID against the field 'Run_date'...for example today 18.04.2010, if i run this program by giving values '01' for Run_ID and '18.04.2010' for Run_date at selection-screen and it's done for today, but if user again tries to execute this program on same day, it's supposed show error, But with same Run_id, we can run the program on any date except today.........hope you understand...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls do needful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 05:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768497#M1462808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-18T05:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768498#M1462809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, after execution of the program the Run_id and Run_date wil be stored to a Z-table, so by next time execution of the program it shoud check the selection-screen values against the ztable entries to avoid duplicate values of 'Run_ID' for the same date 'Run_date', at the same time we can have the same Run_ID for different dates in the other way this program should run only once per day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 05:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768498#M1462809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-18T05:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768499#M1462810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andhari  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then take both the fields run_id and run_date as parameters in the selection screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you have to code in the 'At selection-screen ' event .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Write the logic this way :  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     select single run_id run_date from the z-table into a workarea &lt;/P&gt;&lt;P&gt;                                   where run_date = sy-datum . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       throw an error message like " This program runs only once iper day " .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   endif . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your query .&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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 06:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6768499#M1462810</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2010-04-18T06:18:48Z</dc:date>
    </item>
  </channel>
</rss>

