<?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 Date code with example in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340591#M800803</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;&lt;/P&gt;&lt;P&gt;How will the following code work....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lv_date = ls_billing-bill_date.&lt;/P&gt;&lt;P&gt;    CONDENSE lv_date.&lt;/P&gt;&lt;P&gt;    lv_bill_date = lv_date(8).&lt;/P&gt;&lt;P&gt;    lv_billplan_date = lv_bill_date.&lt;/P&gt;&lt;P&gt;    lv_billplan_date+6(2) = '01'.&lt;/P&gt;&lt;P&gt;    lv_billfrom_date      = lv_billplan_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain me with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sangeeta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 10:25:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-04T10:25:22Z</dc:date>
    <item>
      <title>Date code with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340591#M800803</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;&lt;/P&gt;&lt;P&gt;How will the following code work....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lv_date = ls_billing-bill_date.&lt;/P&gt;&lt;P&gt;    CONDENSE lv_date.&lt;/P&gt;&lt;P&gt;    lv_bill_date = lv_date(8).&lt;/P&gt;&lt;P&gt;    lv_billplan_date = lv_bill_date.&lt;/P&gt;&lt;P&gt;    lv_billplan_date+6(2) = '01'.&lt;/P&gt;&lt;P&gt;    lv_billfrom_date      = lv_billplan_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain me with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sangeeta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 10:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340591#M800803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T10:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date code with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340592#M800804</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;if the date is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20080204&lt;/P&gt;&lt;P&gt;then it will return&lt;/P&gt;&lt;P&gt;yyyymmdd&lt;/P&gt;&lt;P&gt;20080201&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is hardcoding the day of the month as 01&lt;/P&gt;&lt;P&gt;the last two characteres are replaced with 01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 11:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340592#M800804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T11:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date code with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340593#M800805</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;take for example:&lt;/P&gt;&lt;P&gt;lv_date = '    2007010'.&lt;/P&gt;&lt;P&gt;condense will remove the gaps&lt;/P&gt;&lt;P&gt;and lv_date = '2007010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_bill_date = 2007010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_billplan_date = lv_bill_date = 2007010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_billplan_date+6(2) = 01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_billfrom_date = lv_billplan_date = 20070101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u chk out this code in debug mode evrthing will be clear..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward appropriate points.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 11:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340593#M800805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T11:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date code with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340594#M800806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sangeeta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose lv_billplan_date = 20080128 &lt;STRONG&gt;28th january in yyyymmdd&lt;/STRONG&gt;  format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now lv_billplan_date+6(2) will travle 6 places in lv_billplan_date &lt;/P&gt;&lt;P&gt;and reach to '1' after this it has 2 more places to traverse that is '28' &lt;STRONG&gt;DAY&lt;/STRONG&gt;, so the code is hardcoding and changing it forcibly to '01' ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the output will be 20080101   [date is changed to 1st january]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Rohan Malik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 11:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340594#M800806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T11:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date code with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340595#M800807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt; 
lv_date = ls_billing-bill_date.  "for example internal table field has value ' 20080204' 
                                 "with some leading spaces or trailing spaces 
CONDENSE lv_date.  "here date value will condense i.e. removes 
                   "any leading or trailing spaces. 
                    
lv_bill_date = lv_date(8). "assigning date value i.e. 20080204 to lv_bill_date 

lv_billplan_date = lv_bill_date. "assigning lv_bill_date to lv_billplan_date 

lv_billplan_date+6(2) = '01'. "changing date as staring date of 
                              "month i.e. 20080204 to 20080201 

lv_billfrom_date = lv_billplan_date. "assigning lv_billplan_date to lv_billfrom_date 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 11:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340595#M800807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date code with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340596#M800808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for exp Is_billing-bill_date = '20080402'&lt;/P&gt;&lt;P&gt;1. now lv_date will be '20080402'&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;3.lv_bill_date is eight characters of lv_date ie '20080402'.&lt;/P&gt;&lt;P&gt;4. lv_billplan_date is 20080402&lt;/P&gt;&lt;P&gt;5.lv_billplan_date+6(2) is 02 that is replace by 01.&lt;/P&gt;&lt;P&gt;6. lv_billfrom_date is 200080401.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the date field is changed 02 to 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narsim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 11:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-code-with-example/m-p/3340596#M800808</guid>
      <dc:creator>NAeda</dc:creator>
      <dc:date>2008-02-04T11:34:51Z</dc:date>
    </item>
  </channel>
</rss>

