<?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: FI Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248158#M144180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, don't use BSEG if you are looking at GL accounts. Instead, use the GL index tables BSIS and BSAS. Secondly, all of the amounts in these tables are positive. You have to take into account the debit credit indicator SHKZG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Apr 2006 14:25:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-24T14:25:37Z</dc:date>
    <item>
      <title>FI Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248153#M144175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get the sum of the amount according the G/L Account number from BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BSEG table&lt;/P&gt;&lt;P&gt;G/L Account		Amount&lt;/P&gt;&lt;P&gt;111111111		10&lt;/P&gt;&lt;P&gt;111111111		20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my report i need sum for that G/L Account number from bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G/L Account		Amount&lt;/P&gt;&lt;P&gt;111111111		30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the below coding but i getting&lt;/P&gt;&lt;P&gt;tables : bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_hknot for bseg-hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;        include structure bseg.&lt;/P&gt;&lt;P&gt;data : end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bseg into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;sort itab by hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write :  / 'G/L Acnt',  'DOCNUMBER', 'AMOUNT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  at NEW HKONT.&lt;/P&gt;&lt;P&gt;    write : / itab-hkont.&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  at END OF HKONT.&lt;/P&gt;&lt;P&gt;    sum.&lt;/P&gt;&lt;P&gt;    write :  itab-dmbtr.&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT	&lt;/P&gt;&lt;P&gt;G/L Account		Amount&lt;/P&gt;&lt;P&gt;111111111		10&lt;/P&gt;&lt;P&gt;111111111		20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 10:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248153#M144175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T10:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248154#M144176</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;Sorry for the previous wrong reply..&lt;/P&gt;&lt;P&gt;You can use Control break processing..&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;Please mark helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Tanveer Shaikh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 10:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248154#M144176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T10:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248155#M144177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create an table like&lt;/P&gt;&lt;P&gt;begin of itab,&lt;/P&gt;&lt;P&gt;hkont like bseg-hkont,&lt;/P&gt;&lt;P&gt;dmbtr like bseg-dmbtr,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then,&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;at NEW HKONT.&lt;/P&gt;&lt;P&gt;write : / itab-hkont.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at END OF HKONT.&lt;/P&gt;&lt;P&gt;sum.&lt;/P&gt;&lt;P&gt;write : itab-dmbtr.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 10:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248155#M144177</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-04-24T10:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248156#M144178</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 is fine but&lt;/P&gt;&lt;P&gt;HKONT should be first field in ur internal table ( other wise it will not work )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to achieve this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make new internal table with 3 fields only &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ur table and insert 3 fields in new internal table that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) HKONT&lt;/P&gt;&lt;P&gt;2) 'DOCNUMBER&lt;/P&gt;&lt;P&gt;3) Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the same order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apply the same logic that ur currently using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to asq further question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 11:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248156#M144178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T11:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248157#M144179</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;Select * From bseg - is not going to help in summing because company code, belnr are left to field SAKNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would be better two select only two fields from BSEG and then sort it by G/L account and then use AT NEW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 11:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248157#M144179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248158#M144180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, don't use BSEG if you are looking at GL accounts. Instead, use the GL index tables BSIS and BSAS. Secondly, all of the amounts in these tables are positive. You have to take into account the debit credit indicator SHKZG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 14:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248158#M144180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T14:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248159#M144181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But if all you are interested in is the GL balances, you can use table GLT0 (GL totals).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 14:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248159#M144181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248160#M144182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the below code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Tables: BSEG.

Select-options: s_hknot for bseg-hkont.

Data: begin of itab occurs 0,
        hkont type bseg-hkont,
        dmbtr type bseg-dmbtr,
      end of itab.

select hkont
       dmbtr 
  from bseg
  into table itab
 where hkont in s_hkont.

sort itab by hkont.

loop at itab.
  at end of hkont.
    sum.
    write:/ itab-hkont,
            itab-dmbtr.
  endat.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 14:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report/m-p/1248160#M144182</guid>
      <dc:creator>sreekanthgo</dc:creator>
      <dc:date>2006-04-24T14:35:28Z</dc:date>
    </item>
  </channel>
</rss>

