<?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: report-wrong o/p in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851698#M925916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort it1 by augbl.&lt;/P&gt;&lt;P&gt;then use delete adjacent duplicates...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 10:39:46 GMT</pubDate>
    <dc:creator>Bema</dc:creator>
    <dc:date>2008-05-20T10:39:46Z</dc:date>
    <item>
      <title>report-wrong o/p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851697#M925915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, in the code below am getting a wrong o/p that o/p values are repeated,kindly check n plz help me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_docu where awtyp = 'BKPF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select AUGBL&lt;/P&gt;&lt;P&gt;             INTO TABLE IT1&lt;/P&gt;&lt;P&gt;               from bseg&lt;/P&gt;&lt;P&gt;               where   bukrs = '1000'&lt;/P&gt;&lt;P&gt;                   and belnr = it_docu-docnr&lt;/P&gt;&lt;P&gt;                   and gjahr = it_docu-ac_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from it1 comparing augbl.&lt;/P&gt;&lt;P&gt;loop at IT1.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; it1-augbl.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every helpfull answers will be rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 10:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851697#M925915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: report-wrong o/p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851698#M925916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort it1 by augbl.&lt;/P&gt;&lt;P&gt;then use delete adjacent duplicates...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 10:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851698#M925916</guid>
      <dc:creator>Bema</dc:creator>
      <dc:date>2008-05-20T10:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: report-wrong o/p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851699#M925917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use sort  it1 by aufgl befor using delete adjacent duplicates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 10:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851699#M925917</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-20T10:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: report-wrong o/p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851700#M925918</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;Sort it1 by augbl.&lt;/P&gt;&lt;P&gt;Delete adjacent duplicates from it1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narasimha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 10:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851700#M925918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T10:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: report-wrong o/p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851701#M925919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreejith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find below the changed code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*loop at it_docu where awtyp = 'BKPF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select BUKRS&lt;/P&gt;&lt;P&gt;BELNR&lt;/P&gt;&lt;P&gt;GJAHR&lt;/P&gt;&lt;P&gt;BUZEI&lt;/P&gt;&lt;P&gt;AUGBL&lt;/P&gt;&lt;P&gt;INTO TABLE IT1&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;for all entries in it_docu&lt;/P&gt;&lt;P&gt;where bukrs = '1000'&lt;/P&gt;&lt;P&gt;and awtyp = 'BKPF'&lt;/P&gt;&lt;P&gt;and belnr = it_docu-docnr&lt;/P&gt;&lt;P&gt;and gjahr = it_docu-ac_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;P&gt;sort it1 by augbl&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from it1 comparing augbl.&lt;/P&gt;&lt;P&gt;loop at IT1.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; it1-augbl.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code, it might be helpful your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Boobalan Suburaj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Boobalan Suburaj on May 20, 2008 1:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 10:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851701#M925919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T10:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: report-wrong o/p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851702#M925920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u all...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 11:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851702#M925920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T11:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: report-wrong o/p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851703#M925921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sreejith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     As you have written the codes it may give the output incorrect and also the runtime will be high.&lt;/P&gt;&lt;P&gt;     Firstly if you have declared the tables it_docu and it1 wit header line or with occurs statement then remove that and declare them simply.&lt;/P&gt;&lt;P&gt;     Then declare the datas below first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES: bseg.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: wa_docu LIKE LINE OF it_docu,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;wa1      LIKE LINE OF it1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then at the place of the code what you have written replace the following code-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT it_docu INTO wa_docu *&lt;/P&gt;&lt;P&gt;                           &lt;STRONG&gt;WHERE wa_docu-awtyp = 'BKPF'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;READ TABLE bseg WITH KEY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                           &lt;STRONG&gt;bukrs = '1000'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                           &lt;STRONG&gt;belnr = wa_docu-docnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                           &lt;STRONG&gt;gjahr = wa_docu-ac_gjahr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;IF sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;               &lt;STRONG&gt;wa1-augbl = bseg-augbl.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;               &lt;STRONG&gt;APPEND wa1 TO it1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;               &lt;STRONG&gt;CLEAR wa1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SORT it1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE ADJACENT DUPLICATES FROM it1&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;                                                    &lt;STRONG&gt;COMPARING augbl.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOOP AT it1 INTO wa1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; wa1-augbl.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: GAURAV SINGH on May 20, 2008 1:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 11:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-wrong-o-p/m-p/3851703#M925921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T11:18:39Z</dc:date>
    </item>
  </channel>
</rss>

