<?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: ALV SUM error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640019#M285099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you mean: ls_fieldcat-cfieldname = 'WAERK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-cfieldname = 'WAERS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry the field is in VBRK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why do you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-cfieldname = 'WAERK'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-ctabname = 'VBRK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try without this Lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Dieter Gröhn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 15:15:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T15:15:35Z</dc:date>
    <item>
      <title>ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640014#M285094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm dipalying CURR field on alv. When trying to do sum on i get short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is my fieldcat definition:&lt;/P&gt;&lt;P&gt;  ls_fieldcat-fieldname    = 'NETWR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ref_fieldname  = 'NETWR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ref_tabname  = 'VBRP'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-datatype = 'CURR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-cfieldname = 'WAERK'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ctabname = 'VBRK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is my error ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, JAcek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 14:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640014#M285094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T14:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640015#M285095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add this and try ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_fieldcat-fieldname = 'NETWR'.
ls_fieldcat-ref_fieldname = 'NETWR'.
ls_fieldcat-ref_tabname = 'VBRP'.
ls_fieldcat-datatype = 'CURR'.
ls_fieldcat-cfieldname = 'WAERK'.
ls_fieldcat-ctabname = 'VBRK'.
&amp;lt;b&amp;gt;ls_fieldcat-do_sum = 'X'.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 14:17:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640015#M285095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T14:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640016#M285096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;will be the same as doin sum with button on alv&lt;/P&gt;&lt;P&gt;BR, JAcek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 14:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640016#M285096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T14:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640017#M285097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the datatype and try out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-datatype = 'QUAN'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 14:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640017#M285097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640018#M285098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it still dosent work correctly&lt;/P&gt;&lt;P&gt;BR&amp;lt; JAcek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 14:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640018#M285098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640019#M285099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you mean: ls_fieldcat-cfieldname = 'WAERK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-cfieldname = 'WAERS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry the field is in VBRK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why do you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-cfieldname = 'WAERK'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-ctabname = 'VBRK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try without this Lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Dieter Gröhn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 15:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640019#M285099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T15:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640020#M285100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacek,&lt;/P&gt;&lt;P&gt;  The problem is that the total value that is resulted is bigger than the capacity of the variable.&lt;/P&gt;&lt;P&gt;Declare the variable as a bigger one.&lt;/P&gt;&lt;P&gt;for example. if vbrp netwr is of type p (17,2) 17 before decimal and 2 after it, use another data element which has (19,2) 19 places before decimal and 2 after it.&lt;/P&gt;&lt;P&gt;YOu can change the data type of the variable or&lt;/P&gt;&lt;P&gt;you can give the fie;dcatalog parameters:&lt;/P&gt;&lt;P&gt;ls_fieldcat-ref_fieldname = 'VKWRT'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-ref_tabname = 'AUBF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 15:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640020#M285100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640021#M285101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing of that doesnt work fine on my system (4.7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ST22 Error):  MESSAGE_TYPE_X&lt;/P&gt;&lt;P&gt;...  &lt;/P&gt;&lt;P&gt; assign component&lt;/P&gt;&lt;P&gt;          &amp;lt;ls_fieldcat&amp;gt;-fieldname of structure rt_data to &amp;lt;g_field&amp;gt;.&lt;/P&gt;&lt;P&gt;   if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;     message x000(0k).&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;or when using in fieldac:&lt;/P&gt;&lt;P&gt;ls_fieldcat-cfieldname = 'WAERS'.&lt;/P&gt;&lt;P&gt;what was suggested in similiar problem in that formum sone times ago:&lt;/P&gt;&lt;P&gt;(st22)&lt;/P&gt;&lt;P&gt;Invalid dynamic line component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;When the ABAP program "SAPLSKBH" attempted to process the internal&lt;/P&gt;&lt;P&gt;table "RT_COLLECT00[]" with "SORT", a component "WAERS " was specified&lt;/P&gt;&lt;P&gt; dynamically&lt;/P&gt;&lt;P&gt;as the contents of the field "L_UFIELDNAME".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the following errors then occurred:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The line type "u" of the internal table "RT_COLLECT00[]" contains no&lt;/P&gt;&lt;P&gt;  component "WAERS ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- "WAERS " contained an invalid offset or length specification (for&lt;/P&gt;&lt;P&gt;  example, you may have tried to access part of a field with type I or&lt;/P&gt;&lt;P&gt;  STRING).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The program "SAPLSKBH" is a Unicode program. In Unicode programs, you&lt;/P&gt;&lt;P&gt;  can only apply offset/length access to a structure within its&lt;/P&gt;&lt;P&gt;  character-type initial section. The system went beyond the&lt;/P&gt;&lt;P&gt;  boundaries of "WAERS " 's initial section in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- "WAERS " contains a declaration of the form "A-&amp;gt;B" for dynamically&lt;/P&gt;&lt;P&gt;  accessing an object attribute. At present, attributes can only be&lt;/P&gt;&lt;P&gt;  addressed in this way statically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- "WAERS " contained significant trailing spaces (only possible with type&lt;/P&gt;&lt;P&gt;  STRING).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&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>Fri, 20 Oct 2006 06:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640021#M285101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T06:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUM error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640022#M285102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear jacek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ST22 Error): MESSAGE_TYPE_X&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;assign component&lt;/P&gt;&lt;P&gt;&amp;lt;ls_fieldcat&amp;gt;-fieldname of structure rt_data to &amp;lt;g_field&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message x000(0k).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think the above mentioned is the error in st22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u pls tell wht is the value in &amp;lt;ls_fieldcat&amp;gt;-fieldname and also please check that the same  value is available in ur internal table which is used for listing the ALV output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;ambily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 08:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sum-error/m-p/1640022#M285102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T08:33:51Z</dc:date>
    </item>
  </channel>
</rss>

