<?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: date selection help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271678#M1386708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the subject is data selection help instead of date selection help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;back to your question you can do the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single ktokk from t077k  into l_ktokk where ktokk eq 'ZTEMP'.&lt;/P&gt;&lt;P&gt;if  l_ktokk is not initial.&lt;/P&gt;&lt;P&gt;select single stras into addr1 from bsec&lt;/P&gt;&lt;P&gt;where adrnr eq lfa1-adrnr.&lt;/P&gt;&lt;P&gt;move 'ADDRESS1' to l_out_par-name.&lt;/P&gt;&lt;P&gt;move addr1 to l_out_par-value.&lt;/P&gt;&lt;P&gt;append l_out_par to out_par.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where l_out_par is like line of out_par.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2009 23:22:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-13T23:22:09Z</dc:date>
    <item>
      <title>date selection help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271675#M1386705</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;we have a table called t077k where we store the account group, I need to put a logic if the account grou ois ZTEMP then the address for the vendor in that particular group should come from table BSEC, for that I have written the following code. can you please tell me if tht's right or if I m missing something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t077k.&lt;/P&gt;&lt;P&gt;    if t077k-ktokk eq 'ZTEMP'.&lt;/P&gt;&lt;P&gt;      select single stras into addr1 from bsec&lt;/P&gt;&lt;P&gt;                      where adrnr eq lfa1-adrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0 and not addr1 is initial.&lt;/P&gt;&lt;P&gt;      move 'ADDRESS1' to  out_par-name.&lt;/P&gt;&lt;P&gt;      move  addr1   to  out_par-value.&lt;/P&gt;&lt;P&gt;      modify out_par index 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 18:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271675#M1386705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-13T18:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: date selection help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271676#M1386706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you READinga database table rather than using SELECT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you SELECTing BSEC without using any key fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And why is the subject of this thread about "date"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Nov 13, 2009 2:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 19:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271676#M1386706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-13T19:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: date selection help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271677#M1386707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use with key option with read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also avoid select single statement , by fetch of records from table and then reading the records from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And , use read statement using binary search. i.e sort internal table and then read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 19:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271677#M1386707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-13T19:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: date selection help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271678#M1386708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the subject is data selection help instead of date selection help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;back to your question you can do the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single ktokk from t077k  into l_ktokk where ktokk eq 'ZTEMP'.&lt;/P&gt;&lt;P&gt;if  l_ktokk is not initial.&lt;/P&gt;&lt;P&gt;select single stras into addr1 from bsec&lt;/P&gt;&lt;P&gt;where adrnr eq lfa1-adrnr.&lt;/P&gt;&lt;P&gt;move 'ADDRESS1' to l_out_par-name.&lt;/P&gt;&lt;P&gt;move addr1 to l_out_par-value.&lt;/P&gt;&lt;P&gt;append l_out_par to out_par.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where l_out_par is like line of out_par.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 23:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271678#M1386708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-13T23:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: date selection help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271679#M1386709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just don't believe you don't know [How to post code in SCN. |&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1170968"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 00:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-selection-help/m-p/6271679#M1386709</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-11-14T00:52:41Z</dc:date>
    </item>
  </channel>
</rss>

