<?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 code this in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717819#M895003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to use the function modules to get the result..&lt;/P&gt;&lt;P&gt;read it properly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 05:57:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T05:57:54Z</dc:date>
    <item>
      <title>how to code this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717817#M895001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Read Function modules FIRST_DAY_IN_PERIOD_GET and LAST_DAY_IN_PERIOD_GET to ge the first and last  dates of the periods entered on the selection screen. Here Year = First 4 characters and Period = Next two characters of YearPeriod field of the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Read VBAK and filter all the sales documents where VBAK - AUART is ZJE or ZJR and VBAK &amp;#150; AUDAT in the first and last dates of the periods detrmined from the above step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 05:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717817#M895001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T05:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to code this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717818#M895002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;To get the First day (Start date) of the month and the Last day (End date) calendar day of the month for a given file run date in the Selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   We can use this Function Module 'LAST_DAY_OF_MONTHS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To get the Start date first day of the month of the file run and ENDA equal to the last calendar day of the month of the file run based on the File Run Date given in the Selection .( You can use the following code snippet) &amp;#133;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FIRST_DATE LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;DATA: LAST_DATE LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LAST_DAY_OF_MONTHS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DAY_IN = SY-DATUM&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;LAST_DAY_OF_MONTH = LAST_DATE.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CONCATENATE LAST_DATE+0(6) '01' INTO FIRST_DATE.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;WRITE: / FIRST_DATE, LAST_DATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 05:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717818#M895002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T05:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to code this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717819#M895003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to use the function modules to get the result..&lt;/P&gt;&lt;P&gt;read it properly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 05:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717819#M895003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T05:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to code this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717820#M895004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;REPORT  ztest_l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: period(6) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: date1 like sy-datum.&lt;/P&gt;&lt;P&gt;data: date2 like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: YEAr type T009B-BDATJ.&lt;/P&gt;&lt;P&gt;data: per(2) type c .&lt;/P&gt;&lt;P&gt;data : fp like  T009B-periv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: perod type T009B-POPER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year = period+0(4).&lt;/P&gt;&lt;P&gt;per = period+4(2).&lt;/P&gt;&lt;P&gt;concatenate '0' per into perod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select PERIV from  T009B into fp where poper = perod.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_gjahr              = year&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_MONMIT             = 00&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    i_periv              = fp&lt;/P&gt;&lt;P&gt;    i_poper              = perod&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    E_DATE               = date1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INPUT_FALSE          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  T009_NOTFOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  T009B_NOTFOUND       = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS               = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ date1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_gjahr              = year&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_MONMIT             = 00&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    i_periv              = fp&lt;/P&gt;&lt;P&gt;    i_poper              = perod&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    E_DATE               = date2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INPUT_FALSE          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  T009_NOTFOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  T009B_NOTFOUND       = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS               = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ date2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 08:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-this/m-p/3717820#M895004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T08:43:34Z</dc:date>
    </item>
  </channel>
</rss>

