<?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: Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358933#M1037703</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;In PAI u can write code like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save all values which are entered in the screen to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while appending the values to the internal table check the values which are there in the work area with the values which are already there in the same internal table and display the message if a record already exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got idea like this if its useful try it or else try any other option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 16:10:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-14T16:10:38Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358932#M1037702</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;i had got a table control with 3 cols ie item material quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i when i enter item number 10 , material 2000 , quantity 10000&lt;/P&gt;&lt;P&gt;it is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when entering another record with same  item number 10  but with different material and quantity , it should give me message that the item number exist , how  should i approach to this, wht is the exact code to be wriiten in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS ,&lt;/P&gt;&lt;P&gt;PAWAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 15:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358932#M1037702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T15:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358933#M1037703</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;In PAI u can write code like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save all values which are entered in the screen to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while appending the values to the internal table check the values which are there in the work area with the values which are already there in the same internal table and display the message if a record already exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got idea like this if its useful try it or else try any other option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358933#M1037703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358934#M1037704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; but how should i write the code in PAI for that......please guide me fot the same......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : item type ztest2-posnr,&lt;/P&gt;&lt;P&gt;         mat type mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if ztest2-posnr  is initial or&lt;/P&gt;&lt;P&gt;         ztest2-matnr is initial or&lt;/P&gt;&lt;P&gt;         ztest2-zmeng is initial.&lt;/P&gt;&lt;P&gt;        message E003(zpawan) with 'error'.&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;&lt;/P&gt;&lt;P&gt;        item = ztest2-posnr mod 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if item ne 0.&lt;/P&gt;&lt;P&gt;          message E000(zpawan) with 'error'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        select matnr from mara into mat where matnr = ztest2-matnr.&lt;/P&gt;&lt;P&gt;        endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;          message E001(zpawan) with 'error'.&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;        WA_TEST-POSNR    = zTEST2-POSNR.&lt;/P&gt;&lt;P&gt;        WA_TEST-MATNR    = zTEST2-MATNR.&lt;/P&gt;&lt;P&gt;        WA_TEST-ZMENG    = zTEST2-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        append wa_test to it_test.&lt;/P&gt;&lt;P&gt;        insert into Ztest2 values wa_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      message S002(zpawan) with 'success'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards ,&lt;/P&gt;&lt;P&gt;pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358934#M1037704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358935#M1037705</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 have done some chenges to u r code itself kindly check whether it can help or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : item type ztest2-posnr,&lt;/P&gt;&lt;P&gt;mat type mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ztest2-posnr is initial or&lt;/P&gt;&lt;P&gt;ztest2-matnr is initial or&lt;/P&gt;&lt;P&gt;ztest2-zmeng is initial.&lt;/P&gt;&lt;P&gt;message E003(zpawan) with 'error'.&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;&lt;/P&gt;&lt;P&gt;item = ztest2-posnr mod 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if item ne 0.&lt;/P&gt;&lt;P&gt;message E000(zpawan) with 'error'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;STRONG&gt;single&lt;/STRONG&gt; matnr from mara into mat where matnr = ztest2-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message E001(zpawan) with 'error'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;loop at it_test into wa_test.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if zTEST2 eq wa_test.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;message E002(zpawan) with 'error'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_TEST-POSNR = zTEST2-POSNR.&lt;/P&gt;&lt;P&gt;WA_TEST-MATNR = zTEST2-MATNR.&lt;/P&gt;&lt;P&gt;WA_TEST-ZMENG = zTEST2-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_test to it_test.&lt;/P&gt;&lt;P&gt;insert into Ztest3 values it_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;message S002(zpawan) with 'success'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358935#M1037705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358936#M1037706</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;that is working fine,  when i enter 2 records in table control, it &lt;/P&gt;&lt;P&gt;for examle.&lt;/P&gt;&lt;P&gt; item material quantity&lt;/P&gt;&lt;P&gt; 100    122      10000&lt;/P&gt;&lt;P&gt; 100    125       2000&lt;/P&gt;&lt;P&gt; it gives me the error message 'with same item number'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now those records should be editable, how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 18:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358936#M1037706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T18:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358937#M1037707</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;Is it compulsory an error message or can we do that as an information message like ' duplicate record data not saved'  so that it automatically takes back u  to the screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u need compulsory an error message then after throwing the error message u need to call the same screen back using call screen &amp;lt;screen no&amp;gt; each n every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 09:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358937#M1037707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T09:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358938#M1037708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , thanks i had mada the changes and it is working fine.&lt;/P&gt;&lt;P&gt; now when i enter a record in table control it gets updated in the ztable.&lt;/P&gt;&lt;P&gt;but my requirement is the records which are updated in ztable  should get dispalyed in another table control.&lt;/P&gt;&lt;P&gt;ie when i click 'BUTTON'. &lt;/P&gt;&lt;P&gt;now how should i approach to this , how to code this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 14:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4358938#M1037708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T14:33:57Z</dc:date>
    </item>
  </channel>
</rss>

