<?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: Small report error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089537#M732802</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;  There may be multiple entries (histories) in table pa0000. Specify the endda and begda ranges correctly. Since u have nt give the date ranges, by default its picking the first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 10:11:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-26T10:11:21Z</dc:date>
    <item>
      <title>Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089535#M732800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES:PA0000.

data:begin of itable occurs 0,
     pernr type pa0000-pernr,
     massn type pa0000-massn,
     stat1 type pa0000-stat1,
     stat2 type pa0000-stat2,
     end of itable.

parameters:p_pernr type pa0000-pernr.

select pernr,massn,stat1,stat2 from pa0000 into table itable where pernr = p_pernr.

write itable-massn.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the output is always&lt;/P&gt;&lt;P&gt;EMP-PA0000                             1&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;I dont know why,it is not picking correct massn from the table.why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089535#M732800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089536#M732801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at  itable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write itable-massn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089536#M732801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089537#M732802</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;  There may be multiple entries (histories) in table pa0000. Specify the endda and begda ranges correctly. Since u have nt give the date ranges, by default its picking the first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089537#M732802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089538#M732803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES:PA0000.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data:begin of itable occurs 0,&lt;/P&gt;&lt;P&gt;     pernr type pa0000-pernr,&lt;/P&gt;&lt;P&gt;     massn type pa0000-massn,&lt;/P&gt;&lt;P&gt;     stat1 type pa0000-stat1,&lt;/P&gt;&lt;P&gt;     stat2 type pa0000-stat2,&lt;/P&gt;&lt;P&gt;     end of itable.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;parameters:p_pernr type pa0000-pernr.&lt;/P&gt;&lt;P&gt; start-of-selection.&lt;/P&gt;&lt;P&gt;select pernr,massn,stat1,stat2 from pa0000 into table itable where pernr = p_pernr.&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;loop at itable. &lt;/P&gt;&lt;P&gt;write itable-massn.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regs&lt;/P&gt;&lt;P&gt;Manas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089538#M732803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089539#M732804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your prompt reply.i think that is correct,let me check.Why should we loop it?Why cannot we display directly?any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089539#M732804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089540#M732805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bcoz, your itable is an internal table and while u r using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write itable-massn it will print the last headerline massn .&lt;/P&gt;&lt;P&gt; bcoz while fetching records, there may be much records and your code will only write the last output massn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089540#M732805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089541#M732806</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;&lt;/P&gt;&lt;P&gt;   Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:PA0000.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data:begin of itable occurs 0,&lt;/P&gt;&lt;P&gt;     pernr type pa0000-pernr,&lt;/P&gt;&lt;P&gt;     massn type pa0000-massn,&lt;/P&gt;&lt;P&gt;     stat1 type pa0000-stat1,&lt;/P&gt;&lt;P&gt;     stat2 type pa0000-stat2,&lt;/P&gt;&lt;P&gt;     end of itable.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-options : p_pernr for pa0000-pernr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select pernr,massn,stat1,stat2 from pa0000 into table itable where pernr in p_pernr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Loop at itable.&lt;/P&gt;&lt;P&gt;write itable-massn.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089541#M732806</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-11-26T10:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089542#M732807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if loop is not specified than it will print the only value which is in header which is the last record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so to print all entries we hav to use loop concept&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089542#M732807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089543#M732808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u cant write the contents directly bcoz u r using an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and u can only print the contents of the internal table one by one which is done &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;through looping , otherwise only the last record stored in the work area will get &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089543#M732808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089544#M732809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check in the table pa0000 whther the other values exists for massn &lt;/P&gt;&lt;P&gt;As u have declared itable as a table with header line ,it will only write the record that is in the header as u are only writing itable-massn .For writing ather values u need to give &lt;/P&gt;&lt;P&gt;LOOP AT itable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE : / itable-massn.&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;Neeraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089544#M732809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Small report error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089545#M732810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks everyone,the problem is solved.I have put the content in sapscript and it is printing too.I had a problem with my last sapscript program where i dont use internal table,but unable to print it.I tried many ways,but in vain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 10:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-report-error/m-p/3089545#M732810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T10:47:00Z</dc:date>
    </item>
  </channel>
</rss>

