<?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: deletion not possibling check the code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258627#M778438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just replace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding temp_it_data to w_zcpdhtry.&lt;/P&gt;&lt;P&gt;w_zcpdhtry-erdat = sy-datum.&lt;/P&gt;&lt;P&gt;w_zcpdhtry-erzet = sy-uzeit .&lt;/P&gt;&lt;P&gt;w_zcpdhtry-author = sy-uname .&lt;/P&gt;&lt;P&gt;w_zcpdhtry-zcounter_cpd = gv_ln.&lt;/P&gt;&lt;P&gt;insert zcpdhtry from w_zcpdhtry .&lt;/P&gt;&lt;P&gt;move-corresponding temp_it_data to w_zcpdcurr.&lt;/P&gt;&lt;P&gt;delete zcpdcurr from w_zcpdcurr .&lt;/P&gt;&lt;P&gt;clear : w_zcpdhtry , w_zcpdcurr .&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding temp_it_data to w_zcpdhtry.&lt;/P&gt;&lt;P&gt;w_zcpdhtry-erdat = sy-datum.&lt;/P&gt;&lt;P&gt;w_zcpdhtry-erzet = sy-uzeit .&lt;/P&gt;&lt;P&gt;w_zcpdhtry-author = sy-uname .&lt;/P&gt;&lt;P&gt;w_zcpdhtry-zcounter_cpd = gv_ln.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY&lt;/STRONG&gt; zcpdhtry from w_zcpdhtry .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, when you declare an internal table with occurs 0 , no need to explicitly mention "with header line".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2008 04:36:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-16T04:36:54Z</dc:date>
    <item>
      <title>deletion not possibling check the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258626#M778437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edited by: anil kumar on Jan 16, 2008 9:51 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anil kumar on Jan 22, 2008 5:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258626#M778437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T04:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: deletion not possibling check the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258627#M778438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just replace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding temp_it_data to w_zcpdhtry.&lt;/P&gt;&lt;P&gt;w_zcpdhtry-erdat = sy-datum.&lt;/P&gt;&lt;P&gt;w_zcpdhtry-erzet = sy-uzeit .&lt;/P&gt;&lt;P&gt;w_zcpdhtry-author = sy-uname .&lt;/P&gt;&lt;P&gt;w_zcpdhtry-zcounter_cpd = gv_ln.&lt;/P&gt;&lt;P&gt;insert zcpdhtry from w_zcpdhtry .&lt;/P&gt;&lt;P&gt;move-corresponding temp_it_data to w_zcpdcurr.&lt;/P&gt;&lt;P&gt;delete zcpdcurr from w_zcpdcurr .&lt;/P&gt;&lt;P&gt;clear : w_zcpdhtry , w_zcpdcurr .&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding temp_it_data to w_zcpdhtry.&lt;/P&gt;&lt;P&gt;w_zcpdhtry-erdat = sy-datum.&lt;/P&gt;&lt;P&gt;w_zcpdhtry-erzet = sy-uzeit .&lt;/P&gt;&lt;P&gt;w_zcpdhtry-author = sy-uname .&lt;/P&gt;&lt;P&gt;w_zcpdhtry-zcounter_cpd = gv_ln.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY&lt;/STRONG&gt; zcpdhtry from w_zcpdhtry .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, when you declare an internal table with occurs 0 , no need to explicitly mention "with header line".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258627#M778438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T04:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: deletion not possibling check the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258628#M778439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after word i have to delete &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;move-corresponding temp_it_data to w_zcpdcurr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;delete zcpdcurr from w_zcpdcurr .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;clear : w_zcpdhtry , w_zcpdcurr .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moving data not working temp_it_data to w_zcpdcurr &lt;/P&gt;&lt;P&gt;and deletion not possibling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258628#M778439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T04:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: deletion not possibling check the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258629#M778440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My mistake, sorry didnt see there were two different tables being operated on in the equation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, the deletion is probably failing because the primary key fields of database table zcpdcurr are not populated in the temp_it_data record and hence the DELETE statement does not find any record to delete and returns sy-subrc as 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please debug and check whether the key fields of the Z table are present and in correct format, e.g. VBELN, could be getting saved as 1 in your work area, but it is actually saved as 00000001 in DB (conversion exit). You can use the entries as retrieved from debugging and check from SE16 whether a corresponding entry exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you mention move-corresponding is not working. I hope you know it maps fields with the same names from source to target structure. Hence please ensure the key fielsd of DB ZCPDCURR have the same names in temp_it_data and w_zcpdcurr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-not-possibling-check-the-code/m-p/3258629#M778440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T04:56:46Z</dc:date>
    </item>
  </channel>
</rss>

