<?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: error in selection position in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872712#M930881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; u can do one thing in this case.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first selct all entries and then delete what ever u want.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first write ur select querry as,..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT mblnr&lt;/P&gt;&lt;P&gt;mjahr&lt;/P&gt;&lt;P&gt;xblnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM mkpf&lt;/P&gt;&lt;P&gt;INTO TABLE gt_mkpf&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_temp&lt;/P&gt;&lt;P&gt;WHERE mblnr EQ gt_temp-mblnr&lt;/P&gt;&lt;P&gt;and mjahr eq p_mjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_mkpf.&lt;/P&gt;&lt;P&gt;delete gt_mkpf where xblnr+3(2) LE s_cdate-low3(2) .&lt;/P&gt;&lt;P&gt;delete gt_mkpf  where xblnr+3(2) GE s_cdate-high3(2).&lt;/P&gt;&lt;P&gt;delete gt_mkpf  where xblnr EQ space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this once.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankq,&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2008 11:22:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-26T11:22:09Z</dc:date>
    <item>
      <title>error in selection position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872710#M930879</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 any one tell me how can i select xblnr field with 3 position with two character .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH gt_mkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT mblnr&lt;/P&gt;&lt;P&gt;           mjahr&lt;/P&gt;&lt;P&gt;           xblnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           FROM mkpf&lt;/P&gt;&lt;P&gt;           INTO TABLE gt_mkpf&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN gt_temp&lt;/P&gt;&lt;P&gt;           WHERE mblnr EQ gt_temp-mblnr&lt;/P&gt;&lt;P&gt;           and   mjahr eq p_mjahr&lt;/P&gt;&lt;P&gt;           &lt;EM&gt;AND *( xblnr&lt;/EM&gt;3(2) GE s_cdate-low3(2)*+&lt;/P&gt;&lt;P&gt;           &lt;EM&gt;*AND    xblnr&lt;/EM&gt;3(2) LE s_cdate-high3(2) )*           AND+ xblnr NE space...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 11:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872710#M930879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T11:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: error in selection position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872711#M930880</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;u cannot use offset parameters in select statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 11:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872711#M930880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T11:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: error in selection position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872712#M930881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; u can do one thing in this case.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first selct all entries and then delete what ever u want.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first write ur select querry as,..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT mblnr&lt;/P&gt;&lt;P&gt;mjahr&lt;/P&gt;&lt;P&gt;xblnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM mkpf&lt;/P&gt;&lt;P&gt;INTO TABLE gt_mkpf&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_temp&lt;/P&gt;&lt;P&gt;WHERE mblnr EQ gt_temp-mblnr&lt;/P&gt;&lt;P&gt;and mjahr eq p_mjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_mkpf.&lt;/P&gt;&lt;P&gt;delete gt_mkpf where xblnr+3(2) LE s_cdate-low3(2) .&lt;/P&gt;&lt;P&gt;delete gt_mkpf  where xblnr+3(2) GE s_cdate-high3(2).&lt;/P&gt;&lt;P&gt;delete gt_mkpf  where xblnr EQ space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this once.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankq,&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 11:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872712#M930881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T11:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: error in selection position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872713#M930882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;U can't specify offset in left side variables of the select where as we can do the same with right side variables. Do like this to achieve ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM field list mkpf&lt;/P&gt;&lt;P&gt;INTO TABLE gt_mkpf&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_temp&lt;/P&gt;&lt;P&gt;WHERE mblnr EQ gt_temp-mblnr&lt;/P&gt;&lt;P&gt;and mjahr eq p_mjahr&lt;/P&gt;&lt;P&gt;AND xblnr NE space.&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;&lt;EM&gt;AND ( xblnr&lt;/EM&gt;3(2) GE s_cdate-low3(2)+&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;--&lt;EM&gt;AND xblnr&lt;/EM&gt;3(2) LE s_cdate-high3(2) ) AND+ --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_temp INTO wa WHERE&lt;/P&gt;&lt;P&gt; ( xblnr+3(2) GE s_cdate-low3(2)&lt;/P&gt;&lt;P&gt; AND xblnr+3(2) LE s_cdate-high3(2) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above statement gives syntax error the do like this.&lt;/P&gt;&lt;P&gt;LOOP AT gt_temp INTO wa .&lt;/P&gt;&lt;P&gt;IF xblnr+3(2) GE s_cdate-low3(2)&lt;/P&gt;&lt;P&gt; AND xblnr+3(2) LE s_cdate-high3(2).&lt;/P&gt;&lt;P&gt;APPEND wa TO it_mseg.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As delete Inside loop is not advisable we can append the&lt;/STRONG&gt; &lt;STRONG&gt;required data to new itab instead of deleting the unwanted&lt;/STRONG&gt; &lt;STRONG&gt;from the original table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 11:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-selection-position/m-p/3872713#M930882</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-26T11:39:53Z</dc:date>
    </item>
  </channel>
</rss>

