<?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: Get the current date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394233#M191253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian!&lt;/P&gt;&lt;P&gt;Well the part of the INITIALIZATION event did help me.&lt;/P&gt;&lt;P&gt;but the part of the variant i didn't understand,&lt;/P&gt;&lt;P&gt;what i did is keep the PERBL field without value and when i save the variant i checked the "Save field without values"  but it still no working.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2006 10:24:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-10T10:24:16Z</dc:date>
    <item>
      <title>Get the current date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394230#M191250</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;i'm trying to get the current date to field in my screen i'm wrote this code in the PBO MODULE &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;MODULE set_Date OUTPUT.&lt;/P&gt;&lt;P&gt;DATA : LV_Curr_Date like ce3tamb-perbl,&lt;/P&gt;&lt;P&gt;       LV_month(3),&lt;/P&gt;&lt;P&gt;       LV_year(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_month =  sy-datum+4(2).&lt;/P&gt;&lt;P&gt;concatenate '0'  LV_month into LV_month.&lt;/P&gt;&lt;P&gt;LV_year  = sy-datum(4).&lt;/P&gt;&lt;P&gt;concatenate   LV_year LV_month into LV_Curr_Date.&lt;/P&gt;&lt;P&gt;S_PERBL-LOW  = LV_Curr_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " set_Date  OUTPUT&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what strange is that in our dev-server its works fine but on the production it's not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i'm trying to do is to get the current month and year to the field S_PERBL-(Fiscal year/period block),so i'll use it for Variant to a job that will work everyday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;Gil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 07:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394230#M191250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T07:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get the current date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394231#M191251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that i'm thinking about it this PBO MODULE wont help me to the variant coz for example today the field get current month and year (007.2006) and after i save it to variant it'll be always (007.2006) and i want it to be dynamic.when i save the variant and want to set Dynamic date calculation to this field i see&lt;/P&gt;&lt;P&gt;"Dynamic date calculation write me - Not selected".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you can help me.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 07:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394231#M191251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T07:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get the current date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394232#M191252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gil!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are a little bit confusing: you show a PBO (module pool) and talk about a report - to default values in a report, you should use event INITIALIZATION.&lt;/P&gt;&lt;P&gt;When you define the variant, just don't save anything for the field PERBL - there is a flag for such handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is S_PERBL a range? If yes, then you have to default the internal table, not the header line. Add an 'APPEND s_perbl' after your value assignments. Also define fields SIGN = 'I' and OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394232#M191252</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-07-10T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get the current date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394233#M191253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian!&lt;/P&gt;&lt;P&gt;Well the part of the INITIALIZATION event did help me.&lt;/P&gt;&lt;P&gt;but the part of the variant i didn't understand,&lt;/P&gt;&lt;P&gt;what i did is keep the PERBL field without value and when i save the variant i checked the "Save field without values"  but it still no working.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 10:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394233#M191253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T10:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get the current date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394234#M191254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gil!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So one problem is solved: you can default the PERBL field in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you had (correctly) the doubt, if this will help in case of a periodic job: the variant might be saved with '007.2006' and stay fixed.&lt;/P&gt;&lt;P&gt;Here the flag 'save field without values' should help: when the job starts, other fields than PERBL should come from the variant, the value of PERBL should be calculated in INITIALIZATION-event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the append? What exactly is 'still not working'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Just out of curiosity: how to get ONE point? I thought, smallest assigment is 2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 11:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394234#M191254</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-07-10T11:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the current date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394235#M191255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the append ,&lt;/P&gt;&lt;P&gt;the job stop after one sec. and i don't have any way to debug it or i do have??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i debug it i see that the program don't do nothing &lt;/P&gt;&lt;P&gt;and it leaves the debuger after the first line whice is &lt;/P&gt;&lt;P&gt;REPORT Name.&lt;/P&gt;&lt;P&gt;strange!!!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;P.S about my point i really don't know from were it come from .&lt;/P&gt;&lt;P&gt;maybe i ask question in a polite way &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Gil Hadida&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 11:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394235#M191255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T11:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get the current date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394236#M191256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I slove it.&lt;/P&gt;&lt;P&gt;Start-Of-Selection or else all the program will be under the INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 12:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-current-date/m-p/1394236#M191256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T12:11:41Z</dc:date>
    </item>
  </channel>
</rss>

