<?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 Processing for Select-Option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507420#M1066247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The date processing issue was already resolved by retrieving the necessary data correctly from multiple tables in a correct way / order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the date formatting issue was resolved by further lengthening the OUTPUTLEN of the field catalog for BEDAT (OUTPUTLEN here is more than 8).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2008 08:44:12 GMT</pubDate>
    <dc:creator>former_member367551</dc:creator>
    <dc:date>2008-10-09T08:44:12Z</dc:date>
    <item>
      <title>Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507412#M1066239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear forumers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a select-option element that takes in a range of PO Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT statement is as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select ebeln
       bedat
       ekorg
       ekgrp
       bukrs
from ekko
into corresponding fields of table gt_ekko
where bedat in s_p_date and   " s_p_date is a select-option for bedat
      ekorg in s_p_org and
      ekgrp in s_p_grp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If valid low and high dates are inputted here, then there will be data correctly retrieved into the internal table gt_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if the low and high dates are equal, then there will be no data retrieved into the internal table gt_ekko at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I correct this? Please help. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, is there an easier way to display this PO date (results) in an ALV list as the dd.mm.yyyy format instead of the yyyymmdd format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 08:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507412#M1066239</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2008-10-06T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507413#M1066240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;use select-options with no interval in the syntax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507413#M1066240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507414#M1066241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below link, as my answer to your secan question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1074610"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507414#M1066241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507415#M1066242</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;check whether you have any po created in that particular date, because you donot have problem giving same date in low and high option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for other option use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if it_exit_new-begda = 0.
it_exit_new-begda = ' '.
else.
write it_exit-begda to it_exit_new-begda dd/mm/yyyy .
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507415#M1066242</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-10-06T09:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507416#M1066243</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;select ebeln&lt;/P&gt;&lt;P&gt;       bedat&lt;/P&gt;&lt;P&gt;       ekorg&lt;/P&gt;&lt;P&gt;       ekgrp&lt;/P&gt;&lt;P&gt;       bukrs&lt;/P&gt;&lt;P&gt;from ekko&lt;/P&gt;&lt;P&gt;into corresponding fields of table gt_ekko&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;bedat &amp;gt;= s_p_date-low and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;bedat &amp;lt;= s_p_date-high and&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;      ekorg in s_p_org and&lt;/P&gt;&lt;P&gt;      ekgrp in s_p_grp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For display in dd.mm.yyyy format...&lt;/P&gt;&lt;P&gt;suppose date is itab-bedat..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate itab-bedat&lt;EM&gt;6(2) itab-bedat&lt;/EM&gt;4(2) itab-bedat+0(4)  into itab-bedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display itab-bedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507416#M1066243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507417#M1066244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dont see any problem in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you have declared the select option as :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select-options s_p_date  for ekko-bedat. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Additionally, is there an easier way to display this PO date (results) in an ALV list as the dd.mm.yyyy format instead of the yyyymmdd format?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you declared the bedat as ekko-bedat in the ouput table ? Then you won't need nay conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507417#M1066244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507418#M1066245</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;- A) "However, if the low and high dates are equal, then there will be no data retrieved into the internal table gt_ekko at all": what do you really mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value of low and high is the same it means it needs to search the data for the only one date: if any data will be returned, it means there no data for that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- B) "Additionally, is there an easier way to display this PO date (results) in an ALV list as the dd.mm.yyyy format instead of the yyyymmdd format?" Use an internal table for the output where the field for date is type SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507418#M1066245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507419#M1066246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Janagar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have my select-option, s_p_date &lt;STRONG&gt;with&lt;/STRONG&gt; an interval (it's part of my requirements).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types:
begin of gs_so_input,
  bedat type ekko-bedat,      " PO Document Date
  eindt type eket-eindt,      " Item Delivery Date
  lifnr type lfa1-lifnr,      " Vendor Number
  matnr type ekbe-matnr,      " Material Number
  ekorg type ekko-ekorg,      " Purchasing Organisation
  ekgrp type ekko-ekgrp,      " Purchasing Group
end of gs_so_input.

data:
gs_input type gs_so_input.

select-options:
s_p_date for gs_input-bedat obligatory,
s_d_date for gs_input-eindt,
s_v_num for gs_input-lifnr,
s_m_num for gs_input-matnr,
s_p_org for gs_input-ekorg,
s_p_grp for gs_input-ekgrp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507419#M1066246</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2008-10-06T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date Processing for Select-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507420#M1066247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The date processing issue was already resolved by retrieving the necessary data correctly from multiple tables in a correct way / order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the date formatting issue was resolved by further lengthening the OUTPUTLEN of the field catalog for BEDAT (OUTPUTLEN here is more than 8).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 08:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-processing-for-select-option/m-p/4507420#M1066247</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2008-10-09T08:44:12Z</dc:date>
    </item>
  </channel>
</rss>

