<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261097#M1215109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah keerthi, i understood wat u have said....&lt;/P&gt;&lt;P&gt;hi keerthy  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u so much &lt;/P&gt;&lt;P&gt;but my requirement is &lt;/P&gt;&lt;P&gt;if it encounter hkont  = '500100'&lt;/P&gt;&lt;P&gt;it should get me the amount  i.e wa_final-gross = wa_amount-dmbtr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if it encounters koart  = 'D'&lt;/P&gt;&lt;P&gt;it should get me the amount in that line  , that will be my gross&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so both gross and amount has the same field name as DMBTR&lt;/P&gt;&lt;P&gt;only with hkont and koart we can bring the amount as gross and net &lt;/P&gt;&lt;P&gt;for that particular belnr.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now how do u think i can modify.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table it_amount into wa_amount with key belnr = wa_bseg-belnr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wa_amount-hkont = '0000500100'.&lt;/P&gt;&lt;P&gt;   WA_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ElseIf wa_amount-koart = 'D'.&lt;/P&gt;&lt;P&gt;      wa_final-net = wa_amount-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;At end of belnr.&lt;/P&gt;&lt;P&gt;  WA_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;  wa_final-net = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append wa_final to it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*clear wa_amount.&lt;/P&gt;&lt;P&gt;clear wa_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2009 11:11:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-02T11:11:50Z</dc:date>
    <item>
      <title>Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261071#M1215083</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;&lt;/P&gt;&lt;P&gt;i have strucked up with at End of usage in my report,&lt;/P&gt;&lt;P&gt;which i already posted and i have tried with another &lt;/P&gt;&lt;P&gt;way, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and its almost solved,,,,,only problem is that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam getting the output for the first liine alone rest its coming as 0.00 and 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i debugged ....the entire first loop is executed&lt;/P&gt;&lt;P&gt;and then it goes to the second loop aappending all values except my wa_final-gross and wa_final-net&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think i have gone somewhere wrong in loopin or i dont know where&lt;/P&gt;&lt;P&gt;please do help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_AMOUNT  by belnr.&lt;/P&gt;&lt;P&gt;LOOP AT IT_AMOUNT INTO WA_AMOUNT.&lt;/P&gt;&lt;P&gt;If wa_AMOUNT-hkont = '0000500100'.&lt;/P&gt;&lt;P&gt;   wa_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;eNDIF.&lt;/P&gt;&lt;P&gt;If wa_AMOUNT-koart = 'D'.&lt;/P&gt;&lt;P&gt;  wa_final-net = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;eNDIF .&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at it_bseg into wa_bseg . &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   wa_final-kunnr = wa_bseg-kunnr.&lt;/P&gt;&lt;P&gt;   wa_final-xref1 = wa_bseg-xref1.&lt;/P&gt;&lt;P&gt;   wa_final-xref2 = wa_bseg-xref2.&lt;/P&gt;&lt;P&gt;read table it_bkpf into wa_bkpf  with key belnr =  wa_bseg-belnr.   &lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    wa_final-xblnr = wa_bkpf-xblnr.&lt;/P&gt;&lt;P&gt;    wa_final-bldat = wa_bkpf-bldat.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;At end of belnr.&lt;/P&gt;&lt;P&gt;WA_final-gross = wa_amount-gross.&lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-net.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;Clear wa_amount.&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;clear wa_final.&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;OUTPUT&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;4552	13.07.2006   Entrepreneurshi  Bharat  200,600.00	225,153.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4552	13.07.2006   ge		        0.00   	0.00&lt;/P&gt;&lt;P&gt;4552	13.07.2006   test	                       0.00	                0.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;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 06:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261071#M1215083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T06:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261072#M1215084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;It seems that ur this part of code is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort it_AMOUNT by belnr.
LOOP AT IT_AMOUNT INTO WA_AMOUNT.

If wa_AMOUNT-hkont = '0000500100' . " Suppose ur next record does not have HKONT = 0000500100
" then wa_final-gross is assigend the value zero. so include ELSE also here
wa_final-gross = wa_amount-dmbtr.
 ELSE.
" Coding if HKONT NE 0000500100 then what will be wa_final-gross.

eNDIF.

If wa_AMOUNT-koart = 'D'. " Same here if any record does not have KOART = D
" then wa_final-net will be assigened zero.so include ELSE also here
wa_final-net = wa_amount-dmbtr.
Else.
" if KOART NE D then what will be wa_final-net.
eNDIF .
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz make changes what i mentioned. hope it will solve out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 06:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261072#M1215084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T06:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261073#M1215085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write  append statement into &lt;STRONG&gt;at end....endat&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end of belnr.&lt;/P&gt;&lt;P&gt;WA_final-gross = wa_amount-gross.&lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;append wa_final to it_final.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Clear wa_amount.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*clear wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 07:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261073#M1215085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T07:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261074#M1215086</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;thanx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i hope this is wat u mention &lt;/P&gt;&lt;P&gt;LOOP AT IT_AMOUNT INTO WA_AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If wa_AMOUNT-hkont = '0000500100'.&lt;/P&gt;&lt;P&gt;   wa_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;eNDIF.&lt;/P&gt;&lt;P&gt;If wa_AMOUNT-koart = 'D'.&lt;/P&gt;&lt;P&gt;  wa_final-net = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;  ELSE.&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;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;i tried but still its the same...and no effect &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think the problem is in getting appended cos when i debugged , only one value iam getting in the first loop.........&lt;/P&gt;&lt;P&gt;its not showing  the rest of the values for &lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt; wa_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 07:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261074#M1215086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T07:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261075#M1215087</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;You used 2 loops LOOP AT IT_AMOUNT INTO WA_AMOUNT.&lt;/P&gt;&lt;P&gt;                          LOOP AT IT_BSEG INTO WA_BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you are appending the records to final internal table in the loop ita_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change your logic as write 2 loops one inside other with where condition.&lt;/P&gt;&lt;P&gt;Loop at it_amount ....&lt;/P&gt;&lt;P&gt;loop at it_bseg --- where ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end of .&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;append wa_final to itab_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;And also when using Control break statemet declare another work area and append those records to final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Surendar Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 07:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261075#M1215087</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2009-02-28T07:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261076#M1215088</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;u have added the ELSE class but did not mention yet that what will be the value assigend to &lt;/P&gt;&lt;P&gt;wa_final-gross and wa_final-net  in ELSE class&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_AMOUNT INTO WA_AMOUNT.

If wa_AMOUNT-hkont = '0000500100'.
wa_final-gross = wa_amount-dmbtr.
ELSE.
" Here u will have to assign the value accroding to ur need
wa_final-gross = '?
eNDIF.
If wa_AMOUNT-koart = 'D'.
wa_final-net = wa_amount-dmbtr.
ELSE.
wa_final-net = "?
eNDIF .
*append wa_final to it_Final.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 07:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261076#M1215088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T07:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261077#M1215089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry tahir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was wrong since i saw the outoput alone&lt;/P&gt;&lt;P&gt;i debugged and saw where the values are getting changed&lt;/P&gt;&lt;P&gt;means previous it  was  going inside the loop but  only one value it showed&lt;/P&gt;&lt;P&gt;now the problem is its not appending in my final table.....thou the value&lt;/P&gt;&lt;P&gt;gets changed in my first loop.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 07:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261077#M1215089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T07:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261078#M1215090</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;The code which u paste in that only values are coming when HKONT = '00005011...'&lt;/P&gt;&lt;P&gt;The problem is that in final table how it will assign the value to wa_final-net and wa_final-gross.&lt;/P&gt;&lt;P&gt;u are assigning only in as&lt;/P&gt;&lt;P&gt; loop at it_amount into wa_amount.&lt;/P&gt;&lt;P&gt;  if wa_amount-hknot = '00050000'.&lt;/P&gt;&lt;P&gt;    wa_final-gross = wa_amount-field.&lt;/P&gt;&lt;P&gt;  now suppose if wa_amount-hknot NE '00050000 then what will be assigend to wa_final-gross.&lt;/P&gt;&lt;P&gt;according to your coding wa_final-gross will be assigned 0 if wa_amount-hknot NE '00050000 .&lt;/P&gt;&lt;P&gt;u have to assign it sum value. ur append is working well for final.&lt;/P&gt;&lt;P&gt;dnt change that. u will have to just code in esle statement.&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_amount into wa_amount.
  if wa_amount-hknot = '00050000'.
    wa_final-gross = wa_amount-field.
  esle.
   wa_final-gross = " according to ur desire.
 endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 08:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261078#M1215090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T08:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261079#M1215091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tahir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hey thanx for helpin me out....&lt;/P&gt;&lt;P&gt;i tried the way u told but &lt;/P&gt;&lt;P&gt;u have asked me to give 'what i desire'&lt;/P&gt;&lt;P&gt;in my else stmt.....&lt;/P&gt;&lt;P&gt;i need only the gross for hkont cond&lt;/P&gt;&lt;P&gt;and net for koart conditon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more thing wat u hav said if&lt;/P&gt;&lt;P&gt;it is NE '000500100' and 'D' it will &lt;/P&gt;&lt;P&gt;return 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the input which i have given to check&lt;/P&gt;&lt;P&gt;willl definitely satisfy the condition&lt;/P&gt;&lt;P&gt;and has values for gross and net....and values are there in table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i debuggged now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First its finish the entire loop for it_Amount &lt;/P&gt;&lt;P&gt;for all the doc no...it comes out in output,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Next when it goes inside the second loop for it_bseg&lt;/P&gt;&lt;P&gt;it fetches all the value but when it goes to &lt;/P&gt;&lt;P&gt;at end of belnr stmet...&lt;/P&gt;&lt;P&gt;only for first time it gets the value for gross and net&lt;/P&gt;&lt;P&gt;rest it brings 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i change.....???PLS DO HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If wa_amount-hkont = '0000500100'.&lt;/P&gt;&lt;P&gt;   wa_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ElseIf wa_amount-koart = 'D'.&lt;/P&gt;&lt;P&gt;  wa_final-net = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;eNDIF .&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;loop at it_bseg into wa_bseg .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   wa_final-kunnr = wa_bseg-kunnr.&lt;/P&gt;&lt;P&gt;read table it_bkpf into wa_bkpf  with key belnr =  wa_bseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_final-xblnr = wa_bkpf-xblnr.&lt;/P&gt;&lt;P&gt;    wa_final-bldat = wa_bkpf-bldat.&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;At end of belnr.&lt;/P&gt;&lt;P&gt;WA_final-gross = wa_amount-gross.&lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;Clear wa_amount.&lt;/P&gt;&lt;P&gt;clear wa_final.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261079#M1215091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T05:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261080#M1215092</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;I have got u now more clearly.&lt;/P&gt;&lt;P&gt;problem is here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at it_bseg into wa_bseg .
  wa_final-kunnr = wa_bseg-kunnr.
  read table it_bkpf into wa_bkpf with key belnr = wa_bseg-belnr.
  if sy-subrc = 0.
    wa_final-xblnr = wa_bkpf-xblnr.
    wa_final-bldat = wa_bkpf-bldat.
 endif.
 At end of belnr. " At end is executed when the one BELNR is ended.
" Means if it_bseg table contains enteries against only one BELNR then AT END will execute once.
" if it_bseg table contains enteries against Two different BELNR's then AT END will execute two time,
"  right after end of each BELNR.
  WA_final-gross = wa_amount-gross.
  wa_final-net = wa_amount-net.
Endat.
append wa_final to it_final.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;" It seems that IT_BSEG contains enteries against one BELNR. That is why AT END is being&lt;/P&gt;&lt;P&gt; executed once.Plz check it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261080#M1215092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T05:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261081#M1215093</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;plz provide me the a little bit detail of it_amount and it_bseg table and then tell how u want&lt;/P&gt;&lt;P&gt;to display these two tables data in it_final. And also check ur program by removing AT END OF BELNR.&lt;/P&gt;&lt;P&gt;Because output u provided told that there is only one BELNR enteries. So check ur program by removing&lt;/P&gt;&lt;P&gt;AT END OF BELNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 06:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261081#M1215093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T06:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261082#M1215094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tahir ,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanx alot for helping &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table bseg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i give input for Belnr(document no say 90038)&lt;/P&gt;&lt;P&gt;it has 4 line items .... like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CCode BEKNR KOART  DMBTR        HKONT     &lt;/P&gt;&lt;P&gt;2000 90038  S      200.00        0000500100&lt;/P&gt;&lt;P&gt;2000 90038  S      45.00         0000300100&lt;/P&gt;&lt;P&gt;2000 90038  S      21,00          0000400100&lt;/P&gt;&lt;P&gt;2000 90038  D      225.00         0000200100&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;I need only the gross whcih is (200) -gross and net(225) so i have&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;taken it by hkont '500100' for taking gross and koart = 'D' for taking net....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But now my problem is....after do all changes as below....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;in my output first line alone iam getting the answer , but from second line on&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;its showing 0.00 ..........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;is it now clear.....PLS help me out&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i have changed by commenting AT end of belnr....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but by doing so....all my net and gross is becoming 0.0.&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;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it_bkpf[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr  gjahr xref1 xref2  kunnr  buzei dmbtr hkont koart from bseg into corresponding fields of table it_bseg&lt;/P&gt;&lt;P&gt;                                          for all entries in it_bkpf&lt;/P&gt;&lt;P&gt;                                           where  bukrs = it_bkpf-bukrs&lt;/P&gt;&lt;P&gt;                                                  and belnr = it_bkpf-belnr&lt;/P&gt;&lt;P&gt;                                                  and gjahr = it_bkpf-gjahr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                and ( hkont = '000500100' or koart = 'D').&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                and kunnr =  it_bseg-kunnr.&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;IF it_bseg[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  bukrs belnr gjahr dmbtr  hkont koart from bseg into corresponding fields of table it_amount&lt;/P&gt;&lt;P&gt;                                for all entries in it_bseg&lt;/P&gt;&lt;P&gt;                                 where bukrs = it_bseg-bukrs&lt;/P&gt;&lt;P&gt;                                 and belnr = it_bseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*delete it_bseg where hkont = '.0000301500' and hkont = '0000300450'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*delete  it_bseg where kunnr = ' '. " for deleting document details with  blank customer number .&lt;/P&gt;&lt;P&gt;&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;LOOP AT IT_AMOUNT INTO WA_AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF wa_amount-hkont = '0000500100'.&lt;/P&gt;&lt;P&gt;               wa_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ElseIf wa_amount-koart = 'D'.&lt;/P&gt;&lt;P&gt;          wa_final-net = wa_amount-dmbtr.&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;*delete it_amount where hkont &amp;lt;&amp;gt; '0000500100'.&lt;/P&gt;&lt;P&gt;*delete it_amount where koart &amp;lt;&amp;gt; 'D'.&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;&lt;/P&gt;&lt;P&gt;loop at it_bseg into wa_bseg .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   wa_final-kunnr = wa_bseg-kunnr.&lt;/P&gt;&lt;P&gt;   wa_final-xref1 = wa_bseg-xref1.&lt;/P&gt;&lt;P&gt;   wa_final-xref2 = wa_bseg-xref2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_bkpf into wa_bkpf  with key belnr =  wa_bseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_final-xblnr = wa_bkpf-xblnr.&lt;/P&gt;&lt;P&gt;    wa_final-bldat = wa_bkpf-bldat.&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;split wa_final-xblnr at '-'  into itab-s1 itab-s2.&lt;/P&gt;&lt;P&gt;move itab-s2  to wa_Final-xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end of belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_final-gross = wa_amount-gross.&lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-net.&lt;/P&gt;&lt;P&gt;Clear wa_amount.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_final.&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;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company code &lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;ORigin&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;output which i getting for my report&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bilno     DAte                               name    prod    GROSS   NET&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;4552	13.07.2006	(TN)	Bharat 	 200	 225&lt;/P&gt;&lt;P&gt;4552	13.07.2006	(TN)	Bharat 	0.00	0.00&lt;/P&gt;&lt;P&gt;4552	13.07.2006	(TN)	Bharat 	0.00	0.00&lt;/P&gt;&lt;P&gt;4552	13.07.2006	(TN)	Bharat 	0.00	0.00&lt;/P&gt;&lt;P&gt;4554	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4554	13.07.2006	(TN)	Bharat     0.00	0.00&lt;/P&gt;&lt;P&gt;4554	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4554	13.07.2006	(TN)	Bharat     0.00	0.00&lt;/P&gt;&lt;P&gt;4555	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4555	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4555	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4555	13.07.2006	(TN)	Bharat      0.00	0.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;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;4573	13.07.2006	test	.Com    0.00	0.00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 06:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261082#M1215094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T06:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261083#M1215095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tahir ,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanx alot for helping &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table bseg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i give input for Belnr(document no say 90038)&lt;/P&gt;&lt;P&gt;it has 4 line items .... like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CCode BEKNR KOART  DMBTR        HKONT     &lt;/P&gt;&lt;P&gt;2000 90038  S      200.00        0000500100&lt;/P&gt;&lt;P&gt;2000 90038  S      45.00         0000300100&lt;/P&gt;&lt;P&gt;2000 90038  S      21,00          0000400100&lt;/P&gt;&lt;P&gt;2000 90038  D      225.00         0000200100&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;I need only the gross whcih is (200) -gross and net(225) so i have&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;taken it by hkont '500100' for taking gross and koart = 'D' for taking net....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But now my problem is....after do all changes as below....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;in my output first line alone iam getting the answer , but from second line on&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;its showing 0.00 ..........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;is it now clear.....PLS help me out&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i have changed by commenting AT end of belnr....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but by doing so....all my net and gross is becoming 0.0.&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;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it_bkpf[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr  gjahr xref1 xref2  kunnr  buzei dmbtr hkont koart from bseg into corresponding fields of table it_bseg&lt;/P&gt;&lt;P&gt;                                          for all entries in it_bkpf&lt;/P&gt;&lt;P&gt;                                           where  bukrs = it_bkpf-bukrs&lt;/P&gt;&lt;P&gt;                                                  and belnr = it_bkpf-belnr&lt;/P&gt;&lt;P&gt;                                                  and gjahr = it_bkpf-gjahr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                and ( hkont = '000500100' or koart = 'D').&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                and kunnr =  it_bseg-kunnr.&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;IF it_bseg[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  bukrs belnr gjahr dmbtr  hkont koart from bseg into corresponding fields of table it_amount&lt;/P&gt;&lt;P&gt;                                for all entries in it_bseg&lt;/P&gt;&lt;P&gt;                                 where bukrs = it_bseg-bukrs&lt;/P&gt;&lt;P&gt;                                 and belnr = it_bseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*delete it_bseg where hkont = '.0000301500' and hkont = '0000300450'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*delete  it_bseg where kunnr = ' '. " for deleting document details with  blank customer number .&lt;/P&gt;&lt;P&gt;&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;LOOP AT IT_AMOUNT INTO WA_AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF wa_amount-hkont = '0000500100'.&lt;/P&gt;&lt;P&gt;               wa_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ElseIf wa_amount-koart = 'D'.&lt;/P&gt;&lt;P&gt;          wa_final-net = wa_amount-dmbtr.&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;*delete it_amount where hkont &amp;lt;&amp;gt; '0000500100'.&lt;/P&gt;&lt;P&gt;*delete it_amount where koart &amp;lt;&amp;gt; 'D'.&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;&lt;/P&gt;&lt;P&gt;loop at it_bseg into wa_bseg .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   wa_final-kunnr = wa_bseg-kunnr.&lt;/P&gt;&lt;P&gt;   wa_final-xref1 = wa_bseg-xref1.&lt;/P&gt;&lt;P&gt;   wa_final-xref2 = wa_bseg-xref2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_bkpf into wa_bkpf  with key belnr =  wa_bseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_final-xblnr = wa_bkpf-xblnr.&lt;/P&gt;&lt;P&gt;    wa_final-bldat = wa_bkpf-bldat.&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;split wa_final-xblnr at '-'  into itab-s1 itab-s2.&lt;/P&gt;&lt;P&gt;move itab-s2  to wa_Final-xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end of belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_final-gross = wa_amount-gross.&lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-net.&lt;/P&gt;&lt;P&gt;Clear wa_amount.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_final.&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;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company code &lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;ORigin&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;output which i getting for my report&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bilno     DAte                               name    prod    GROSS   NET&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;4552	13.07.2006	(TN)	Bharat 	 200	 225&lt;/P&gt;&lt;P&gt;4552	13.07.2006	(TN)	Bharat 	0.00	0.00&lt;/P&gt;&lt;P&gt;4552	13.07.2006	(TN)	Bharat 	0.00	0.00&lt;/P&gt;&lt;P&gt;4552	13.07.2006	(TN)	Bharat 	0.00	0.00&lt;/P&gt;&lt;P&gt;4554	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4554	13.07.2006	(TN)	Bharat     0.00	0.00&lt;/P&gt;&lt;P&gt;4554	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4554	13.07.2006	(TN)	Bharat     0.00	0.00&lt;/P&gt;&lt;P&gt;4555	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4555	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4555	13.07.2006	(TN)	Bharat      0.00	0.00&lt;/P&gt;&lt;P&gt;4555	13.07.2006	(TN)	Bharat      0.00	0.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;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;4573	13.07.2006	test	.Com    0.00	0.00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 06:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261083#M1215095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T06:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261084#M1215096</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;have u just removed AT END OF BELNR &amp;amp; ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;At end of belnr. " Just remove this

WA_final-gross = wa_amount-gross." do not remove this

wa_final-net = wa_amount-net. " do not remove this
Clear wa_amount. " do not remove this
Endat. " And remove this&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have u checked it so&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:01:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261084#M1215096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T07:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261085#M1215097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes tahir...&lt;/P&gt;&lt;P&gt;i have just commented AT end of belnr&lt;/P&gt;&lt;P&gt;and Endat...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result is.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its showing 0.00 0.00  for all Gross and net&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261085#M1215097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T07:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261086#M1215098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Bilno DAte name prod GROSS NET&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;4552 13.07.2006 (TN) Bharat 200 225&lt;/P&gt;&lt;P&gt;4552 13.07.2006 (TN) Bharat 0.00 0.00 " What will Gross &amp;amp; Net Values here u want. 200 &amp;amp; 225 is it?&lt;/P&gt;&lt;P&gt;4552 13.07.2006 (TN) Bharat 0.00 0.00 " What will Gross &amp;amp; Net Values here u want. 200 &amp;amp; 225 is it?&lt;/P&gt;&lt;P&gt;4552 13.07.2006 (TN) Bharat 0.00 0.00 . . . . . . .&lt;/P&gt;&lt;P&gt;4554 13.07.2006 (TN) Bharat 0.00 0.00 . . . . . . .&lt;/P&gt;&lt;P&gt;4554 13.07.2006 (TN) Bharat 0.00 0.00 . . . . . . .&lt;/P&gt;&lt;P&gt;4554 13.07.2006 (TN) Bharat 0.00 0.00 . . . . . . .&lt;/P&gt;&lt;P&gt;4554 13.07.2006 (TN) Bharat 0.00 0.00 . . . . . . .&lt;/P&gt;&lt;P&gt;4555 13.07.2006 (TN) Bharat 0.00 0.00 . . . . . . .&lt;/P&gt;&lt;P&gt;4555 13.07.2006 (TN) Bharat 0.00 0.00 . . . . . . .&lt;/P&gt;&lt;P&gt;4555 13.07.2006 (TN) Bharat 0.00 0.00 . . . . . . .&lt;/P&gt;&lt;P&gt;4555 13.07.2006 (TN) Bharat 0.00 0.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;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;4573 13.07.2006 test .Com 0.00 0.00 " What will Gross &amp;amp; Net Values here u want. 200 &amp;amp; 225 is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is so then made some changes where mentioned and execute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_AMOUNT INTO WA_AMOUNT.
  IF wa_amount-hkont = '0000500100'.
 grossvalue = wa_amount-dmbtr. " Declare grossvalue variable : Change here


ElseIf wa_amount-koart = 'D'.
netvalue = wa_amount-dmbtr. " Declare netvalue variable : Change here

eNDIF .

*delete it_amount where hkont '0000500100'.
*delete it_amount where koart 'D'.
*
Endloop.


loop at it_bseg into wa_bseg .



wa_final-kunnr = wa_bseg-kunnr.
wa_final-xref1 = wa_bseg-xref1.
wa_final-xref2 = wa_bseg-xref2.


read table it_bkpf into wa_bkpf with key belnr = wa_bseg-belnr.

if sy-subrc = 0.

wa_final-xblnr = wa_bkpf-xblnr.
wa_final-bldat = wa_bkpf-bldat.

endif.



split wa_final-xblnr at '-' into itab-s1 itab-s2.
move itab-s2 to wa_Final-xblnr.

At end of belnr.

WA_final-gross = grossvalue. " Make change here
wa_final-net = netvalue. " Make change here
Clear wa_amount.
Endat.

append wa_final to it_final.

clear wa_final.


Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: tahir naqqash on Mar 2, 2009 12:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261086#M1215098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T07:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261087#M1215099</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;I can figure out that , u are looping the it_bseg table but in this loop u re reading the values from it_AMOUNT table.&lt;/P&gt;&lt;P&gt;ie.&lt;/P&gt;&lt;P&gt;loop at it_bseg into wa_bseg . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_final-kunnr = wa_bseg-kunnr.&lt;/P&gt;&lt;P&gt;wa_final-xref1 = wa_bseg-xref1.&lt;/P&gt;&lt;P&gt;wa_final-xref2 = wa_bseg-xref2.&lt;/P&gt;&lt;P&gt;read table it_bkpf into wa_bkpf with key belnr = wa_bseg-belnr. &lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_final-xblnr = wa_bkpf-xblnr.&lt;/P&gt;&lt;P&gt;wa_final-bldat = wa_bkpf-bldat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;At end of belnr.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA_final-gross = wa_amount-gross-----&amp;gt; before assigning these values..u need to read this entry from it_amount table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_final-net = wa_amount-net.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;Clear wa_amount.&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;clear wa_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keerthy K on Mar 2, 2009 9:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 08:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261087#M1215099</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-03-02T08:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261088#M1215100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi keerthy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx alot for ur help....&lt;/P&gt;&lt;P&gt;just before i realized and  tried like below&lt;/P&gt;&lt;P&gt;but problem is that , its still shows the same like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for first line, its getting the value ........rest as 0.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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_AMOUNT INTO WA_AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF wa_amount-hkont = '0000500100'.&lt;/P&gt;&lt;P&gt;               wa_final-gross = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If wa_amount-koart = 'D'.&lt;/P&gt;&lt;P&gt;          wa_final-net = wa_amount-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;    eNDIF .&lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table it_amount into wa_amount with key belnr = wa_bseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end of belnr.&lt;/P&gt;&lt;P&gt;if Sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WA_final-gross = wa_amount-gross.&lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-net.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Endat.&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_amount.&lt;/P&gt;&lt;P&gt;clear wa_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 08:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261088#M1215100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T08:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261089#M1215101</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;thanx for replying......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have asked me to declare net value and gross value varibal e &lt;/P&gt;&lt;P&gt;but i have already told u that one document number has 4 to 5 line itemns&lt;/P&gt;&lt;P&gt;and the amount(net gross tax etc) has the same field as DMBTR&lt;/P&gt;&lt;P&gt;thats y iam fetching with the condition hkont and koart....according to that&lt;/P&gt;&lt;P&gt;hkont  = '500100'&lt;/P&gt;&lt;P&gt;and koart   = 'D' it should fetch the gross and net value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so now i realized that i shud put one read stmt inside bseg loop (i.e)&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_amount into wa_amount with key belnr = wa_bseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end of belnr.&lt;/P&gt;&lt;P&gt;if Sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WA_final-gross = wa_amount-gross.&lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-net.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Endat.&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_amount.&lt;/P&gt;&lt;P&gt;clear wa_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still the same problem exist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 08:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261089#M1215101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T08:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Not appending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261090#M1215102</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 be ur new code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_bseg into wa_bseg . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_final-kunnr = wa_bseg-kunnr.&lt;/P&gt;&lt;P&gt;wa_final-xref1 = wa_bseg-xref1.&lt;/P&gt;&lt;P&gt;wa_final-xref2 = wa_bseg-xref2.&lt;/P&gt;&lt;P&gt;read table it_bkpf into wa_bkpf with key belnr = wa_bseg-belnr. &lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_final-xblnr = wa_bkpf-xblnr.&lt;/P&gt;&lt;P&gt;wa_final-bldat = wa_bkpf-bldat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read table it_amount into wa_amount with key belnr = wa_bseg-belnr.---&amp;gt; please put a break point here for the 2nd loop and just see if the value is read from the it_amount.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;At end of belnr.--&amp;gt;y do u need this at end ??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if Sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WA_final-gross = wa_amount-gross.&lt;/P&gt;&lt;P&gt;wa_final-net = wa_amount-net.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Endat.&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_amount.&lt;/P&gt;&lt;P&gt;clear wa_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 08:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-appending/m-p/5261090#M1215102</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-03-02T08:57:20Z</dc:date>
    </item>
  </channel>
</rss>

