<?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: not appending properly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356841#M1233247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as read stmet will read only  single record i am using loop inside loop  but value is not populating in &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where condition where belnr = it_pos-belnr&lt;/STRONG&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_pos INTO wa_pos.&lt;/P&gt;&lt;P&gt;    READ TABLE it_kna1 INTO wa_kna1 WITH KEY kunnr = wa_pos-konto.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      wa_final-name1 = wa_&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_bseg into wa_bseg where belnr = it_pos-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  iF WA_BSEG-HKONT = '0000500100'.&lt;/P&gt;&lt;P&gt;         WA_FINAL-NET = WA_BSEG-DMBTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont ='0000300450'.&lt;/P&gt;&lt;P&gt;            wa_Final-Educess = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont = '0000300455'.&lt;/P&gt;&lt;P&gt;            wa_final-cesspay = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont = '0000209800'.&lt;/P&gt;&lt;P&gt;.            wa_final-gross =  wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;&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;    APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;        CLEAR: wa_final, wa_kna1, wa_bseg, wa_adv, wa_brand.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2009 09:02:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-26T09:02:32Z</dc:date>
    <item>
      <title>not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356824#M1233230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem in my report where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have made a loop at it_pos into wa_pos&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;in my Read statment&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE it_bseg INTO wa_bseg WITH KEY belnr = wa_pos-belnr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wa_final-gross =  wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;       iF WA_BSEG-HKONT = '0000500100'.&lt;/P&gt;&lt;P&gt;         WA_FINAL-NET = WA_BSEG-DMBTR.&lt;/P&gt;&lt;P&gt;        Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if  wa_bseg-hkont = '0000301500 '.&lt;/P&gt;&lt;P&gt;      wa_final-sertax =  wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;        Endif.&lt;/P&gt;&lt;P&gt;APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;    CLEAR: wa_final, wa_kna1, wa_bseg, wa_adv, wa_brand.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is while debugging iam getting &lt;STRONG&gt;all the Gl(hkont)  correctly but all the amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gets updated in wa_final-gross field itself.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e  for every gl(hkont) it has to corresponding get into that  field&lt;/P&gt;&lt;P&gt;ie  if hkont = '000301500'&lt;/P&gt;&lt;P&gt; it has to be filled in my wa_final-sertax and so....&lt;/P&gt;&lt;P&gt;but instead it gets filled in my wa_Final-gross itself .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;so therefore &lt;/P&gt;&lt;P&gt;gross  and net is getting filled in the alv but it is shatered and comes alternatively jumbled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what to do ... help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tjhanx in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 05:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356824#M1233230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T05:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356825#M1233231</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 think you have some duplicate entries in the table it_bseg. If you need to read the duplicate entries as well, you have to use only the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_bseg into wa_bseg where belnr = wa_pos-belnr.&lt;/P&gt;&lt;P&gt;wa_final-gross = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;iF WA_BSEG-HKONT = '0000500100'.&lt;/P&gt;&lt;P&gt;WA_FINAL-NET = WA_BSEG-DMBTR.&lt;/P&gt;&lt;P&gt;Elseif wa_bseg-hkont = '0000301500 '.&lt;/P&gt;&lt;P&gt;wa_final-sertax = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;clear: wa_bseg.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;CLEAR: wa_final, wa_kna1, wa_adv, wa_brand.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your issue cannot be solved with this, then please show your full code. That is the code having loop and endloop. Then it helps you solve the problem easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356825#M1233231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356826#M1233232</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;According to me conditions handled in IF conditions are not proper, try this way:&lt;/P&gt;&lt;P&gt;############################&lt;/P&gt;&lt;P&gt;loop at it_pos into wa_pos&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;&lt;/P&gt;&lt;P&gt;READ TABLE it_bseg INTO wa_bseg WITH KEY belnr = wa_pos-belnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF WA_BSEG-HKONT = '0000500100'.&lt;/P&gt;&lt;P&gt;WA_FINAL-NET = WA_BSEG-DMBTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF wa_bseg-hkont = '0000301500 '.&lt;/P&gt;&lt;P&gt;wa_final-sertax = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;wa_final-gross = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;EndIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;CLEAR: wa_final, wa_kna1, wa_bseg, wa_adv, wa_brand.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;############################&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work according to what is been described as expected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brajvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356826#M1233232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356827#M1233233</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 do agree with Brajveer.. if conditions are not properly handled. Please make changes as suggested by him and then post if issue persist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356827#M1233233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356828#M1233234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thanks for helping out ....but its not fetching the value ....its still the same &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have modified as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_bseg INTO wa_bseg WITH KEY belnr = wa_pos-belnr.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       iF WA_BSEG-HKONT = '0000500100'.&lt;/P&gt;&lt;P&gt;         WA_FINAL-NET = WA_BSEG-DMBTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont ='0000300450'.&lt;/P&gt;&lt;P&gt;            wa_Final-Educess = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont = '0000300455'.&lt;/P&gt;&lt;P&gt;            wa_final-cesspay = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont = '0000209800'.&lt;/P&gt;&lt;P&gt;.            wa_final-gross =  wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356828#M1233234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356829#M1233235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Rachel...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give.. the part of the code where you are populating WA_FINAL-GROSS .. and also the codes which are above that and below that.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356829#M1233235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356830#M1233236</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;Please mention your code correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the new code mentioned by you, there is no sertax field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356830#M1233236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356831#M1233237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi subzero....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F it_pos[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      SELECT bukrs belnr  gjahr xref1 xref2  kunnr  buzei dmbtr hkont koart&lt;/P&gt;&lt;P&gt;         FROM bseg INTO CORRESPONDING FIELDS OF TABLE it_bseg&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN it_pos&lt;/P&gt;&lt;P&gt;         WHERE bukrs  =  it_pos-bukrs&lt;/P&gt;&lt;P&gt;            AND belnr =  it_pos-belnr&lt;/P&gt;&lt;P&gt;            AND gjahr = it_pos-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&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;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT it_bseg  BY belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_pos INTO wa_pos.&lt;/P&gt;&lt;P&gt;    READ TABLE it_kna1 INTO wa_kna1 WITH KEY kunnr = wa_pos-konto.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      wa_final-name1 = wa_kna1-name1 .&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_final-kunnr = wa_pos-konto.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   wa_final-ktokd = wa_pos-ktokd.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    wa_final-xref1 = wa_pos-xref1.&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;    &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="22" type="ul"&gt;&lt;P&gt;   COMMENTED SINCE VALUE NOT GETTING STORED IN POS TABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    wa_final-net = wa_pos-bwwrt.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE it_bseg INTO wa_bseg WITH KEY belnr = wa_pos-belnr.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       iF WA_BSEG-HKONT = '0000500100'.&lt;/P&gt;&lt;P&gt;         WA_FINAL-NET = WA_BSEG-DMBTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont ='0000300450'.&lt;/P&gt;&lt;P&gt;            wa_Final-Educess = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont = '0000300455'.&lt;/P&gt;&lt;P&gt;            wa_final-cesspay = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont = '0000209800'.&lt;/P&gt;&lt;P&gt;.            wa_final-gross =  wa_bseg-dmbtr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;    Endif.&lt;/P&gt;&lt;P&gt;    CLEAR: wa_final, wa_kna1, wa_bseg, wa_adv, wa_brand.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356831#M1233237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356832#M1233238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...rachel..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem may be because of the fact that you are not passing all the key fields which reading the table IT_BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the below read statement..as given and check out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
READ TABLE it_bseg INTO wa_bseg WITH KEY bukrs = wa_pos-bukrs belnr = wa_pos-belnr gjahr = wa_pos-gjahr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, include BUZEI also in the condition.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out and see if this works..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356832#M1233238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356833#M1233239</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 specified the condition as u said but then its fetching value only for gross nothing else.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;buzei is not present in it_pos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more thing is that when i debugg in it_pos only one hkont is there ie for Gross , is it why its getting value for only gross...wat ele can be done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356833#M1233239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356834#M1233240</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;Instead of reading, loop at internal table. BSEG has four primary key but you are reading only by Doument number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356834#M1233240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356835#M1233241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i have specified buzei too in the condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356835#M1233241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356836#M1233242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes prashant but now i have corrected and added all my primary key in the coditon but then iam getting value only for one field(Gross) rest not getting filled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356836#M1233242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356837#M1233243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rachel...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the HKONT value comeing for different iterations of the looop..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the same value comin for each iteration or are you getting different values for HKONT.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356837#M1233243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356838#M1233244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Plz check in your work area whether the values are coming properly or not, And accordingly you can change your logic, And if the values are proper then plz cross check the structure of your table and work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356838#M1233244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356839#M1233245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;corresponding value for 209800(hkont) value for gross is getting filled&lt;/P&gt;&lt;P&gt;rest no values is getting populated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;WA_BSEG-HKONT   0000209800&lt;/P&gt;&lt;P&gt;wa_final-gross              20989.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other than this other Hkont and amt r not populating&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356839#M1233245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356840#M1233246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jus check whether CESSPAY.. EDUTAX...SERTAX ..fields etc...are of the same type as DMBTR...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356840#M1233246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356841#M1233247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as read stmet will read only  single record i am using loop inside loop  but value is not populating in &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where condition where belnr = it_pos-belnr&lt;/STRONG&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_pos INTO wa_pos.&lt;/P&gt;&lt;P&gt;    READ TABLE it_kna1 INTO wa_kna1 WITH KEY kunnr = wa_pos-konto.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      wa_final-name1 = wa_&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_bseg into wa_bseg where belnr = it_pos-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  iF WA_BSEG-HKONT = '0000500100'.&lt;/P&gt;&lt;P&gt;         WA_FINAL-NET = WA_BSEG-DMBTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont ='0000300450'.&lt;/P&gt;&lt;P&gt;            wa_Final-Educess = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont = '0000300455'.&lt;/P&gt;&lt;P&gt;            wa_final-cesspay = wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif wa_bseg-hkont = '0000209800'.&lt;/P&gt;&lt;P&gt;.            wa_final-gross =  wa_bseg-dmbtr.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;&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;    APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;        CLEAR: wa_final, wa_kna1, wa_bseg, wa_adv, wa_brand.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 09:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356841#M1233247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T09:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356842#M1233248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey.... rachel..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are doing a mistake..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are populating the WA_FINAL inside a loop... but you are appending it outside that loop..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats where its going wrong..... !!.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 09:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356842#M1233248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: not appending properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356843#M1233249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the code..as given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
;loop at it_bseg into wa_bseg where belnr = it_pos-belnr.

iF WA_BSEG-HKONT = '0000500100'.
WA_FINAL-NET = WA_BSEG-DMBTR.

elseif wa_bseg-hkont ='0000300450'.
wa_Final-Educess = wa_bseg-dmbtr.

elseif wa_bseg-hkont = '0000300455'.
wa_final-cesspay = wa_bseg-dmbtr.

elseif wa_bseg-hkont = '0000209800'.
. wa_final-gross = wa_bseg-dmbtr.
endif.

APPEND wa_final TO it_final. " Add this statement

Endloop.

*APPEND wa_final TO it_final.---comment this

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 09:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending-properly/m-p/5356843#M1233249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T09:06:57Z</dc:date>
    </item>
  </channel>
</rss>

