<?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 COLLECT command on DECIMAL fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754842#M1303802</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;Since a couple of days, I am trying to solve the problem of using COLLECT statement against content of table which is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1.... type CHAR key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fn.... type CAHR key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1 ....type DEC 7,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loadint the teble to internal table, and trying to perform COLLECT on it, but it says, that non-key fields to collect have to be type: I,P or F. I need to collect field which in table reflects type DEC 7,2. Do You have any idea how to solve it ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, tomek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2009 19:48:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-27T19:48:03Z</dc:date>
    <item>
      <title>COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754842#M1303802</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;Since a couple of days, I am trying to solve the problem of using COLLECT statement against content of table which is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1.... type CHAR key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fn.... type CAHR key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1 ....type DEC 7,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loadint the teble to internal table, and trying to perform COLLECT on it, but it says, that non-key fields to collect have to be type: I,P or F. I need to collect field which in table reflects type DEC 7,2. Do You have any idea how to solve it ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, tomek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 19:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754842#M1303802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T19:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754843#M1303803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see a problem with what you are trying to do. Would you please post the code that declares your internal table and the COLLECT statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 19:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754843#M1303803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T19:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754844#M1303804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it comes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declaration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA:       T_TABLE TYPE SORTED TABLE OF Z_TABLE WITH UNIQUE KEY&lt;/P&gt;&lt;P&gt;            RLDNR&lt;/P&gt;&lt;P&gt;            RYEAR&lt;/P&gt;&lt;P&gt;            RTCUR&lt;/P&gt;&lt;P&gt;            RPMAX&lt;/P&gt;&lt;P&gt;            RPRCTR&lt;/P&gt;&lt;P&gt;            SPRCTR&lt;/P&gt;&lt;P&gt;            RACCT&lt;/P&gt;&lt;P&gt;            KTOPL&lt;/P&gt;&lt;P&gt;            KTOSL&lt;/P&gt;&lt;P&gt;            BKLAS&lt;/P&gt;&lt;P&gt;            WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;S_TABLE TYPE Z_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COLLECT S_TABLE INTO T_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Z_TABLE there are the last non key filelds of type: DEC(7,2), which are to be collected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it gives syntax error while compiling: I can only use collect command for fields of type: I, P or F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any glue ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, tomek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754844#M1303804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T20:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754845#M1303805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is z_table declared?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754845#M1303805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T20:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754846#M1303806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Z_TABLE in not declared in TABLES: section. Should it be present there ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754846#M1303806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T20:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754847#M1303807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably not. Is it declared in SE11 or locally in your program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754847#M1303807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T20:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754848#M1303808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is defined in SE11, all leading fields exept last one, belong to key, last field is DECIMAL 7,2 type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, tomek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754848#M1303808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T20:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754849#M1303809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this passes a syntax check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF z_table,
            rldnr,
            ryear,
            rtcur,
            rpmax,
            rprctr,
            sprctr,
            racct,
            ktopl,
            ktosl,
            bklas,
            t1(7) TYPE p DECIMALS 2,
      END OF z_table.

DATA:       t_table TYPE SORTED TABLE OF z_table WITH UNIQUE KEY
            rldnr
            ryear
            rtcur
            rpmax
            rprctr
            sprctr
            racct
            ktopl
            ktosl
            bklas
            WITH HEADER LINE,
s_table TYPE z_table.

COLLECT s_table INTO t_table.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754849#M1303809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T20:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754850#M1303810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You for Your effort, I will try Your suggestion, and check if it fulfills my expectation soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, tomek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 20:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754850#M1303810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754851#M1303811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank You for and idea of possible solution - I had than another confiusion with Unicode incompatibility, but this I think, I will be able to ssolve by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank You, again, tomek (trying to play more and more with ABAP )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tomasz Przyluski on May 30, 2009 12:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2009 10:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754851#M1303811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-30T10:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: COLLECT command on DECIMAL fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754852#M1303812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This of course concludes the thread &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tomek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2009 10:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-command-on-decimal-fields/m-p/5754852#M1303812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-30T10:38:41Z</dc:date>
    </item>
  </channel>
</rss>

