<?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: Problem in table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583622#M590953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please  do  the change in datatype  of C field   from INT1  to  INT4 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" INT1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  -&amp;gt; 	1-byte integer, integer number &amp;lt;= 255&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" INT4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  -&amp;gt;	4-byte integer, integer number with sign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your  negative data in the  C field will reffer to the datatype a INT4  which can avoid giving the  Dump . and  have the   check box  of sign . ok  it will solve your problem  .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 14:09:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-30T14:09:04Z</dc:date>
    <item>
      <title>Problem in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583617#M590948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created one table.In that there are there quantity fields(of type Kmenge).Lets say A,B,C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here C = A - B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem ,whenever C is negative and saved in table then if  i am trying to see the data from SM30 then it is showing dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the dump it is saying that C has negative sign and  conversion error occured during displaying data on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to solve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 13:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583617#M590948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T13:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583618#M590949</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;The datatype Kmenge is of type CHAR 1. ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 13:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583618#M590949</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-30T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583619#M590950</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;You should check data element and domain of field C. If you get this message, that means that the domain of this field doesn't support negative amount.&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;Nicolas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 13:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583619#M590950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T13:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583620#M590951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use data element which supports negative values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 13:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583620#M590951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583621#M590952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;You have to keep a check in module pool of maintenance view whether field A is less than field B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If field A is less than B then, you should throw an error message.&lt;/P&gt;&lt;P&gt;If A is greater than or equal to B then only you should do subtraction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE process INPUT.
  IF ztab_prax1-a GE ztab_prax1-b.
    ztab_prax1-c = ztab_prax1-a - ztab_prax1-b.

  ELSE.
    MESSAGE 'Plz input A greater than or equal to B.' TYPE 'E'.
  ENDIF.

ENDMODULE.                 " process  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and in the screen flow logic use this module as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT extract.
    MODULE liste_init_workarea.
&amp;lt;b&amp;gt;
    CHAIN.
      FIELD ztab_prax1-a .
      FIELD ztab_prax1-b .
      MODULE process ON CHAIN-REQUEST.
    ENDCHAIN.
&amp;lt;/b&amp;gt;
    CHAIN.
      FIELD ztab_prax1-a .
      FIELD ztab_prax1-b .
      FIELD ztab_prax1-c .
      MODULE set_update_flag ON CHAIN-REQUEST.
    ENDCHAIN.
    FIELD vim_marked MODULE liste_mark_checkbox.
    CHAIN.
      FIELD ztab_prax1-a .
      MODULE liste_update_liste.
    ENDCHAIN.


  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Prax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 13:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583621#M590952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T13:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583622#M590953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please  do  the change in datatype  of C field   from INT1  to  INT4 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" INT1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  -&amp;gt; 	1-byte integer, integer number &amp;lt;= 255&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" INT4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  -&amp;gt;	4-byte integer, integer number with sign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your  negative data in the  C field will reffer to the datatype a INT4  which can avoid giving the  Dump . and  have the   check box  of sign . ok  it will solve your problem  .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 14:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583622#M590953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T14:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583623#M590954</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 think, the data element you used is not allowing any - values. Try using DMSHB data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 14:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583623#M590954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T14:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583624#M590955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used one currency field in custom table and it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used data element WRBTR  and domian WERT7 ,You can refer like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 14:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table/m-p/2583624#M590955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T14:20:42Z</dc:date>
    </item>
  </channel>
</rss>

