<?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 regarding selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141806#M1191739</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 got to write simple code for the selection screen , thing is i got from date as 14-01-2009 and to date as 22-01-2009 . I would like to subtract a week from the to value of selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is related to BW. I am giving selection on BEDAT of EKKO that is DOC.DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Include           RSBC_SEL_ROUTINE_TPL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program conversion_routine.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type pools used by conversion program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;type-pools: rsarc, rsarr, rssm.&lt;/P&gt;&lt;P&gt;tables: rssdlrange.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global code used by conversion rules&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$ begin of global - insert your declaration only below this line  &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES: ...&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DATA:   ...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$ end of global - insert your declaration only before this line   &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-------------------------------------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Fieldname       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    data type       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    length          = 000000&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-------------------------------------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;form compute_&lt;/P&gt;&lt;P&gt;  tables l_t_range structure rssdlrange&lt;/P&gt;&lt;P&gt;  changing p_subrc like sy-subrc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Insert source code to current selection field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$ begin of routine - insert your code only below this line        &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data: l_idx like sy-tabix.&lt;/P&gt;&lt;P&gt;          read table l_t_range with key&lt;/P&gt;&lt;P&gt;               fieldname = 'bedat'.&lt;/P&gt;&lt;P&gt;          l_idx = sy-tabix.&lt;/P&gt;&lt;P&gt;*....&lt;/P&gt;&lt;P&gt;          if l_idx &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            modify l_t_range index l_idx.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            append l_t_range.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;          p_subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$ end of routine - insert your code only before this line         &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2009 20:55:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-21T20:55:34Z</dc:date>
    <item>
      <title>regarding selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141806#M1191739</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 got to write simple code for the selection screen , thing is i got from date as 14-01-2009 and to date as 22-01-2009 . I would like to subtract a week from the to value of selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is related to BW. I am giving selection on BEDAT of EKKO that is DOC.DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Include           RSBC_SEL_ROUTINE_TPL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program conversion_routine.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type pools used by conversion program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;type-pools: rsarc, rsarr, rssm.&lt;/P&gt;&lt;P&gt;tables: rssdlrange.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global code used by conversion rules&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$ begin of global - insert your declaration only below this line  &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES: ...&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DATA:   ...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$ end of global - insert your declaration only before this line   &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-------------------------------------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Fieldname       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    data type       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    length          = 000000&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-------------------------------------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;form compute_&lt;/P&gt;&lt;P&gt;  tables l_t_range structure rssdlrange&lt;/P&gt;&lt;P&gt;  changing p_subrc like sy-subrc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Insert source code to current selection field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$ begin of routine - insert your code only below this line        &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data: l_idx like sy-tabix.&lt;/P&gt;&lt;P&gt;          read table l_t_range with key&lt;/P&gt;&lt;P&gt;               fieldname = 'bedat'.&lt;/P&gt;&lt;P&gt;          l_idx = sy-tabix.&lt;/P&gt;&lt;P&gt;*....&lt;/P&gt;&lt;P&gt;          if l_idx &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            modify l_t_range index l_idx.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            append l_t_range.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;          p_subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$ end of routine - insert your code only before this line         &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 20:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141806#M1191739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T20:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141807#M1191740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
    EXPORTING
      date      = sy-datum       "input date
      days      = '7'                 " seven days
      months    = '00'
      signum    = '-'                "subract from Input date
      years     = '00'
    IMPORTING
      calc_date = lv_default_date."output date&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 22:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141807#M1191740</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-01-21T22:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141808#M1191741</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;Simply subtract 7 days from the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data p_date type sy-datum default '20080108'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_date = p_date - 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now p_date will have '20080101'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 22:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141808#M1191741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T22:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141809#M1191742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur answer , but i am working on selection screen named x for instance where I got two values one is from value and other is to value , in my program i want to take to value and need to change that every time and to value must become the from value in next data load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 22:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141809#M1191742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T22:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141810#M1191743</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;can you please explain when these upload takes place periodically or continuously.please explain the date concept with example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 23:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/5141810#M1191743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T23:06:22Z</dc:date>
    </item>
  </channel>
</rss>

