<?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: Update Ztable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579364#M261524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try in the SAVE option, first to DELETE the entries from ZES_RFQ_SVC data related to the selected key..and than use MODIFY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2006 09:38:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-26T09:38:20Z</dc:date>
    <item>
      <title>Update Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579358#M261518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table contorl in which i enter new items or delete the existing items, so while adding items am able to update the Z table perfectly fine, but while deleting the line i can see the exact data in internal table while debugging, but it gives a runtime error while modifying the Ztable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  modify ZES_RFQ_SVC from table IT_RFQSVC.&lt;/P&gt;&lt;P&gt;if i c in debug mode i see the exact data in IT_RFQSVC, but while updating the Z table its giving a runtime error as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    An invalid request was made to the SAP database interface in a statement&lt;/P&gt;&lt;P&gt;     in which the table "ZES_RFQ_SVC " was accessed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The situation points to an internal error in the SAP software&lt;/P&gt;&lt;P&gt;    or to an incorrect status of the respective work process.&lt;/P&gt;&lt;P&gt;    For further analysis the SAP system log should be examined&lt;/P&gt;&lt;P&gt;    (transaction SM21).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    For a precise analysis of the error, you should supply&lt;/P&gt;&lt;P&gt;    documents with as many details as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 08:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579358#M261518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T08:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579359#M261519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     use &amp;lt;b&amp;gt;delete ZES_RFQ_SVC from table IT_RFQSVC.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 08:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579359#M261519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T08:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579360#M261520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_RFQSVC contains the records which i need to update the Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initially when i start i might have 3 rows in service items, user might delete the rows, so i modify the IT_RFQSVC, and then modify the ZES_RFQ_SVC from table IT_RFQSVC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please clarify me if i explained u correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 08:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579360#M261520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T08:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579361#M261521</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;instead of using modify for all cases, check out the function code of the button.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if the user hits delete.
 if sy-ucomm = 'DEL'.
  "delete the row from internal table
if the user hits update.
 elseif sy-ucomm = 'UPD'.
  "modify the row in the internal table.
 endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And then you can update the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 09:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579361#M261521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T09:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Update Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579362#M261522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pratyu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. suppose your internal table has 3 rows.&lt;/P&gt;&lt;P&gt;2. The user deletes the 2nd row on the screen.&lt;/P&gt;&lt;P&gt;3. Hence, u also delete the 2nd row, from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In such cases,&lt;/P&gt;&lt;P&gt;   its always best to delete&lt;/P&gt;&lt;P&gt;   all 3 records from ZTABLE&lt;/P&gt;&lt;P&gt;  (with that particular primary key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. And then again insert the 2 rows.&lt;/P&gt;&lt;P&gt;  LOOP AT IT_RFQSVC .&lt;/P&gt;&lt;P&gt;  MODIFY ZES_RFQ_SVC  FROM IT_RFQSVC .&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Modify will automatically take care&lt;/P&gt;&lt;P&gt;   of insert/update based upon the&lt;/P&gt;&lt;P&gt;   value of the primary key &lt;/P&gt;&lt;P&gt;   found/not found&lt;/P&gt;&lt;P&gt;   in database table.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;7. If we don't follow the above procedure&lt;/P&gt;&lt;P&gt;   of deleting all 3 rows, and again inserting 2 rows,&lt;/P&gt;&lt;P&gt;   then we have to write logic&lt;/P&gt;&lt;P&gt;   to KEEP TRACK of&lt;/P&gt;&lt;P&gt;   a) modified rows (records)&lt;/P&gt;&lt;P&gt;   b) new inserted rows&lt;/P&gt;&lt;P&gt;   c) deleted rows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  and accordingly fire sql statements,&lt;/P&gt;&lt;P&gt;  for all the corresponding rows in the table control(internal table)&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 09:03:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579362#M261522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T09:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579363#M261523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what i was writing in the PAI module of the table control between loop and endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module READ_TC2 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if TC2-CURRENT_LINE le FILL2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   clear ZES_RFQ_SVC.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    read table IT_RFQSVC into IS_RFQSVC index TC2-CURRENT_LINE. " with key RFQ_LN = ITEMLIST.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      if SVC_SEL = 'X'.&lt;/P&gt;&lt;P&gt;        IS_RFQSVC-CHK = 'X'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_LTEXT = ZES_RFQ_SVC-SVC_LTEXT.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_QTY   = ZES_RFQ_SVC-SVC_QTY.&lt;/P&gt;&lt;P&gt;      L_SQTY = L_SQTY + IS_RFQSVC-SVC_QTY.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_UOM   = ZES_RFQ_SVC-SVC_UOM.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_LAMT  = ZES_RFQ_SVC-SVC_LAMT.&lt;/P&gt;&lt;P&gt;      L_SAMT = L_SAMT + IS_RFQSVC-SVC_LAMT.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-WAERS     = 'SGD'.&lt;/P&gt;&lt;P&gt;      modify IT_RFQSVC from IS_RFQSVC index TC2-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;      clear : IS_RFQSVC.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    if not ZES_RFQ_SVC-SVC_NO is initial and not ZES_RFQ_SVC-SVC_LN is initial.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-RFQ_NO = ZES_RFQ-RFQ_NO.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SER_NO = ZES_RFQ-SER_NO.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-RFQ_LN = ITEMLIST.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_NO = ZES_RFQ_SVC-SVC_NO.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_LN = ZES_RFQ_SVC-SVC_LN.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_STEXT = ZES_RFQ_SVC-SVC_STEXT.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_LTEXT = ZES_RFQ_SVC-SVC_LTEXT.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_QTY = ZES_RFQ_SVC-SVC_QTY.&lt;/P&gt;&lt;P&gt;      L_SQTY = L_SQTY + IS_RFQSVC-SVC_QTY.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_UOM   = ZES_RFQ_SVC-SVC_UOM.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-SVC_LAMT  = ZES_RFQ_SVC-SVC_LAMT.&lt;/P&gt;&lt;P&gt;      L_SAMT = L_SAMT + IS_RFQSVC-SVC_LAMT.&lt;/P&gt;&lt;P&gt;      IS_RFQSVC-WAERS     = 'SGD'.&lt;/P&gt;&lt;P&gt;      append IS_RFQSVC to IT_RFQSVC. " index TC2-CURRENT_LINE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     modify IT_RFQSVC from IS_RFQSVC index TC2-CURRENT_LINE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      clear IS_RFQSVC.&lt;/P&gt;&lt;P&gt;      FILL2 = FILL2 + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.                 " READ_tC2  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the USER Command for DELETE of row.&lt;/P&gt;&lt;P&gt;i just wrote&lt;/P&gt;&lt;P&gt;when 'delete'.&lt;/P&gt;&lt;P&gt;delete IT_RFQSVC where CHK = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when i save it.&lt;/P&gt;&lt;P&gt;when 'save'.&lt;/P&gt;&lt;P&gt;  modify ZES_RFQ_SVC from table IT_RFQSVC. ( which is giving dump)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested i ll try to implement the way u told for deleting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me is there a better way of appending new records to the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for ur time&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 09:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579363#M261523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T09:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Update Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579364#M261524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try in the SAVE option, first to DELETE the entries from ZES_RFQ_SVC data related to the selected key..and than use MODIFY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 09:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1579364#M261524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T09:38:20Z</dc:date>
    </item>
  </channel>
</rss>

