<?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 Report p rogram to update Z table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753816#M1114969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: Your duplicate posting &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1114613"&gt;&lt;/A&gt; has been deleted.  Do not post the same question more than once.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi to all &lt;/P&gt;&lt;P&gt;please clarify me rgarding below points&lt;/P&gt;&lt;P&gt; i am developing one module pool program to update a Z table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO i am eriting like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE status_9000.&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL so_control.&lt;/P&gt;&lt;P&gt;    MODULE pbo_9000.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;***PAI----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL so_control.&lt;/P&gt;&lt;P&gt;      MODULE pai_9000.   &lt;/P&gt;&lt;P&gt;      MODULE pai_control.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  MODULE user_command_9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module &lt;STRONG&gt;pai_9000&lt;/STRONG&gt; i am insering data into internal table from the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the module &lt;STRONG&gt;pai_control&lt;/STRONG&gt; ia m doing some validation.&lt;/P&gt;&lt;P&gt;and in the module user_command_9000 i am performing the operations like select all, deselct all, insert, delete copy  etc ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is i dont want to continue if the duplicates exist with the key &lt;/P&gt;&lt;P&gt;ZZBUKRS, ZZHEDNR, ZZCURR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have writetn code for this in the module pai_9000 (for duplicates)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose now i ahve data in table control like this&lt;/P&gt;&lt;P&gt;ZZBUKRS, ZZHEDNR, ZZCURR etc fields are there &lt;/P&gt;&lt;P&gt;00001       123             EUR&lt;/P&gt;&lt;P&gt;00001       143             INR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i am seelcting the first line and copying the record&lt;/P&gt;&lt;P&gt;Now i am changing the last record like this&lt;/P&gt;&lt;P&gt;ZZBUKRS, ZZHEDNR, ZZCURR etc fields are there &lt;/P&gt;&lt;P&gt;00001       123             EUR&lt;/P&gt;&lt;P&gt;00001       143             INR&lt;/P&gt;&lt;P&gt;00001       123             &lt;STRONG&gt;USD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if i press enter then it will show that duplicate entries exist with 00001       123             EUR, because i have written code &lt;/P&gt;&lt;P&gt;in pai_9000. till now intenal table has not been updated with the value i changed, after the end loop in PAI only it will update the entry into internal table.&lt;/P&gt;&lt;P&gt;if i write the code after end loop then it is ok, but the control will not go the record where it is having duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i press enter again then it will be ok .........&lt;/P&gt;&lt;P&gt;how to rectify this error&lt;/P&gt;&lt;P&gt;i dont want to display message because i have already chenged before pressing enter&lt;/P&gt;&lt;P&gt;coulld any one sugegst me pls on this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Nov 5, 2008 1:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2008 07:01:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-05T07:01:23Z</dc:date>
    <item>
      <title>Report p rogram to update Z table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753816#M1114969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: Your duplicate posting &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1114613"&gt;&lt;/A&gt; has been deleted.  Do not post the same question more than once.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi to all &lt;/P&gt;&lt;P&gt;please clarify me rgarding below points&lt;/P&gt;&lt;P&gt; i am developing one module pool program to update a Z table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO i am eriting like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE status_9000.&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL so_control.&lt;/P&gt;&lt;P&gt;    MODULE pbo_9000.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;***PAI----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL so_control.&lt;/P&gt;&lt;P&gt;      MODULE pai_9000.   &lt;/P&gt;&lt;P&gt;      MODULE pai_control.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  MODULE user_command_9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module &lt;STRONG&gt;pai_9000&lt;/STRONG&gt; i am insering data into internal table from the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the module &lt;STRONG&gt;pai_control&lt;/STRONG&gt; ia m doing some validation.&lt;/P&gt;&lt;P&gt;and in the module user_command_9000 i am performing the operations like select all, deselct all, insert, delete copy  etc ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is i dont want to continue if the duplicates exist with the key &lt;/P&gt;&lt;P&gt;ZZBUKRS, ZZHEDNR, ZZCURR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have writetn code for this in the module pai_9000 (for duplicates)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose now i ahve data in table control like this&lt;/P&gt;&lt;P&gt;ZZBUKRS, ZZHEDNR, ZZCURR etc fields are there &lt;/P&gt;&lt;P&gt;00001       123             EUR&lt;/P&gt;&lt;P&gt;00001       143             INR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i am seelcting the first line and copying the record&lt;/P&gt;&lt;P&gt;Now i am changing the last record like this&lt;/P&gt;&lt;P&gt;ZZBUKRS, ZZHEDNR, ZZCURR etc fields are there &lt;/P&gt;&lt;P&gt;00001       123             EUR&lt;/P&gt;&lt;P&gt;00001       143             INR&lt;/P&gt;&lt;P&gt;00001       123             &lt;STRONG&gt;USD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if i press enter then it will show that duplicate entries exist with 00001       123             EUR, because i have written code &lt;/P&gt;&lt;P&gt;in pai_9000. till now intenal table has not been updated with the value i changed, after the end loop in PAI only it will update the entry into internal table.&lt;/P&gt;&lt;P&gt;if i write the code after end loop then it is ok, but the control will not go the record where it is having duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i press enter again then it will be ok .........&lt;/P&gt;&lt;P&gt;how to rectify this error&lt;/P&gt;&lt;P&gt;i dont want to display message because i have already chenged before pressing enter&lt;/P&gt;&lt;P&gt;coulld any one sugegst me pls on this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Nov 5, 2008 1:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 07:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753816#M1114969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T07:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Report p rogram to update Z table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753817#M1114970</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 define a interna table with header line.&lt;/P&gt;&lt;P&gt;and use the fields if this table in table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pbo you write as.&lt;/P&gt;&lt;P&gt;loop at &amp;lt;itab&amp;gt; with control &amp;lt;tcon&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pbo you write as.&lt;/P&gt;&lt;P&gt;loop at &amp;lt;itab&amp;gt; .&lt;/P&gt;&lt;P&gt;module modify.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;in modify you write as.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify itab1 index tcon-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user command.&lt;/P&gt;&lt;P&gt;modify ztab from table itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 07:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753817#M1114970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T07:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Report p rogram to update Z table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753818#M1114971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello swati gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am doign the same thing &lt;/P&gt;&lt;P&gt;i am getting updated Z table &lt;/P&gt;&lt;P&gt;i need some error criteria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting fail in that&lt;/P&gt;&lt;P&gt;pls read question one more time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 07:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753818#M1114971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T07:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Report p rogram to update Z table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753819#M1114972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello &lt;/P&gt;&lt;P&gt;could any one suggest me on this isuue pls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 07:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-p-rogram-to-update-z-table/m-p/4753819#M1114972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T07:42:10Z</dc:date>
    </item>
  </channel>
</rss>

