<?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: Abap Code Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746275#M323776</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;I am not sure about that..You have to post the entire code for me to check..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the code building a range with the previous month and year..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Dec 2006 21:31:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-26T21:31:29Z</dc:date>
    <item>
      <title>Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746267#M323768</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;   Am learning abap, could someone please explain the following code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF i_step EQ 0 OR " without popup&lt;/P&gt;&lt;P&gt;       i_step EQ 1 OR " before popup&lt;/P&gt;&lt;P&gt;       i_step EQ 2.   " after popup&lt;/P&gt;&lt;P&gt;  REFRESH e_t_range.&lt;/P&gt;&lt;P&gt;  CLEAR: l_s_range.&lt;/P&gt;&lt;P&gt;  CLEAR : s1, s2.&lt;/P&gt;&lt;P&gt;  DATA v_pm(6) TYPE c.&lt;/P&gt;&lt;P&gt;  s1 = sy-datum.&lt;/P&gt;&lt;P&gt;  s2 = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Date must be in YYYYMM format&lt;/P&gt;&lt;P&gt;  IF i_vnam = 'ZUEPOSTM' AND s1+6(2) = '01'.&lt;/P&gt;&lt;P&gt;    s1 = s1 - 1.        &lt;/P&gt;&lt;P&gt;    s1+6(2) = '01'.    &lt;/P&gt;&lt;P&gt;    s1 = s1 - 1.      &lt;/P&gt;&lt;P&gt;    v_pm(4) = s1+0(4).  &lt;/P&gt;&lt;P&gt;    v_pm&lt;EM&gt;4(2) = s1&lt;/EM&gt;4(2).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    s1+6(2) = '01'.     &lt;/P&gt;&lt;P&gt;    s1 = s1 - 1.        &lt;/P&gt;&lt;P&gt;    v_pm(4) = s1+0(4).  &lt;/P&gt;&lt;P&gt;    v_pm&lt;EM&gt;4(2) = s1&lt;/EM&gt;4(2).  &lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_s_range-sign = 'I'.&lt;/P&gt;&lt;P&gt;  l_s_range-opt = 'EQ'.&lt;/P&gt;&lt;P&gt;  l_s_range-low = v_pm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND l_s_range TO e_t_range.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time with points,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 19:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746267#M323768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746268#M323769</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;I believe they are building a range with the previous month and year..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 20:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746268#M323769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T20:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746269#M323770</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;Or debug the code and check what is happening...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 20:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746269#M323770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T20:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746270#M323771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing wrong with the code it was used in one of the reports and am trying to undertstand the code. i need someone to walk me thru the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 20:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746270#M323771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T20:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746271#M323772</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 the documentation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;If the I_STEP is equal to 0 or 1 or 2..Then the do the following..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;IF i_step EQ 0 OR " without popup&lt;/P&gt;&lt;P&gt;i_step EQ 1 OR " before popup&lt;/P&gt;&lt;P&gt;i_step EQ 2. " after popup&lt;/P&gt;&lt;P&gt;REFRESH e_t_range.&lt;/P&gt;&lt;P&gt;CLEAR: l_s_range.&lt;/P&gt;&lt;P&gt;CLEAR : s1, s2.&lt;/P&gt;&lt;P&gt;DATA v_pm(6) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Store the current date in the variables S1 and S2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;s1 = sy-datum.&lt;/P&gt;&lt;P&gt;s2 = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;If the i_vnam = 'ZUEPOSTM' and if it is start of the month..Means 01&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*Date must be in YYYYMM format&lt;/P&gt;&lt;P&gt;IF i_vnam = 'ZUEPOSTM' AND s1+6(2) = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Decrement the date by 1 day...Means if 01 - feb - 2006 then it will be 01 - Jan - 2006&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;current date = 12/26/2006&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;s1 = s1 - 1.                "s1 = 20061225&lt;/P&gt;&lt;P&gt;s1+6(2) = '01'.            "s1 = 20061201&lt;/P&gt;&lt;P&gt;s1 = s1 - 1.                "s1 = 20061130&lt;/P&gt;&lt;P&gt;v_pm(4) = s1+0(4).      " v_pm = 2006&lt;/P&gt;&lt;P&gt;v_pm&lt;EM&gt;4(2) = s1&lt;/EM&gt;4(2).  " v_pm = 200611&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;s1+6(2) = '01'.             "s1 = 20061201&lt;/P&gt;&lt;P&gt;s1 = s1 - 1.                 "s1 = 20061130&lt;/P&gt;&lt;P&gt;v_pm(4) = s1+0(4).      " v_pm = 2006&lt;/P&gt;&lt;P&gt;v_pm&lt;EM&gt;4(2) = s1&lt;/EM&gt;4(2).  " v_pm = 200611&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_s_range-sign = 'I'.&lt;/P&gt;&lt;P&gt;l_s_range-opt = 'EQ'.&lt;/P&gt;&lt;P&gt;l_s_range-low = v_pm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND l_s_range TO e_t_range.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Basically it is getting the previous month and year..Build a range with it..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 20:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746271#M323772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T20:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746272#M323773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks a ton for your time, also could you please tell me what the following will&lt;/P&gt;&lt;P&gt;   do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_s_range-sign = 'I'.&lt;/P&gt;&lt;P&gt;    l_s_range-opt = 'EQ'.&lt;/P&gt;&lt;P&gt;    l_s_range-low = v_pm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND l_s_range TO e_t_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full points to u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 21:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746272#M323773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T21:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746273#M323774</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;This will build a range internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_s_range-sign = 'I'.&lt;/P&gt;&lt;P&gt;l_s_range-opt = 'EQ'.&lt;/P&gt;&lt;P&gt;l_s_range-low = v_pm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND l_s_range TO e_t_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which means..You can check if the year and month is with in the range..You have to use IN operator to check the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ranges are similar to select-options..Only think is the ranges will not be displayed in the selection-screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF '200611' IN e_t_range.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;True.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;False.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 21:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746273#M323774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T21:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746274#M323775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically when u run the report and enter 200612 in variable "ZUEPOSTM", the report output will be from 200611 to 200612. am i correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 21:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746274#M323775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T21:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Code Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746275#M323776</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;I am not sure about that..You have to post the entire code for me to check..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the code building a range with the previous month and year..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 21:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-help/m-p/1746275#M323776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T21:31:29Z</dc:date>
    </item>
  </channel>
</rss>

