<?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: Delete Sourcepackage where code is in another internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437850#M1551238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your quick response. Your answer seems to have got me a lot closer to a solution. THis is what I current'y have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_SOURCE_PACKAGE   TYPE &lt;U&gt;ty&lt;/U&gt;s_SC_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SOURCE_PACKAGE INTO WA_SOURCE_PACKAGE.&lt;/P&gt;&lt;P&gt;   READ TABLE w_cutcodes&lt;/P&gt;&lt;P&gt;     WITH KEY /BIC/ZCUTCDINC = &amp;lt;SOURCE_FIELDS&amp;gt;-/BIC/Z_CUTCODE&lt;/P&gt;&lt;P&gt;     TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;          IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;             DELETE SOURCE_PACKAGE.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contains no syntax errors, but when I run this I recieve the following runtime error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GETWA_NOT_ASSIGNED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas anyone? Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 14:15:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-10T14:15:39Z</dc:date>
    <item>
      <title>Delete Sourcepackage where code is in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437848#M1551236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a Transformation and have a requirement to delete out certain records from the source_package where a code in that source_package is NOT in one of my infoobjects (this is likely to change so I want the ability to modify the list of codes without transporting any code changes). I have loaded my infoobject into an internal table called w_cutcodes containing only the 4 cutcodes I want to keep. This is the code I have so far (throws up syntax errors). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SOURCE_PACKAGE.&lt;/P&gt;&lt;P&gt;   READ TABLE w_cutcodes&lt;/P&gt;&lt;P&gt;     WHERE /BIC/Z_CUTCODE = w_cutcodes/BIC/ZCUTCDINC.&lt;/P&gt;&lt;P&gt;          IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;             DELETE SOURCE_PACKAGE.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just get the  "E:At "LOOP AT itab", one of the additions "INTO", "ASSIGNING", or "TRANSPORTING NO FIELDS" is required. in the OO context" syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to delete all records out of the source package where the cutcode is not in the list of cutcodes in my itab? Any help is much appreciated as this is driving me nuts!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437848#M1551236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T11:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Sourcepackage where code is in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437849#M1551237</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;  Declare a work area (WA_SOURCE_PACKAGE)  and write as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;LOOP AT SOURCE_PACKAGE into WA_SOURCE_PACKAGE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE w_cutcodes&lt;/P&gt;&lt;P&gt;                 WHERE /BIC/Z_CUTCODE = w_cutcodes/BIC/ZCUTCDINC.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;DELETE SOURCE_PACKAGE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437849#M1551237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T11:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Sourcepackage where code is in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437850#M1551238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your quick response. Your answer seems to have got me a lot closer to a solution. THis is what I current'y have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_SOURCE_PACKAGE   TYPE &lt;U&gt;ty&lt;/U&gt;s_SC_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SOURCE_PACKAGE INTO WA_SOURCE_PACKAGE.&lt;/P&gt;&lt;P&gt;   READ TABLE w_cutcodes&lt;/P&gt;&lt;P&gt;     WITH KEY /BIC/ZCUTCDINC = &amp;lt;SOURCE_FIELDS&amp;gt;-/BIC/Z_CUTCODE&lt;/P&gt;&lt;P&gt;     TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;          IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;             DELETE SOURCE_PACKAGE.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contains no syntax errors, but when I run this I recieve the following runtime error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GETWA_NOT_ASSIGNED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas anyone? Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 14:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437850#M1551238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T14:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Sourcepackage where code is in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437851#M1551239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where are you assigning the field symbol &amp;lt;SOURCE_FIELDS&amp;gt; ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 14:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437851#M1551239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T14:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Sourcepackage where code is in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437852#M1551240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't assigned it myself, I was trying to refer to the cut code in the source package and found &amp;lt;SOURCE_FIELDS&amp;gt; in some other code. Apologies, I'm pretty new to ABAP so that might've been a school boy error!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 14:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437852#M1551240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T14:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Sourcepackage where code is in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437853#M1551241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RESOLVED!!! It was the &amp;lt;source-fields&amp;gt; bit that was causing the error. This needed to be the same as my work area (WA_SOURCE_PACKAGE). Thanks for all your help guys. Here's the code in case anyone else is trying to do something similar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA WA_SOURCE_PACKAGE   TYPE _ty_s_SC_1.

LOOP AT SOURCE_PACKAGE INTO WA_SOURCE_PACKAGE.
   READ TABLE w_cutcodes
     WITH TABLE KEY /BIC/ZCUTCDINC = WA_SOURCE_PACKAGE-/BIC/Z_CUTCODE
     TRANSPORTING NO FIELDS.
          IF SY-SUBRC &amp;lt;&amp;gt; 0.
             DELETE SOURCE_PACKAGE.
          ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-sourcepackage-where-code-is-in-another-internal-table/m-p/7437853#M1551241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T15:44:15Z</dc:date>
    </item>
  </channel>
</rss>

