<?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: How to pass given week range condition to select query which is function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151910#M1710477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But SUB_QUAN_TIMEST field is timestamp field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 08:42:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-21T08:42:18Z</dc:date>
    <item>
      <title>How to pass given week range condition to select query which is function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151908#M1710475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am Creating function Module in that i have to write a select query that query needs to retrieve fields from Custom table and the condition is based on date, between that dates i need to fetch. I have field as SUB_QUAN_TIMEST(char 14) and there is no start date and end date fields.&lt;/P&gt;&lt;P&gt;ie. i have to write like this where SUB_QUAN_TIMEST between given week range .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me how to write this .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 07:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151908#M1710475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-21T07:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass given week range condition to select query which is function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151909#M1710476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop this SUB_QUAN_TIMEST If this is a Table.&lt;/P&gt;&lt;P&gt;Split the SUB_QUAN_TIMEST Into table ITAB with ofset (as it is a 14 character. you will have date in two 7 char formats).&lt;/P&gt;&lt;P&gt;Then check the useful FM from the below link.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3269347"&gt;http://scn.sap.com/thread/3269347&lt;/A&gt;&lt;/P&gt;&lt;P&gt;build your logic.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 08:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151909#M1710476</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2012-11-21T08:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass given week range condition to select query which is function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151910#M1710477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But SUB_QUAN_TIMEST field is timestamp field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 08:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151910#M1710477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-21T08:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass given week range condition to select query which is function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151911#M1710478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how this date range is stored in sub_quan_timest ..? you can check a record in the table.&lt;BR /&gt;if you know that then you can use it to create the same through your from and to date parameters and pass it to your where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 08:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151911#M1710478</guid>
      <dc:creator>former_member193464</dc:creator>
      <dc:date>2012-11-21T08:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass given week range condition to select query which is function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151912#M1710479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok then as mentioned by you. If it is a Timestamp field.&lt;/P&gt;&lt;P&gt;Then you will only get one date.. If there are two timestamps then you will get two dates.&lt;/P&gt;&lt;P&gt;but anyhow check the below mentioned FM to converting timestamp to a date and time.&lt;/P&gt;&lt;P&gt;CACS_TIMESTAMP_GET_DATE&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 08:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151912#M1710479</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2012-11-21T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass given week range condition to select query which is function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151913#M1710480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just check how the value is stored if it is YYYYMMDDhhmmss, just take the first 8 characters from date put hhmmss as 000000 and for to date parameter put hhmmss as 235959 . then i think you can write your where clause with between operator. Hope it helps &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 08:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-given-week-range-condition-to-select-query-which-is-function/m-p/9151913#M1710480</guid>
      <dc:creator>former_member193464</dc:creator>
      <dc:date>2012-11-21T08:54:07Z</dc:date>
    </item>
  </channel>
</rss>

