<?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: ERROR MESSAGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3971338#M948601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the steps given below(note just a statistical approach): You can improvize on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assumptions:&lt;/P&gt;&lt;P&gt;You have already created a screen, fields &amp;amp; buttons(table-control is in place).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Once ID is entered in PAI, use an ok-code to perform the validation against whatever the rule specified.&lt;/P&gt;&lt;P&gt;2) On success of validation, use the business logic to populate the value into the VALUE field.&lt;/P&gt;&lt;P&gt;3) Use on-screen cursor to figure out which row are you validating i.e; based on cursor position perform business logic for that row, thereby even if you tend to delete or put in a wrong ID, on failure of validation; FIRST clear the VALUE value &amp;amp; develop the TOTAL logic to add the VALUE of each lines so when there is no entry in one ID automatically the TOTAL value is adjusted.(like doing sum in excel)&lt;/P&gt;&lt;P&gt;4) If proper ID's are entered automatically the TOTAL logic will pick up the lines entered &amp;amp; sum the VALUE fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Enjoy developing.&lt;/P&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;Thanks&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 00:35:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T00:35:04Z</dc:date>
    <item>
      <title>ERROR MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3971337#M948600</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 have one table cotrol having 2 flds ID and VALUE. ID is input fld but VALUE is in display mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also there is another screen fld TOTAL in display mode. it will show total of VALUE of all rows of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when ID is entered if it is valid, VALUE will be populated and also TOTAL will be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ID is changed and new ID is not valid, ERROR msg should be shown and ID will be in editable mode and TOTAL will be updated subtracting the VALUE of old value of ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help how to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Avijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 11:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3971337#M948600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T11:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3971338#M948601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the steps given below(note just a statistical approach): You can improvize on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assumptions:&lt;/P&gt;&lt;P&gt;You have already created a screen, fields &amp;amp; buttons(table-control is in place).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Once ID is entered in PAI, use an ok-code to perform the validation against whatever the rule specified.&lt;/P&gt;&lt;P&gt;2) On success of validation, use the business logic to populate the value into the VALUE field.&lt;/P&gt;&lt;P&gt;3) Use on-screen cursor to figure out which row are you validating i.e; based on cursor position perform business logic for that row, thereby even if you tend to delete or put in a wrong ID, on failure of validation; FIRST clear the VALUE value &amp;amp; develop the TOTAL logic to add the VALUE of each lines so when there is no entry in one ID automatically the TOTAL value is adjusted.(like doing sum in excel)&lt;/P&gt;&lt;P&gt;4) If proper ID's are entered automatically the TOTAL logic will pick up the lines entered &amp;amp; sum the VALUE fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Enjoy developing.&lt;/P&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;Thanks&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 00:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3971338#M948601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T00:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3971339#M948602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;module process1.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module process1.&lt;/P&gt;&lt;P&gt;loop at i_tab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;validate id &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;   i_tab-total = i_tab-total - i_tab-VALUE.&lt;/P&gt;&lt;P&gt;   message 'Invalid ID'.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;   i_tab-TOTAL  = i_tab-TOTAL + i_tab-VALUE.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Megha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 12:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3971339#M948602</guid>
      <dc:creator>megha_h</dc:creator>
      <dc:date>2008-06-12T12:34:21Z</dc:date>
    </item>
  </channel>
</rss>

