<?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: Convt as number error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083943#M1180633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Advait,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameter that the class expect is table (any table) ,&lt;/P&gt;&lt;P&gt;And this is what i want to pass to it.&lt;/P&gt;&lt;P&gt;When i move the table its working o.k. but the problem when i try to pass it dynamic.&lt;/P&gt;&lt;P&gt;I do that wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Jan 2009 19:16:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-24T19:16:41Z</dc:date>
    <item>
      <title>Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083939#M1180629</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;I want move dynamic table to the class cl_aunit_assert, i use for that   sy-index  &lt;/P&gt;&lt;P&gt;So in the loop sometimes i want to send &amp;lt;EXP_XP1&amp;gt; and sometimes &amp;lt;EXP_XP2&amp;gt; in ( exp ).&lt;/P&gt;&lt;P&gt;When i do that i get error :Convt as number error  .&lt;/P&gt;&lt;P&gt;What i miss here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
v_index type  string, exp TYPE string.

CONCATENATE '&amp;lt;EXP_XP' lv_index '&amp;gt;' INTO exp.

 cl_aunit_assert=&amp;gt;assert_equals( exp = ( exp) quit = cl_aunit_assert=&amp;gt;no act = lt_act  msg = msg ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2009 13:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083939#M1180629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-24T13:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083940#M1180630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to condense 'exp' with no-gaps after you concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also use sy-tabix if you are using loop..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;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Jan 24, 2009 3:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2009 14:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083940#M1180630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-24T14:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083941#M1180631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Advait,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try it but it's not work ,&lt;/P&gt;&lt;P&gt;Any other idea?&lt;/P&gt;&lt;P&gt;The error long text is: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'The argument 'exp' cannot be interpreted as a number'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2009 14:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083941#M1180631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-24T14:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083942#M1180632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha, it seems the parameter of the class method expects a number, but you are passing something else here. Perhaps a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2009 18:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083942#M1180632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-24T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083943#M1180633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Advait,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameter that the class expect is table (any table) ,&lt;/P&gt;&lt;P&gt;And this is what i want to pass to it.&lt;/P&gt;&lt;P&gt;When i move the table its working o.k. but the problem when i try to pass it dynamic.&lt;/P&gt;&lt;P&gt;I do that wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2009 19:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083943#M1180633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-24T19:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083944#M1180634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do u mean to say &amp;lt;EXP1&amp;gt; and &amp;lt;EXP2&amp;gt; are dynamic tables then u cant have the data type of exp as string and pass it like that, I dont think the system will take them as names of dynamic table but it will see them as string parameter so since some time u want to pass &amp;lt;exp1&amp;gt; and sometimes &amp;lt;exp2&amp;gt; use an if condition and call it conditionally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2009 03:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083944#M1180634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-25T03:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083945#M1180635</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;&amp;lt;EXP1&amp;gt; and &amp;lt;EXP2&amp;gt; are not dynamic tables ,&lt;/P&gt;&lt;P&gt;I just want to pass it dynamic (if the loop with index 1  to pass &amp;lt;EXP1&amp;gt; ....) .in the class the type of the table or object that i have to pass in exp is any.&lt;/P&gt;&lt;P&gt;With if ,is the only way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2009 05:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083945#M1180635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-25T05:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083946#M1180636</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;&amp;lt;EXP1&amp;gt; and &amp;lt;EXP2&amp;gt; are not dynamic tables ,&lt;/P&gt;&lt;P&gt;I just want to pass it dynamic (if the loop with index 1  to pass &amp;lt;EXP1&amp;gt; ....) .in the class the type of the table or object that i have to pass in exp is any.&lt;/P&gt;&lt;P&gt;With if ,is the only way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2009 05:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083946#M1180636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-25T05:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083947#M1180637</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;&amp;lt;EXP1&amp;gt; and &amp;lt;EXP2&amp;gt; are not dynamic tables ,&lt;/P&gt;&lt;P&gt;I just want to pass it dynamic (if the loop with index 1  to pass &amp;lt;EXP1&amp;gt; ....) .in the class the type of the table or object that i have to pass in exp is any.&lt;/P&gt;&lt;P&gt;With if ,is the only way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2009 05:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083947#M1180637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-25T05:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083948#M1180638</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;&amp;lt;EXP1&amp;gt; and &amp;lt;EXP2&amp;gt; are not dynamic tables ,&lt;/P&gt;&lt;P&gt;I just want to pass it dynamic (if the loop with index 1  to pass &amp;lt;EXP1&amp;gt; ....) .in the class the type of the table or object that i have to pass in exp is any.&lt;/P&gt;&lt;P&gt;With if ,is the only way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2009 05:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083948#M1180638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-25T05:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convt as number error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083949#M1180639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well u cant pass them dynamically the way u r trying to pass them currently, it will only interpret &amp;lt;exp1&amp;gt; and &amp;lt;exp2&amp;gt; as two string constants not as objects whose name is &amp;lt;exp1&amp;gt; or &amp;lt;exp2&amp;gt;,&lt;/P&gt;&lt;P&gt;so only option is to use &lt;STRONG&gt;if&lt;/STRONG&gt; or &lt;STRONG&gt;case&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2009 07:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-as-number-error/m-p/5083949#M1180639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-25T07:19:33Z</dc:date>
    </item>
  </channel>
</rss>

